Simple Machine Codes
March 18, 2010, 02:33:35 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

Member Group Colors


Pages: [1]   Go Down
  Print  
Author Topic: Member Group Colors  (Read 385 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,668



View Profile WWW
« on: July 28, 2007, 08:37:42 pm »

Footers:
Code:
<script>
function color_group_name() {
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var group = new Array()
group[group.length] = ["Newbie","orange"]
group[group.length] = ["MEMBER GROUP","COLOR"]

for(f=0;f<group.length;f++){
$("div.smalltext").each(function() {
if(this.innerHTML.match(group[f][0])){this.innerHTML = this.innerHTML.replace(group[f][0],"<font color='"+group[f][1]+"'>"+group[f][0]+"</font>");};
});};});}
color_group_name();
</script>

What this code does is let you add color to the Membergroup name that showes up in the post.  It doesn't change the color of the username, just the little membergroup that showes under there username.

MEMBER GROUP = The Name of the member group.
COLOR = The color it will be.

Preview
Share Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #1 on: July 29, 2007, 08:22:02 pm »

I may try this out one day.  Was looking for a code like this a while back.
Report Spam   Logged

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #2 on: July 30, 2007, 12:39:16 am »

Another good code. GJ  Cheesy

anyway..

Quote
Thanks to kevin-1990,he made us this niffty little Affilight.

It's Affiliate  Grin
« Last Edit: July 30, 2007, 12:55:34 am by Frost » Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,668



View Profile WWW
« Reply #3 on: July 30, 2007, 09:41:46 am »

Glad you like it!

I always make that mistake!
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting