greek_parea Posted September 9, 2014 Share Posted September 9, 2014 How can insert in groups display a different signature & avatar? 1 Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 11, 2014 Share Posted September 11, 2014 Answered but that is totally a different subject. If you don't get my answer start a new topic. find this <if test="postSignature:|:$post['post']['signature']"> {$post['post']['signature']} </if> change to something like this <div class="signature" data-memberid="{$post['post']['member_id']}"> <if test="groupSignature:|:in_array($post['post']['member_group_id'],array(4,6))"> <h1> I am an administrator </h1> </if> <if test="groupSignature:|:in_array($post['post']['member_group_id'],array(7))"> <h1> I am a moderator </h1> </if> </div> For the avatar question <!-- **************** below is the old code. remove it. ************** --> <if test="avatar:|:$author['member_id']"> <li class='avatar'> <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> <a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'> </if> <if test="hasVariable:|:$this->settings['member_topic_avatar_max']"> <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' /> <else /> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </if> <if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )"> </a> </if> </li> <else /> <li class='avatar'> <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' /> </li> </if> <!-- **************** below is the new code ************** --> <li class='avatar'> <img itemprop="image" src='{$this->settings['upload_url']}/group{$author['member_group_id']}.jpg' class='ipsUserPhoto ipsUserPhoto_large' /> </li> Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 9, 2014 Share Posted September 9, 2014 A picture of what you want would be helpful. Link to comment Share on other sites More sharing options...
0 greek_parea Posted September 9, 2014 Author Share Posted September 9, 2014 i add one signature for different groups Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 9, 2014 Share Posted September 9, 2014 Do you mean you change the members signatures based on their group? Link to comment Share on other sites More sharing options...
0 greek_parea Posted September 9, 2014 Author Share Posted September 9, 2014 yes Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 10, 2014 Share Posted September 10, 2014 The only way to make that work for everything would be to do it at time of registration. There are many templates that would be needed to change otherwise. The only other thing you could do would be to run a mysql update commands to alter the members signatures by group. Link to comment Share on other sites More sharing options...
0 malluvision Posted September 10, 2014 Share Posted September 10, 2014 you can do it at the time of registration (i think so). there is some add-ons are available.. search it out Link to comment Share on other sites More sharing options...
0 greek_parea Posted September 10, 2014 Author Share Posted September 10, 2014 can you help me more i find add-ons? Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 10, 2014 Share Posted September 10, 2014 There are no hooks that I know about. The change would have to be made in the registration template. @greek_parea if you want to only show the group signatures in the post screen you can do that by changing the Topic View > post template like this find <if test="postSignature:|:$post['post']['signature']"> {$post['post']['signature']} </if> change to something like this <div class="signature" data-memberid="{$post['post']['member_id']}"> <if test="groupSignature:|:in_array($post['post']['member_group_id'],array(4,6))"> <h1> I am an administrator </h1> </if> <if test="groupSignature:|:in_array($post['post']['member_group_id'],array(7))"> <h1> I am a moderator </h1> </if> </div> Link to comment Share on other sites More sharing options...
0 greek_parea Posted September 11, 2014 Author Share Posted September 11, 2014 (edited) ok i change signature,but how remove line?avatar how change? Edited September 11, 2014 by greek_parea Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 11, 2014 Share Posted September 11, 2014 What avatar? There is no avatar in signature. Just what each member adds. A picture of what you want would be nice. Link to comment Share on other sites More sharing options...
0 greek_parea Posted September 11, 2014 Author Share Posted September 11, 2014 i change & avatar in groups Link to comment Share on other sites More sharing options...
0 Lock Down Posted September 11, 2014 Share Posted September 11, 2014 What does that mean? Are you talking about something different than the signatures now? If yes I answered the group avatars here Link to comment Share on other sites More sharing options...
0 greek_parea Posted September 11, 2014 Author Share Posted September 11, 2014 ok check message Link to comment Share on other sites More sharing options...
0 Kingy Posted September 11, 2014 Share Posted September 11, 2014 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved. If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
greek_parea
How can insert in groups display a different signature & avatar?
Link to comment
Share on other sites
15 answers to this question
Recommended Posts