Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  May 24th, 2017, 03:02am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Change Username Color <June 2012 CoTM>  (Read 3919 times)
Jason
Conforums founding member
Executive Member


member is offline

Avatar

Hello!


PM

Gender: Male
Posts: 5804
xx Change Username Color <June 2012 CoTM>
« Thread started on: May 26th, 2003, 6:56pm »

Coloured Names


You can change the colours of anyone's username by using this simple script in your all your footers...


<script language="javascript" type="text/javascript">
<!--

function doitnow(user,effect) {
for(var a=0;a<document.links.length;a++)
if(document.links[a].href.indexOf('action=viewprofile&username='+user) != -1 )
document.links[a].style.cssText=effect;
}

doitnow("Username1","effect");
// Insert more here if needed
// -->
</script>



Just insert the members username, not display name, where indicated above...

Please remove this line when you use the code, as it may cause you an error.. it is only there to show where to add extra names..
// Insert more here if needed


You can add more names to change, just repeat this line.

doitnow("Username2","effect");



The effects that should work are:

Glow - Insert: filter:glow(color=FF0000, strength=2); width: 1; Preview

Colour - insert: color:XXXXXX;
where XXXXXX is the hex colour code Preview

text-decoration Insert: text-decoration: *;

Possible value for *


  • none
  • underline
  • overline
  • line-through


font size - Insert: font-size: 10px;


font weight - Insert: font-weight:*;

Possible value for *

  • normal
  • bold
  • lighter
  • bolder


font style - Insert: font-style: *;

Possible value for *

  • normal
  • italic
  • oblique



Shadow - Insert: filter: shadow(color=red, direction=*); width: 1;

Possible value for *
« Last Edit: Jun 11th, 2012, 2:28pm by Dalton » User IP Logged

User Image
Richard
Executive Member


member is offline

Avatar




Homepage PM


Posts: 11512
xx Re: Colored Names
« Reply #1 on: Nov 21st, 2004, 7:43pm »

PLEASE NOTE Use the above code to change a specific user's color, these codes change the entire staff body.

Change the color of all administrators' names.

<style>
.adminuser:link, .adminuser:visited, .adminuser:hover{color:HEX CODE;}
</style>


For all Global Moderators:

<style>
.gmoduser:link, .gmoduser:visited, .gmoduser:hover{color:HEX CODE;}
</style>


What to do?
For example where there is HEX CODE place 000000, or whatever you want the member group's name color to be. Place these codes in your header for best results. All codes can be combined into one.
« Last Edit: Nov 22nd, 2004, 12:10pm by Richard » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls