PDA

View Full Version : color


ninjamaster
08-22-2007, 05:08 AM
hi can anyone tell me how to make the user title color like
admin = red
s/mod = dark
ect ect

thanks

TTG
08-22-2007, 05:41 AM
Go to usergroups >> Edit usergroup >> Username HTML Markup .. insert the html code for the colours you want to use.

ninjamaster
08-22-2007, 07:17 AM
hello m8 thanks for replying but didnt work :( it did the users name but not the User Title

as anyone got a idea to help me

optrex
08-22-2007, 07:52 AM
staff titles hack

example here http://www.midlandsweather.org.uk/weather-reports-watches/6846-weather-reports-22nd-aug-2007-a.html#post1036692

ninjamaster
08-22-2007, 02:48 PM
i just tryed it it dont work on vb3.6.4 :(

is there any other way ?
need step buy step

please

Kirk Y
08-22-2007, 04:11 PM
Create a plugin at hook location "postbit_display_start" with the following:
switch ($this->post['usergroupid']){
case 6:
$color = "green";
break;
case 2:
$color = "red";
break;
}

Change the Number in each Case statement to the Usergroup ID that you're assigning that particular color to.

Find in your respective postbit template:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>

Replace with:
<if condition="$post['usertitle']"><div class="smallfont"<if condition="$color"> style="color:$color"</if>>$post[usertitle]</div></if>

ninjamaster
08-23-2007, 10:15 PM
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

Kirk Y
08-23-2007, 10:41 PM
When you add a new plugin, there's a dropdown list containing all the hook locations - just select "postbit_display_start".

ninjamaster
08-25-2007, 03:23 AM
hi Kirk Y
i have tryed it but it didnt work :( have got any over way or some ideas
please

Kirk Y
08-25-2007, 04:18 AM
I tested it, so it's something on your end I'm afraid.