MyBB Community Forums

Full Version: give Custom Userstyle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
First of all
I did search and well no answers

I want to give on specific User an Userstyle(Redcolor forexample) and i don't want
1-all the members of his usergroup get the same color
2- to creat an usergroup just to give him a user style


is there some kind of plugin or something that could help me?
or is ther simply a way to do it?

ThanksAngelAngelAngel
I don't know if there is a plugin for that but it can be done with a small theme/template change.

In the templates, go to postbit and postbit_classic.
Search for:
<span class="largetext">{$post['profilelink']}</span>
and replace it with:
<span class="largetext userstyle_{$post['uid']}">{$post['profilelink']}</span>

Now go to your theme and add a stylesheet called userstyles.css and for example add:
.userstyle_4 a
{
      color: red !important;
}

This will color the profilelink of user with id 4 red.
Thanks
so i can give a full style with css right?
it seems very nice
I don't think any one have made a plugin wich does that

Thanks again


Now that i think about it it won't be easy to make a plugin to do this
i mean it's possible but it will add so many custom css to templates
I will let it stay at Unsolved to see if there is any other ways
But thank you i'll be using this
A plugin would work differently. It could add an extra field to user editing form where an admin can set a style. What a gave is a simple solution without needing a plugin.

If you wish I could create a plugin for that.
Thank you
I think i can use that easily
But i suppose that would be a very useful plugin and a lot of people will use that

anyways
Thank you