Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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: 6303 Time(s)

viewprofile.JPG


 



 
meaniemeSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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  
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
meaniemeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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....


 



 
meaniemeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Private Album Pics With Red X Under Viewprofile? 
 
Is it working fine?
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron