The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Possible for rainbow colored username?

View previous topic View next topic Go down

Possible for rainbow colored username?

Post by Sewer on May 11th 2013, 2:24 am

Is it possible to have a rainbow username color?

Sewer
Forumember

Posts : 35
Reputation : 1
Language : English

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sir. Mayo on May 11th 2013, 6:50 pm

I dont think so because of the fact that user names are colored by ranks Like Members are blue, Staff is green and admins are red. I know you can turn off the color for each rank on its own but i dont think its possible to have it in a rainbow color.

Sir. Mayo
Forumember

Male Posts : 963
Reputation : 85
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Re: Possible for rainbow colored username?

Post by roberts1223 on May 11th 2013, 6:57 pm

sir. Mayo, you can change admin and mod or other usesname colors @admin panel.

roberts1223
Forumember

Male Posts : 125
Reputation : 3
Language : Latvian, english, russian
Location : @ internet

http://tankionline.latvianforum.net

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sir. Mayo on May 11th 2013, 7:05 pm

I know that Roberts1223 The OP is asking for the name to be colored in a rainbow Effect life each letter is different colored. And there is no HEX code for A rainbow color.

Sir. Mayo
Forumember

Male Posts : 963
Reputation : 85
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sewer on May 11th 2013, 8:20 pm

Actually the Mods+ are all one color...

Sewer
Forumember

Posts : 35
Reputation : 1
Language : English

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sir. Mayo on May 11th 2013, 8:28 pm

Ah ok that can be changed to have mods blue or red or green in the admin panel but i dont think they can be rainbow would you like to know how to make the Mods a different color?

Sir. Mayo
Forumember

Male Posts : 963
Reputation : 85
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Re: Possible for rainbow colored username?

Post by roberts1223 on May 11th 2013, 9:08 pm

Sorry mayo, i didnt read that part Very Happy

roberts1223
Forumember

Male Posts : 125
Reputation : 3
Language : Latvian, english, russian
Location : @ internet

http://tankionline.latvianforum.net

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sewer on May 12th 2013, 9:00 pm

@mayo, Yes because my admins and mods are all orange :/

Sewer
Forumember

Posts : 35
Reputation : 1
Language : English

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sir. Mayo on May 12th 2013, 9:10 pm

Ok go to ACP>USERS AND GROUPS>Group Administration(on the left side). then press the gear across from the group you want to color. This should then bring up a modify a group window for the group you selected. In the box that says Group memebers color chose a color then make sure you save it by the green check mark. Then make sure the box bellow it that says color group members is checked if its not check it then press save at the top of the page.

Sir. Mayo
Forumember

Male Posts : 963
Reputation : 85
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Re: Possible for rainbow colored username?

Post by Ultron's Vision on May 12th 2013, 9:20 pm

Try this code (add it in the JavaScript pages found under Administration Panel -> Modules -> JavaScript pages)...

Code:
jQuery(document).ready(function(){

var rainbow = '<font color=#ff0000>R</font><font color=#e93f15>a</font><font color=#d47a2a>i</font><font color=#bfad3f>n</font><font color=#aad655>b</font><font color=#94f16a>o</font><font color=#7ffe7f>w</font> <font color=#55e7aa>D</font><font color=#3fc6bf>a</font><font color=#2a98d4>s</font><font color=#1561e9>h</font>';

jQuery('a[href="/u1"] span').html(rainbow);
jQuery('a[title="Rainbow Dash"]').html(rainbow);

});

Be sure to replace var rainbow = '...' with the actual username of the user you want to modify. You can find a simple rainbow text generator here. Also, remember to replace /u1 with the appropriate userlink.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Possible for rainbow colored username?

Post by Sir. Mayo on May 12th 2013, 9:23 pm

@Ultron's Vision wrote:Try this code (add it in the JavaScript pages found under Administration Panel -> Modules -> JavaScript pages)...

Code:
jQuery(document).ready(function(){

var rainbow = '<font color=#ff0000>R</font><font color=#e93f15>a</font><font color=#d47a2a>i</font><font color=#bfad3f>n</font><font color=#aad655>b</font><font color=#94f16a>o</font><font color=#7ffe7f>w</font> <font color=#55e7aa>D</font><font color=#3fc6bf>a</font><font color=#2a98d4>s</font><font color=#1561e9>h</font>';

jQuery('a[href="/u1"] span').html(rainbow);
jQuery('a[title="Rainbow Dash"]').html(rainbow);

});

Be sure to replace var rainbow = '...' with the actual username of the user you want to modify. You can find a simple rainbow text generator here. Also, remember to replace /u1 with the appropriate userlink.



The only issue with this is that he will have to add for every member that he wants with this color, if he has a group of 15+ users that a alot of work for him to do.

Sir. Mayo
Forumember

Male Posts : 963
Reputation : 85
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

Re: Possible for rainbow colored username?

Post by Ultron's Vision on May 12th 2013, 9:32 pm

There would have been no way around that, it is a lot of coding necessary to (a) not only realize who is a member of the group with JavaScript (b) taking the .length attribute of the name and (c) automatically converting it to rainbow color code.

So, basically, all he would have to do with the code I provided is to look up the site I linked to, copy the basic code skeleton and add 15 scripts to the site (admittedly, this could take a while, but if he has no other scripts installed, it shouldn't be noticable).

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Possible for rainbow colored username?

Post by Jophy on May 13th 2013, 5:06 am

Hello,

Is you problem solved? You can let us know by editing your topic using the edit button and by clicking the solved icon then send. Wink

Thank you Smile

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Re: Possible for rainbow colored username?

Post by Clickme1 on May 29th 2013, 3:48 am

Is there a way for it to show the rainbow in the Chatbox too?

Clickme1
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

Re: Possible for rainbow colored username?

Post by Ultron's Vision on May 29th 2013, 11:32 am

LGforum provided a way in another topic, basically, you need to make the chatbox an iframe and not an embed object.

Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

Re: Possible for rainbow colored username?

Post by Clickme1 on May 30th 2013, 3:34 am

I made the chatbox to iframe and its still not working :/

Clickme1
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum