https://www.icyphoenix.com/viewtopic.php?f=26&t=1721&p=12842#p12842
-----------------------------------
meanieme
Thu 26 Apr, 2007 06:11

Re: Private Album Pics With Red X Under Viewprofile?
-----------------------------------
i have no idea if this is valid, but here's what i did:

after
[code linenumbers=false]	$template->assign_block_vars('recent_pics_block.recent_pics', array());

		for ($j = $i; $j < ($i + $cols_per_page); $j++)
		{
			if( $j >= $totalpicrow )
			{
				break;
			}[/code]

i added
[code linenumbers=false]		
				
// ------------------------------------
// Check the permissions
// ------------------------------------
$album_user_access = album_permissions($recentrow[$j]['cat_user_id'], $recentrow[$j]['pic_cat_id'], ALBUM_AUTH_VIEW, $recentrow[$j]);
if ( $album_user_access['view'] == false )
{
//	message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}
// ------------------------------------
// Check the permissions
// ------------------------------------

else
{

			$template->assign_block_vars('recent_pics_block.recent_pics.recent_col', array(

etc etc etc....

[/code]


