MyBB Community Forums

Full Version: Get Custom rainbow names to showup everywhere.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello MyBB Forums.

First post!

So, I have a forum, of course. I have a custom rainbow text script, seen here. This script is located in the footer. I also have it in global.css
http://prntscr.com/18c2cy

Both of the user, ThyCelestia and Kolakocide, are using this Script.
http://prntscr.com/18c2nl

Although only one user can use it at once in the footer?

Script in the user Group
http://prntscr.com/18c2rc

And it does not show up in the "Recent Posts"
http://prntscr.com/18c2tq

Also, They do not work in the comments section.
http://prntscr.com/18c3ab

Any ideas how to fix this?
Not sure if that's what you ask for (need to be more specific), but you can try this plugin:
http://mods.mybb.com/view/styl-usernames

It makes the usernames use the styles everywhere, for example in forum bits http://mods.mybb.com/uploads/previews/12...rnames.png
(2013-06-05, 02:54 AM)Destroy666 Wrote: [ -> ]Not sure if that's what you ask for (need to be more specific), but you can try this plugin:
http://mods.mybb.com/view/styl-usernames

It makes the usernames use the styles everywhere, for example in forum bits http://mods.mybb.com/uploads/previews/12...rnames.png
Ive tried this plugin, but it just makes them not work at all.
Place the code into the header, not into the footer
(2013-06-05, 03:03 AM)un4saken Wrote: [ -> ]Place the code into the header, not into the footer
Where in the header?

(2013-06-05, 03:03 AM)un4saken Wrote: [ -> ]Place the code into the header, not into the footer

I put it at the end of headerinclude, to no avail.
It doesn't matter whether it's in footer or headerinclude - except the fact that if it's outside <head> it's against W3C validation.

If that plugin doesn't work, there is no other way to put it in places around your forum (except another plugin or core modifications). I think it doesn't work because the JS gets the elements by id, which is supposed to be unique and group styling may occur multiple times in one page.
So I'd change the <span id="rainbow"> to <span class="rainbow">, then put the external script in headerinclude with changed behaviour - it should look for class not id.