The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
hi can anyone tell me how to make the user title color like
admin = red s/mod = dark ect ect thanks |
|
#2
|
||||
|
||||
|
Go to usergroups >> Edit usergroup >> Username HTML Markup .. insert the html code for the colours you want to use.
|
|
#3
|
||||
|
||||
|
hello m8 thanks for replying but didnt work
it did the users name but not the User Titleas anyone got a idea to help me |
|
#4
|
|||
|
|||
|
|
|
#5
|
||||
|
||||
|
i just tryed it it dont work on vb3.6.4
is there any other way ? need step buy step please |
|
#6
|
||||
|
||||
|
Create a plugin at hook location "postbit_display_start" with the following:
Code:
switch ($this->post['usergroupid']){
case 6:
$color = "green";
break;
case 2:
$color = "red";
break;
}
Find in your respective postbit template: Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> Code:
<if condition="$post['usertitle']"><div class="smallfont"<if condition="$color"> style="color:$color"</if>>$post[usertitle]</div></if> |
|
#7
|
||||
|
||||
|
thanks m8 but can u tell me hiw to do the plug in hook location "postbit_display_start"
please coz iam still very new to it all thx again |
|
#8
|
||||
|
||||
|
When you add a new plugin, there's a dropdown list containing all the hook locations - just select "postbit_display_start".
|
|
#9
|
||||
|
||||
|
hi Kirk Y
i have tryed it but it didnt work have got any over way or some ideas please |
|
#10
|
||||
|
||||
|
I tested it, so it's something on your end I'm afraid.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|