MyBB Community Forums
[How To?] Suffix on names. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Suffix on names. (/thread-179099.html)



Suffix on names. - PALACE - 2015-09-14

Hey, I want to make the rank grey. It is a suffix that I have for my names on different ranks. Is there any way to have the name purple and for example the "[Mod]" grey or any other color and also use the [Mod} without the background URL.

My Website: www.prankcalling.org/

Example: [Image: 30fedda7fea5465217007ed0e50b0e71.gif] but I want it like [Image: 0f713e955ab4ad6b23d3f562a4a76d79.gif]

Quote:<span style="color: #842DCE; text-shadow: 1px 1px 5px #842DCE; background: transparent url(http://i.imgur.com/7F70N.gif);">[Mod] {username}</span>

Thanks.


RE: Suffix on names. - Josh H. - 2015-09-15

Move [Mod] into its own span? It doesn't necessarily have to be within the same one (as far as I'm aware)


RE: Suffix on names. - PALACE - 2015-09-15

(2015-09-15, 12:08 AM)Josh H. Wrote: Move [Mod] into its own span? It doesn't necessarily have to be within the same one (as far as I'm aware)

Exactly but how do you do it?


RE: Suffix on names. - mmadhankumar - 2015-09-15

(2015-09-15, 06:12 AM)xPubHD Wrote: Exactly but how do you do it?

something like this...

<span style="color: #929292;">[Mod]</span>
<span style="color: #842DCE; text-shadow: 1px 1px 5px #842DCE; background: transparent url(http://i.imgur.com/7F70N.gif);">{username}</span>



RE: Suffix on names. - Destroy666 - 2015-09-15

^And if the above is too long for the input (limit is 200 chars), use classes:
<span class="modclass">[Mod]</span><span class="anothermodclass">{username}</span>

Then add this to your themes' global.css and to the admin/styles/[any_style]/main.css files:
.modclass {
    color: #929292;
}

.anothermodclass {
    color: #842DCE;
    text-shadow: 1px 1px 5px #842DCE;
    background: transparent url(http://i.imgur.com/7F70N.gif);
}



RE: Suffix on names. - PALACE - 2015-09-15

Thanks guys! @mmadhankumar suggestion helped me! But the other one was helpful aswell. Thanks Smile