First you need to remove the / from this line 57: It wasn't wrong in the first place.
@ 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
Line 62
" . (($cms_config_vars['plugin_album_pics_all'][$block_id] == '1') ? '' : 'WHERE cat_user_id = 0') . "
Got me beat mate - Nearly there and beaten at the post..
And this file album_common.php simply doesn't exist..
[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')
[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')
And this....
include_once(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT);
Appears to have NO purpose whatsoever.. So I've removed it... ?
Not only that - - - this script in plugin_album.php seems to be causing a problem also and declares $album_user_access as undefined.
{
$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 = '';
}
$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 = '';
}
And - - - If I remove that script the block installs in the CMS but without any data/pics etc.
And Another fault:
Fixed it here ->
http://www.icyphoenix.com/viewtopic.php?f=2&p=60281#p60281
Released too soon methinks.. There are too many small problems with it?