Jump to content
WebFlake
  • 0

signature & avatar


greek_parea

Question

15 answers to this question

Recommended Posts

  • 0

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

  • 0

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...