https://www.icyphoenix.com/viewtopic.php?f=35&t=9508&p=60279#p60279
-----------------------------------
mort
Sat 19 Dec, 2015 04:36

Plugin_album_block.php -> Plugin_album_pics_all
-----------------------------------
@AndyGpy

First you need to remove the / from this line 57: It wasn't wrong in the first place. ;)

		[code linenumbers=false]include_once(ALBUM_MOD_PATH ./album_common.' . PHP_EXT);[/code]

@ MG:

After I add the block in the CMS - - - I get this..  :( 

Parse error: syntax error, unexpected 'plugin_album_pics_all' (T_STRING) in C:\xampp\htdocs\ip\blocks\plugin_album.php on line 62

[b]Line 62[/b][code linenumbers=false]				" . (($cms_config_vars['plugin_album_pics_all'][$block_id] == '1') ? '' : 'WHERE cat_user_id = 0') . "[/code]

Got me beat mate - Nearly there and beaten at the post..  :censored:

And this file [b]album_common.php[/b] simply doesn't exist..  :?: 

[code linenumbers=false][Icy Phoenix Debug] PHP Notice: in file /blocks/plugin_album.php on line 57: include_once(./plugins/album/includes/album_common.php): failed to open stream: No such file or directory
[Icy Phoenix Debug] PHP Notice: in file /blocks/plugin_album.php on line 57: include_once(): Failed opening './plugins/album/includes/album_common.php' for inclusion (include_path='.;C:/xampp/php/PEAR')[/code]

[b]And this....[/b] 

		[i]include_once(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT);[/i]

Appears to have NO purpose whatsoever.. So I've removed it... ?

Not only that - - - this script in [b]plugin_album.php[/b] seems to be causing a problem also and declares $album_user_access  as undefined.

[code linenumbers=false]		{
			$album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW
			if ($album_user_access['view'] == 1)
			{
				$catrows[] = $row;
			}
		}
		$db->sql_freeresult($result);
		if ($cms_config_vars['plugin_album_pics_all'][$block_id] == '1')
		{
			$allowed_cat = '0'; // For Recent Public Pics below
		}
		else
		{
			$allowed_cat = '';
		}[/code]

And - - - If I remove that script the block installs in the CMS but without any data/pics etc.

[b]And Another fault:[/b]

Fixed it here ->

http://www.icyphoenix.com/viewtopic.php?f=2&p=60281#p60281

[strike][b][i]Template->make_filename(): Error - included template file not found: album_slideshow_inc_js.tpl[/i][/b][/strike]

[b]Released too soon methinks.. There are too many [i][u]small [/u][/i]problems with it?[/b]  :mryellow:


