FAP SUPPORT - Photo Set As Avatar »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - Photo Set As Avatar



DWho [ Mon 26 Nov, 2007 13:05 ]
Post subject: FAP SUPPORT - Photo Set As Avatar
Hi

I have just set up a catergory to private so only certain members can see the photos but I also need users to use the set photo as avatar function for normal photos..

The only trouble is if someone sets their private photo as there avatar it appears all over the site so anyone can view it....

Is there anyway I can set the permissions where avatars show so only the ones not set to private show and the ones set to private either show another image....

or can I have that the set photo as your avatar option only appears in the main personal gallery...

thank you for any help.



Artie [ Mon 26 Nov, 2007 16:22 ]
Post subject: Re: Photo Set As Avatar
DWho wrote: [View Post]

Is there anyway I can set the permissions where avatars show so only the ones not set to private show and the ones set to private either show another image....

No

DWho wrote: [View Post]

or can I have that the set photo as your avatar option only appears in the main personal gallery...

No, not the main personal gallery, but you can have it where the set avatar option appears only in the main public categories

OPEN album_mod/album_hierarchy_sql.php

FIND (or similar line)
Code: [Hide] [Select]
'AVATAR_PIC' => ( ($album_config['personal_allow_avatar_gallery'] == 1) && ($userdata['user_id'] == $picrow[$j]['pic_user_id']) ) ? '<br /><a href="'. append_sid('album_avatar.' . $phpEx . '?pic_id=' . $picrow[$j]['pic_id']) . '">' . $lang['Avatar_Set'] . '</a>' : '',




REPLACE WITH
Code: [Hide] [Select]
'AVATAR_PIC' => ( ($album_config['personal_allow_avatar_gallery'] == 1) && ($userdata['user_id'] == $picrow[$j]['pic_user_id']) && ($picrow[$j]['cat_user_id'] == 0) ) ? '<br /><a href="'. append_sid('album_avatar.' . $phpEx . '?pic_id=' . $picrow[$j]['pic_id']) . '">' . $lang['Avatar_Set'] . '</a>' : '',


Doing the changes above could still give you problems in a main category if it is set to private.
It should be possible to disable the option on any private gallery (public or personal), but would require additional changes from those listed above.


DWho [ Mon 26 Nov, 2007 16:27 ]
Post subject: Re: Photo Set As Avatar
Thanks for the reply


I shall try it out now.





Powered by Icy Phoenix