Hi,
I was wondering if someone could develop a mod that allows you to change ONE user's display name color, etc. w/o creating a new group.
This will highly benefit my forum's marketplace, where I am allowing them to buy username colors for forum cash.
Thank you!
Jake
You can use a css class to change the name, if you know the users uid.
Example: {$mybb->user['uid']} will give the uid of any user. You can then make a class called custom_1 and set a color in your global css. That will add the special color to the username of user number 1 where you have it set in the templates as so:
<span class="custom_{$mybb->user['uid']}">{$post['profilelink']}</span>
I hope you see what I mean. You can add many more - so custom_6 would be user number 6 etc. You do need to edit a few templates - anywhere where the username is, usually postbit, profile, memberlist, who's online, index last post.
(2012-10-28, 07:42 AM)Leefish Wrote: [ -> ]You can use a css class to change the name, if you know the users uid.
Example: {$mybb->user['uid']} will give the uid of any user. You can then make a class called custom_1 and set a color in your global css. That will add the special color to the username of user number 1 where you have it set in the templates as so:
<span class="custom_{$mybb->user['uid']}">{$post['profilelink']}</span>
I hope you see what I mean. You can add many more - so custom_6 would be user number 6 etc. You do need to edit a few templates - anywhere where the username is, usually postbit, profile, memberlist, who's online, index last post.
$mybb->user only holds the user data of the current connected user. So it will always be "custom_YOURUID".
There is no a reliable solution to fulfill this request.
http://mods.mybb.com/view/nickname-styles
http://mods.mybb.com/view/user-appearance-02
http://mods.mybb.com/view/username-image
http://mods.mybb.com/view/user-rank-image
http://forums.mybb-plugins.com/Thread-Plugin-Buy-Format (Needs Newpoints)
I don't think any of these fulfill your request nor I do recommend any of them.
Yea, but the USER would always see it in the right color
You could do it by a deeper edit, so use {$post['uid']}, memprofile etc etc. That should make it so all users saw it as that color, but its a boring amount of work.