Simple Machine Codes
April 17, 2024, 07:56:18 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 Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Membergroup Changes Username

Pages: [1]   Go Down
  Print  
Author Topic: Membergroup Changes Username  (Read 451 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: May 23, 2009, 06:51:45 pm »

Footers:
Code:
<script type="text/javascript">
var memColor = new Array();
memColor[memColor.length] = ["MEMBERGROUP NAME","START HTML","END HTML"];

//Created by Agent Moose (revolutionx.smfforfree3.com)
if(location.href.match("topic,")){
for(f=0;f<memColor.length;f++){
$("div.smalltext").each(function(){
if(this.innerHTML.match(memColor[f][0] + "<br")){
$(this).prev().children().html(memColor[f][1] + $(this).prev().children().html() + memColor[f][2]);
};});};};
</script>
Original Request: http://revolutionx.smfforfree3.com/index.php/topic,578.0.html

This code changes the username of a person according to which membergroup they are in.

MEMBERGROUP = The membergroup name.
START HTML = The First tag for HTML
END HTML = The End tags for HTML.

Here are two example for editing the code:
Code:
memColor[memColor.length] = ["Newcomer","<font color='red'>","</font>"];
memColor[memColor.length] = ["Starter","<b><i>","</i></b>"];

Enjoy Smiley
« Last Edit: May 30, 2009, 08:58:56 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter



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 © 2016, Simple Machines
Privacy Policy