FAP SUPPORT - Private Album Pics With Red X Under Viewprofile?


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?


viewprofile.JPG
Description:  
Filesize: 9.87 KB
Viewed: 6431 Time(s)

viewprofile.JPG


Profile PM  
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 :mricy:

Profile PM  
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" :LOL:

i hope there is a fix

Profile PM  
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: [Download] [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... :roll:

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: [Download] [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: [Download] [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....


Profile PM  
Subject: Re: Private Album Pics With Red X Under Viewprofile?
Is it working fine?


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1708s (PHP: 11% SQL: 89%)
SQL queries: 14 - Debug Off - GZIP Enabled