• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 How to disable avatars & signatures in certain forums or categories?

Brogan

XenForo moderator
Staff member
#2
You could try using conditional statements utilising the node ID.

It will require editing templates.
 

Mian Shahid

Well-known member
#3
Thanks Brogan
For signatures, i edited template "message" and replaced
Code:
<xen:if is="{$visitor.content_show_signature} && {$message.signature}">
with
Code:
<xen:if is="({$forum.node_id} != 73 && {$forum.node_id} != 83) && {$visitor.content_show_signature} && {$message.signature}">
and its working perfectly.

Now i am trying to find same for avatars :)
 

Mian Shahid

Well-known member
#5
And for avatars, i edited template "message_user_info" and added
Code:
<xen:if is="{$forum.node_id} != 73 && {$forum.node_id} != 83">
bofore
Code:
<xen:hook name="message_user_info_avatar" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
     <div class="avatarHolder">
       <span class="helper"></span>
       <xen:avatar user="$user" size="m" img="true" />
       <!-- slot: message_user_info_avatar -->
     </div>
   </xen:hook>
followed by
Code:
</xen:if>
this is also working perfect :)