FAP SUPPORT - Private Album Pics With Red X Under Viewprofile? »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - Private Album Pics With Red X Under Viewprofile?



meanieme [ Tue 24 Apr, 2007 17:02 ]
Post subject: FAP SUPPORT - Private Album Pics With Red X Under Viewprofile?
When viewing profile of a user, there is a strip at the bottom to show recent pics from the member...

but when that member turns the category that the picture is stored in to private, the picture becomes a red X (broken image) but the description and other details still exist

is this as designed? seems it should not even show the picture...is there something wrong with permission settings?


Artie [ Wed 25 Apr, 2007 00:43 ]
Post subject: Re: Private Album Pics With Red X Under Viewprofile?
I think it is a bug. I have noticed it myself, in the past, but had forgot.

Maybe MG is listening and will fix for the next release


meanieme [ Wed 25 Apr, 2007 05:02 ]
Post subject: Re: Private Album Pics With Red X Under Viewprofile?
hmm i'm thinking it's some easy check permission function to insert

it seems this is bad because, then user's picture detail is not private even though picture is not showing, which with some details can make people even more curious what the picture is....esp if the details are "dirty"

i hope there is a fix


Mighty Gorgon [ Thu 26 Apr, 2007 02:58 ]
Post subject: Re: Private Album Pics With Red X Under Viewprofile?
In theory it should be enough adding something like this (taken from thumbnail) in the cycle:
Code: [Hide] [Select]
$album_user_access = album_permissions($album_user_id, $cat_id, ALBUM_AUTH_VIEW, $thispic);
if ( $album_user_access['view'] == false )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}


But I need to have a further check when I'm not so tired... please wait...


meanieme [ Thu 26 Apr, 2007 06:11 ]
Post subject: 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: [Hide] [Select]
$template->assign_block_vars('recent_pics_block.recent_pics', array());

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


i added
Code: [Hide] [Select]


// ------------------------------------
// 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....



Mighty Gorgon [ Mon 07 May, 2007 01:38 ]
Post subject: Re: Private Album Pics With Red X Under Viewprofile?
Is it working fine?




Powered by Icy Phoenix