https://www.icyphoenix.com/viewtopic.php?f=26&t=3173 ----------------------------------- DWho Mon 26 Nov, 2007 13:05 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. :mrgreen: :mrgreen: ----------------------------------- Artie Mon 26 Nov, 2007 16:22 Re: Photo Set As Avatar ----------------------------------- [quote user="DWho" post="21798"] 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....[/quote] No [quote user="DWho" post="21798"] or can I have that the set photo as your avatar option only appears in the main personal gallery...[/quote] No, not the main [highlight=#FFFFAA]personal[/highlight] gallery, but you can have it where the set avatar option appears only in the main [highlight=#FFFFAA]public[/highlight] categories OPEN [b]album_mod/album_hierarchy_sql.php[/b] FIND (or similar line) [codeblock]'AVATAR_PIC' => ( ($album_config['personal_allow_avatar_gallery'] == 1) && ($userdata['user_id'] == $picrow[$j]['pic_user_id']) ) ? '
' . $lang['Avatar_Set'] . '' : '',[/codeblock] REPLACE WITH [codeblock]'AVATAR_PIC' => ( ($album_config['personal_allow_avatar_gallery'] == 1) && ($userdata['user_id'] == $picrow[$j]['pic_user_id']) && ($picrow[$j]['cat_user_id'] == 0) ) ? '
' . $lang['Avatar_Set'] . '' : '',[/codeblock] 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 Re: Photo Set As Avatar ----------------------------------- Thanks for the reply I shall try it out now. :mrgreen: :mrgreen: