|
Post by Simpsons Rule on Dec 7, 2003 18:14:36 GMT -5
Moderator and Normal Member Name Colors
<script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&username='+name) != -1) document.links[cn].style.color=color; }
colorName('Username','HEX COLOR'); colorName('Username','HEX COLOR'); // --> </script>
You can add more usernames by adding more of these:
colorName('Username','color');
This code goes into your Footers.
|
|
|
Post by GooRoo on Dec 13, 2003 0:35:12 GMT -5
I must be doing something wrong. Here is my code:
<script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&username='+name) != -1) document.links[cn].style.color=color; }
colorName('UserName1','FFFF00'); colorName('UserName2','FFFF00'); // --> </script>
with valid (case and all) User login (not display) names replacing the UserName# fields.
I placed this code in the footer of my prototype Forum, which has all but the main page linked to it. After doing a SAVE, I went back and checked, and the code was in all footers, as expected.
Nowhere do these user names show up in yellow (which I believe is the color for FFFF00). (I even tried adding a '#' in front of the hex color code, but it didn't change anything at all.)
P.S. I have no idea why that 'Grin' is appearing in the code ... it doesn't look anything like ;D in the script.
The URL of my site is in my sig.#nosmileys
|
|
|
Post by Simpsons Rule on Dec 13, 2003 0:39:39 GMT -5
Next time click Disable Smilies before you post it. (I already did it to your post). I have to go to bed right now, but if you can wait for tomorrow, post the URL to your site with the code in it and I'll take a look tomorrow. If you can't wait, ask Support.
|
|
|
Post by GooRoo on Dec 13, 2003 10:52:03 GMT -5
Next time click Disable Smilies before you post it. (I already did it to your post). I have to go to bed right now, but if you can wait for tomorrow, post the URL to your site with the code in it and I'll take a look tomorrow. If you can't wait, ask Support. No problem, I will be back about 5 or 6 hours from now. I am still a bit curious as to why the combination "<"+"d" shows up as the Grin (";"+"D") smiley ;D with smilies enabled.
|
|
|
Post by Simpsons Rule on Dec 13, 2003 17:56:07 GMT -5
Aren't all links on your forum yellow? I took a look and it seems that everyone's name, other than your own and that G. Mod's, is yellow.
|
|
|
Post by GooRoo on Dec 14, 2003 23:33:44 GMT -5
Aren't all links on your forum yellow? I took a look and it seems that everyone's name, other than your own and that G. Mod's, is yellow. Actually, they are Orange. Orange is the color of the solvers' Gruntz, so I was happy to retain that default color on my Forum. But I would like to distinguish the Moderators with Yellow, one of the relatively few choices I have to be readable on my various backgrounds.
|
|
|
Post by Simpsons Rule on Dec 15, 2003 17:06:53 GMT -5
|
|
|
Post by GooRoo on Dec 15, 2003 18:15:18 GMT -5
That is really wierd! When I used your link, it showed up the way I want it to; when I login normally, everything but admin and Gmod is orange. I wonder if this is another one of those 'admin' only glitches?!? BTW, don't you think your Home->Logout buttons would go well with my color scheme? Doing some more checking, I think I know what is going on. I do not have the color-changing script in the main page headers/footers. I will add it there, and hopefully get the desired results. (Actually, I only wanted Moderators name to be Yellow for posts within the Forums they moderate ... but everywhere is better than nowhere.
|
|
|
Post by Simpsons Rule on Dec 15, 2003 19:22:23 GMT -5
Yes, I think those log in, home, etc. buttons would look nice on your forum. But I got them from SSD, so you'll have to credit them if you use them.
|
|
|
Post by GooRoo on Dec 16, 2003 16:33:17 GMT -5
I am registered at SSD, and thought I had found the best group for my color scheme, but I did not see the set you have. I guess I will have to do a more thorough search. The 3D bubble effect just looks
|
|
Triple B
Full Member
I don't have any personal text...
Posts: 23
|
Post by Triple B on Jan 15, 2004 23:10:48 GMT -5
Deos this code work for any person you want?
|
|
|
Post by Simpsons Rule on Jan 16, 2004 6:55:08 GMT -5
Yea, just make sure you put their username (case sensative) and not their display name. You only have to use this code to change individual member's colors, if you want to change all Admins or all G. Mods there's a different code.
|
|
Gaz
New Member
You heard it
Posts: 6
|
Post by Gaz on Apr 19, 2004 11:50:19 GMT -5
I Do you put it in all footers?
|
|
|
Post by JZSquared on Apr 19, 2004 21:08:17 GMT -5
You would have to put them in all of your footers if you wanted it noticable in all the boards... But if you want it for just a specific board, or the main page, then you would just put it in those footers...
|
|
Gaz
New Member
You heard it
Posts: 6
|
Post by Gaz on Apr 20, 2004 11:14:49 GMT -5
thanks
|
|