Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - SOLVED - No "Set As Avatar" In Public Galleries



Bullet [ Mon 26 Feb, 2007 21:09 ]
Post subject: FAP CUSTOMIZATION - SOLVED - No "Set As Avatar" In Public Galleries
I would like to set it so there is no "Set As Avatar" button in the public galleries and members can only set photos as avatars in there own personal gallery.


Artie [ Mon 26 Feb, 2007 22:45 ]
Post subject: Re: No "Set As Avatar" In Public Galleries
This may help you.

OPEN album_modalbum_hierarchy_sql.php
FIND
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>' : '',


Bullet [ Mon 26 Feb, 2007 23:00 ]
Post subject: Re: No "Set As Avatar" In Public Galleries
Thanks! Works great!


Mighty Gorgon [ Wed 28 Feb, 2007 02:33 ]
Post subject: Re: SOLVED - No "Set As Avatar" In Public Gallerie
Thanks Artie!




Powered by Icy Phoenix