SMF For Free Support Forum
Signup For Free Forum
September 08, 2008, 05:25:11 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1] 2
  Print  
Author Topic: [Code] Change Username Across Board V3  (Read 1077 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 628


Do not PM me for Code Support or Request


View Profile WWW
« on: July 05, 2007, 10:31:38 am »

Footers;
Code:
<style>
.cssname {font-color: #ff0000}
</style>
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vthree = new Array();
vthree[vthree.length] = ["OLD NAME","NEW NAME","CSS NAME"];

var href = document.getElementsByTagName("a");
for(x=0;x<href.length;x++){
for(l=0;l<vthree.length;l++){
if(href[x].innerHTML.match(vthree[l][0])){
href[x].innerHTML = "<span class='" + vthree[l][2] + "'>" + vthree[l][(vthree[l][1] != "" ? 1 : 0)] + "</span>"
};};};
name_across_board()
</script>

This code is just like the first two, but You use CSS to make the users name diffrent.  So if you know CSS, then you will know what to do.  I don't know much CSS myself, so don't ask me for help Smiley.

OLD NAME = The Name you want to add the color to.
NEW NAME = (OPTIONAL) Change the name of a user without editing the real one.
CSS NAME = This is where the CSS comes in.  put the css name in this area.

So example, If I wanted to use the CSS I have in the code, I would do this:
Code:
vthree[vthree.length] = ["Agent Moose","","cssname"]

I hope you like it.  Yes, I know it is confusing, but You will get used to it.

If you want to add more people, just add more of these lines:
Code:
vthree[vthree.length] = ["OLD NAME","NEW NAME","CSS NAME"]
« Last Edit: May 02, 2008, 09:19:12 pm by Agent Moose » Logged

Eternal Flame Coming Soon

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
99Bullets
SMF For Free Full Member
*
Offline Offline

Posts: 180


Join Massive Gaming Site Forums!!!


View Profile WWW
« Reply #1 on: July 05, 2007, 01:32:26 pm »

Can u post a pic, i dont understand moose, but good code
Logged

Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!
deathwilldie
Style Designer
****
Offline Offline

Posts: 570

Give me an idea for a Stylesheet


View Profile WWW
« Reply #2 on: July 05, 2007, 01:47:53 pm »

Well it changes how your name looks all over the forum.  Its just like having a different name on your forum.  I thought that you already posted this Agent.
Logged


Eternal Flame Coming soon.
99Bullets
SMF For Free Full Member
*
Offline Offline

Posts: 180


Join Massive Gaming Site Forums!!!


View Profile WWW
« Reply #3 on: July 05, 2007, 02:06:29 pm »

that was v2, but kool
Logged

Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!
revolation
SMF For Free Member
*
Offline Offline

Posts: 44


MoparScape Expert-Message me for help.


View Profile
« Reply #4 on: July 05, 2007, 03:33:49 pm »

Everyone, This is a new code for this. But if you want the old code, then here it is:


Add this to headers/footers:


Code:
<script>
function nmeacrossb(){
//Created by Agent Moose
$(function() {
var oldnewb = new Array()
oldnewb[0] = ["OLDNAME","NEWNAME","COLOR","OTHER(Images ect.)"]


for(l=0;l<oldnewb.length;l++){
$("a").contains(oldnewb[l][0]).html("<font color='"+oldnewb[l][2]+"'>"+oldnewb[l][3]+oldnewb[l][(oldnewb[l][1] != "" ? 1 : 0)]+"</font>");
};});}

nmeacrossb();
</script>


Just a reminder:
Code:
OLDNAME
is your Forum UserName. And
Code:
NEWNAME
is the new name you want it to show.
Code:
COLOR
yellow,red,green,blue, ect.
Code:
OTHER
add images or comments.


BTW: If your gonna add a image, add it with its URL, but use this code with it:

Code:
<img src=http://i122.photobucket.com/albums/o243/sebastianm10/goldcrown.gif <img>

URL example added.

Code made by
Quote
Agent Moose


-Revolation
« Last Edit: July 05, 2007, 08:10:30 pm by revolation » Logged

Revolation Scape, was a Spec. Now, its a Legend. Join Today!

REVOLATION SCAPE

I dont do this alot, but if you are stuck on a code.then just give me admin on your Forum temporarily, and i will do it for you.(Message me for this)
99Bullets
SMF For Free Full Member
*
Offline Offline

Posts: 180


Join Massive Gaming Site Forums!!!


View Profile WWW
« Reply #5 on: July 05, 2007, 05:20:01 pm »

whats the css name for?
Logged

Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!
revolation
SMF For Free Member
*
Offline Offline

Posts: 44


MoparScape Expert-Message me for help.


View Profile
« Reply #6 on: July 05, 2007, 07:57:20 pm »

Dont worry about the word "CSS", just focus on the topic.
Logged

Revolation Scape, was a Spec. Now, its a Legend. Join Today!

REVOLATION SCAPE

I dont do this alot, but if you are stuck on a code.then just give me admin on your Forum temporarily, and i will do it for you.(Message me for this)
99Bullets
SMF For Free Full Member
*
Offline Offline

Posts: 180


Join Massive Gaming Site Forums!!!


View Profile WWW
« Reply #7 on: July 05, 2007, 08:22:35 pm »

no i mean like in the code it says CSS, and i was wondering like what would i put there?
Logged

Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!
Agent Moose
Moderator
*****
Offline Offline

Posts: 628


Do not PM me for Code Support or Request


View Profile WWW
« Reply #8 on: July 05, 2007, 08:50:56 pm »

Oh, Well, I can't help much there.  Try PMing Kimmie or Simple Sibyle
Logged

Eternal Flame Coming Soon

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
99Bullets
SMF For Free Full Member
*
Offline Offline

Posts: 180


Join Massive Gaming Site Forums!!!


View Profile WWW
« Reply #9 on: July 05, 2007, 09:08:59 pm »

alright, i will, thanks Moosie
Logged

Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!
Alejo
SMF For Free Sponsors
*
Offline Offline

Posts: 540


AKA Sub Zero


View Profile WWW
« Reply #10 on: May 21, 2008, 07:00:09 pm »

So what would I put for CSS name if I want an image and a different color? crazy2
Logged



Latest
Stitch
SMF For Free Full Member
*
Offline Offline

Posts: 151


VMK will always remain in my heart.


View Profile WWW
« Reply #11 on: June 15, 2008, 10:04:55 am »

Forum Url: http://projectphoenix.smfforfree4.com
Ok does this enable admins to change the color of the usernames? if not then is there any codes that do.
Logged

puchisana
SMF For Free Member
*
Offline Offline

Posts: 28


View Profile
« Reply #12 on: September 03, 2008, 12:43:29 pm »

Can anyone give me an example to make my name scroll and red?
Logged
simply sibyl
not a dude
Global Moderator
*
Offline Offline

Posts: 8034


Don't PM me for Support


View Profile WWW
« Reply #13 on: September 03, 2008, 12:59:59 pm »




var oldnewb = new Array()
oldnewb[0] = ["OLDNAME","<marquee>NEWNAME</marquee>","Red"]
« Last Edit: September 03, 2008, 01:01:33 pm by simply sibyl » Logged

puchisana
SMF For Free Member
*
Offline Offline

Posts: 28


View Profile
« Reply #14 on: September 03, 2008, 01:06:39 pm »

Strange it doesnt work..
Logged


Pages: [1] 2
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.372 seconds with 18 queries.