View Full Version : colours for user groups.
goshalim
07-16-2009, 06:15 AM
I have set up for each usergroup to have a different colour .
Admin - red
Super Mod - Blue
Mod - green
etc
Its is shown below but its not working on the post .
When i see on the forum LAst post by ....... the colour there is shown as normal like for Register users .
Also in Post thanks or groan .
How can i change this ??
Thanks again all for your help
James Birkett
07-16-2009, 08:42 AM
Hey goshalim,
By default, vBulletin has put the plaintext of the username on the Forum Home templates. This can easily be edited by editing the template.
To show usernames in plaintext - the code is: $user['username'];
To show the usernames with markup - the code is: $user['musername'];
So, what you need to do is call $user['musername'] rather than $user['username'].
goshalim
07-16-2009, 08:48 AM
Thanks JAmes
Can you be liltle bit more specific where to go and add these codes which you gave me please.
I am not an expert but i work hard by myself
Thank you again
James Birkett
07-16-2009, 10:34 AM
Hello again golashim,
Sorry for the delayed reply. To the point:
If you enable commenting on the source (vBulletin options -> General Settings -> Add Template Name in HTML Comments -> Yes) this comments each part of the source with each template it uses (i.e. forumhome, forumdisplay etc). Now, if we look for the part that displays the last posted user, we get this:
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
It displays the last poster using the variable:
$lastpostinfo[lastposter] which means we need to edit this to get it to display the mark-up username. I've not done this before so i'll look around and get back to you.
EDIT:
That method could work above (again I haven't tried it) but I've been looking at a modification that displays the mark-up usernames on forumdisplay and it looks like it manipulates ['postusername'] into posting the mark-up username instead. I will play around with this and get back to you.
NLP-er
07-17-2009, 01:50 AM
I've just made it for you:
https://vborg.vbsupport.ru/showthread.php?p=1850276
Just install - no template modifications :)
Mark as installed would be appreciated :p
goshalim
07-17-2009, 01:55 AM
Hi NLP-er
Thank you so much but I am having a small problem.
Iam using 3.7.3 which is not compatible.
CAn ypou do someting for this please .
Again thnak youso much even for trying doing something like this.
Thanks
NLP-er
07-17-2009, 02:08 AM
Hi NLP-er
Thank you so much but I am having a small problem.
Iam using 3.7.3 which is not compatible.
CAn ypou do someting for this please .
Again thnak youso much even for trying doing something like this.
Thanks
Please discuss this in mod thread :) I will gladly answer you there - it will be helpful for future users :) Also I will not monitor this thread anymore, so just please paste this question in mod thread :)
goshalim
07-17-2009, 02:13 AM
Thanks , allready did !!!:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.