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
 
 
Quote Download Post 
Post FAP CUSTOMIZATION - Set As Avatar Option 
 
I noticed members can set photos they upload to public galleries as an avatar. Can I make it so they can only set avatars from photos in there personal gallery?
 



 
BulletPM  
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
 
Quote Download Post 
Post Re: Set As Avatar Option 
 
I'd like the opposite, and allow users to have the option on all galleries, except others users personal galleries
 



 
McManusPM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
Bullet wrote: [View Post]
I noticed members can set photos they upload to public galleries as an avatar. Can I make it so they can only set avatars from photos in there personal gallery?

Sure, go ahead :icy_lol_flag:

Sorry, that was attempt at humor. I'll check on this.

McManus wrote: [View Post]
I'd like the opposite, and allow users to have the option on all galleries, except others users personal galleries
Isn't that the way it currently is ?
 



 
ArtiePM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
Bullet wrote: [View Post]
I noticed members can set photos they upload to public galleries as an avatar. Can I make it so they can only set avatars from photos in there personal gallery?

I think MG has addressed this in the 1.4.2 version (yet to be released)

OPEN album_mod/album_hierarchy_sql.php

FIND
Code: [Download] [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: [Download] [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>' : '',


McManus, if you are using Icy Phoenix you may already be using FAP 1.4.2...if so, try reversing the procedure above.
 



 
ArtiePM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
cheers, I'll have a play
 



 
McManusPM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
McManus wrote: [View Post]
I'd like the opposite, and allow users to have the option on all galleries, except others users personal galleries


I'd like it too  :mryellow:

Thanks Artie, I will test it if I will ahve some freetime  :?
 



 
TheSteffenPM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
Hi, I already have this code in my file. But I do not understand from where to select picture from personal album for using it as avatar ? Can u help.
 



 
nimsPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
nims wrote: [View Post]
Hi, I already have this code in my file. But I do not understand from where to select picture from personal album for using it as avatar ? Can u help.


Posting basically the same question in multiple threads earns you a Yellow Card.  :x
 



 
ArtiePM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
My humble apologies  :oops:
 



 
nimsPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
currently is is set 2
someone can set the thumbnail as avatar in their own personal gallery

what i would want is that
anyone can set any thumbnail as their avatar in the public section of the gallery
 



 
jazzking2001PM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
jazzking2001 wrote: [View Post]
currently is is set 2
someone can set the thumbnail as avatar in their own personal gallery

what i would want is that
anyone can set any thumbnail as their avatar in the public section of the gallery
OPEN

Try this

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

 



 
ArtiePM  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
Hi

sorry Artie it dons't works also in icy by me with set as avatar
i can you get an account as admin on my test - forum when you wish

pepi
 



 
pepiPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Set As Avatar Option 
 
My bad pepi....try it now

Code above edited
 



 
ArtiePM  
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