View Full Version : how i can change a user color only?
Dr@gon
07-14-2012, 05:07 AM
hi
how i can change a user color only?
only one user id color!
Mythotical
07-14-2012, 05:56 AM
Depends on where you want to change the username color. Forum wide or in a specific area.
Dr@gon
07-14-2012, 06:31 AM
Everywhere
in postbit in forumhome and in other place...
Mythotical
07-14-2012, 06:53 AM
You should be able to edit the user's profile and in the html markup add your font color change.
Now if that don't exist, I haven't edited users on vb in a long time. Then I'll dig and find an answer for you.
Dr@gon
07-14-2012, 07:08 AM
I want to change one user only! not a usergroup.
i think it needs some php code or create a plugin!
Whether there are learning about in this forum?
Mythotical
07-14-2012, 07:14 AM
Ok you misunderstood me, I didn't say edit the usergroup, I said edit the user's profile, but I just took a look so forget what I said.
You have 2 ways you can do this, add a new usergroup with the markup you want and add only that person to it. (Simplest method)
Or give me a few days and I'll see about building a plugin to do what you want.
Dr@gon
07-14-2012, 11:37 AM
Thank you my friend.
But I need this training now.
Do you think someone else can help me?
ForceHSS
07-14-2012, 11:52 AM
Make a new user group put all settings to the same as the one he is in move him and only him to it then you can change the group colour so it will look like only this user has been changed
Mythotical
07-14-2012, 11:53 AM
What ForceHSS said.
Dr@gon
07-14-2012, 12:51 PM
i knew this way! but i want change a userid of a usergroup without create new usergroup for one user!
Is it possible؟!
ForceHSS
07-14-2012, 02:01 PM
Post ur request here (https://vborg.vbsupport.ru/forumdisplay.php?f=30)
Dr@gon
07-14-2012, 02:38 PM
Thank you
Sarteck
07-26-2012, 06:04 AM
Dragon, do this instead.
Make a plugin on the hook fetch_musername
Use the code:if ($user['userid'] == $MySpecificUserID)
{
$user['musername'] = '<span style="color:MYCOLOR;">'.$user['username'].'</span>';
}
Replace $MySpecificUserID with the UserID and MYCOLOR with the color.
Very simple, I'm surprised you didn't get an answer. :o
Dr@gon
07-26-2012, 06:32 AM
tank you for your reply. but i use this code and getting error!:
if ($user['userid'] == $5)
{
$user['musername'] = '<span style="color:red;">'.$user['username'].'</span>';
}
Sarteck
07-26-2012, 06:01 PM
If the user ID yu want is '5' then use '5', not '$5'. :P
Dr@gon
07-26-2012, 06:14 PM
If the user ID yu want is '5' then use '5', not '$5'. :P
A special thank Mythotical
Great work
:x
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.