Remove user titles per usergroup.

MMM

Rent This Space...
Joined
Apr 7, 2005
Messages
4,648
MMM submitted a new Article:

Remove user titles per usergroup.

Have you ever wanted to display user titles only in certain usergroups on your vB forum software? Unfortunately removing user titles per usergroup is not a supported feature in vB, at least not yet! But all is not lost. Read on and learn how you can accomplish this by adding a simple conditional.



1.) Log into your ACP and click on Styles and Templates > Style Manager.

2.) On the right hand side you'll now find the Style manager. On the drop down list choose Edit Templates.

3.) Next click on Postbit Templates and choose the style that you use, either Postbit, or Postbit Legacy (or both).

4.) In the code that is now in front of you locate:

Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>


And replace it with:

Code:
<if condition="!is_member_of($post, 1,2,3)">
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
</if>


Please note: change where it says 1,2,3 (above) to the usergroups that you wish to display.

5.) Click Save. Now the user titles will only be displayed in those usergroups :)

You can also remove the user titles only when user ranks are used. To learn how to do that please search for 'Remove user titles W/ user ranks' in the TAZ search engine. Thank You.

This code has been tested and shown to be compatible with vB 3.6 :tiphat:

Read more about this article here...
 
Last edited by a moderator:

arran777

Neophyte
Joined
Dec 17, 2011
Messages
6
Sorry for bumping up an old thread,found this thread from google,

But Has or did anyone else managed to get this to work on their 3.6?

It not work for me.
 

LloydM

Adherent
Joined
Dec 5, 2011
Messages
431
Sorry for bumping up an old thread,found this thread from google,

But Has or did anyone else managed to get this to work on their 3.6?

It not work for me.

are you using vB 3.6? Try following the steps again with the codes.
 
Top