Advertise Here

Author Topic: [Code] Change Username Across Board V3  (Read 9603 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Change Username Across Board V3
« on: July 05, 2007, 10:31:38 am »
Footers;
Code: [Select]
<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 :).

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: [Select]
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: [Select]
vthree[vthree.length] = ["OLD NAME","NEW NAME","CSS NAME"]
« Last Edit: May 02, 2008, 09:19:12 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Change Name Across Board V3
« Reply #1 on: July 05, 2007, 01:32:26 pm »
Can u post a pic, i dont understand moose, but good code
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline deathwilldie

  • Style Designer
  • *
  • Posts: 770
  • Give me an idea for a Stylesheet
    • View Profile
    • Revolution X

  • Total Badges: 28
    Badges: (View All)
    Tenth year Anniversary Nineth year Anniversary Search Eighth year Anniversary Seventh year Anniversary
Re: Change Name Across Board V3
« 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.

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Change Name Across Board V3
« Reply #3 on: July 05, 2007, 02:06:29 pm »
that was v2, but kool
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline revolation

  • SMF For Free Member
  • *
  • Posts: 44
  • MoparScape Expert-Message me for help.
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change Name Across Board V3
« 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: [Select]
<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: [Select]
OLDNAME is your Forum UserName. And
Code: [Select]
NEWNAME is the new name you want it to show.
Code: [Select]
COLOR yellow,red,green,blue, ect.
Code: [Select]
OTHER add images or comments.


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

Code: [Select]
<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 »
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)

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Change Username Across Board V3
« Reply #5 on: July 05, 2007, 05:20:01 pm »
whats the css name for?
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline revolation

  • SMF For Free Member
  • *
  • Posts: 44
  • MoparScape Expert-Message me for help.
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change Username Across Board V3
« Reply #6 on: July 05, 2007, 07:57:20 pm »
Dont worry about the word "CSS", just focus on the topic.
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)

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Change Username Across Board V3
« 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?
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Change Username Across Board V3
« Reply #8 on: July 05, 2007, 08:50:56 pm »
Oh, Well, I can't help much there.  Try PMing Kimmie or Simple Sibyle
Check out Revolution X's Brand new Code Index!

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Change Username Across Board V3
« Reply #9 on: July 05, 2007, 09:08:59 pm »
alright, i will, thanks Moosie
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline -A-

  • SMF For Free Sponsors
  • *
  • Posts: 877
  • Don't be afraid.
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Search Apple User Mobile User Windows User Topic Starter
Re: [Code] Change Username Across Board V3
« 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:

Offline Stitch

  • SMF For Free Full Member
  • *
  • Posts: 213
  • VMK will always remain in my heart.
    • View Profile
    • Project: Phoenix

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Change Username Across Board V3
« 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.

Offline puchisana

  • SMF For Free Member
  • *
  • Posts: 37
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Change Username Across Board V3
« Reply #12 on: September 03, 2008, 12:43:29 pm »
Can anyone give me an example to make my name scroll and red?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Change Username Across Board V3
« 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 »

Offline puchisana

  • SMF For Free Member
  • *
  • Posts: 37
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Change Username Across Board V3
« Reply #14 on: September 03, 2008, 01:06:39 pm »
Strange it doesnt work..

 

Related Topics

  Subject / Started by Replies Last post
50 Replies
13023 Views
Last post July 30, 2007, 09:58:16 am
by Agent Moose
10 Replies
15714 Views
Last post January 11, 2014, 03:05:53 am
by Lolcopte
14 Replies
6447 Views
Last post May 18, 2009, 09:32:27 pm
by Seldom Fail
12 Replies
9586 Views
Last post October 01, 2009, 01:58:15 am
by Zion
26 Replies
14013 Views
Last post October 29, 2012, 11:20:59 pm
by WVaGAL