The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to hide the username of a user
Hello, I need to hide some user groups that I created (unregistered user groups and user groups, level 1) the username of a message that appears next to your answer. How can I do?
|
#2
|
||||
|
||||
You will need to write several plugins to do this since the username shows up in several places. Or, if you are unfamiliar with writing plugins, you can just edit the templates. Go to the page you want to remove the username on and use this trick to find the template:
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.) Then, go edit that part of the template and put a condition around it to only show if the user is not in usergroup x, y, z (there is an article on writing conditions). |
#3
|
|||
|
|||
Ok thanks for the info. But what should I write in the template code? Do you have any example of code to suggest?
|
#4
|
||||
|
||||
You would put a condition around the variable. Something like:
HTML Code:
<vb:if condition="!is_member_of($post, x, y, z)">username</vb:if> As always, test on your test site first. |
#5
|
|||
|
|||
Ok thanks a lot I will try.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|