http://www.icyphoenix.com/viewtopic.php?f=25&t=4209&p=28589#p28589
-----------------------------------
Artie
Mon 19 May, 2008 15:12

Re: Able To Set Image From Spesific Category As Avatar?
-----------------------------------
[quote user="Pete_Z" post="28579"]
:edit" alright, I guess I can use the old code that is commented out because that is what Im basicly asking for.  What I wanted to do though, is let members use a spesific category for everyone to be able to set an image as avatar not mattering who uploaded the image.. ( without loosing it in personal album too ) 
that's was what I was wondering if it were at all possible.[/quote]

Yes, that will allow all a user's pics to be available for avatar. .... if you want [b]only[/b] a specific cat [b]and[/b] the personal gallery for avatoar setting, use this line of code

[code linenumbers=false]'AVATAR_PIC' => ( ($album_config['personal_allow_avatar_gallery'] == 1) && ($userdata['user_id'] == $picrow[$j]['pic_user_id']) && ( ($picrow[$j]['cat_id'] == 9) || ($picrow[$j]['cat_user_id'] != 0) ) ) ? '<br /><a href="'. append_sid('album_avatar.' . $phpEx . '?pic_id=' . $picrow[$j]['pic_id']) . '">' . $lang['Avatar_Set'] . '</a>' : '',[/code]


