SMF For Free Support Forum
Signup For Free Forum
September 02, 2010, 11:46:04 pm
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
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
SMF For Free Support Forum
>
SMF For Free Support
>
SMF For Free Codes and Support
(Moderator:
Agent Moose
) >
[Code] Change Username Across Board V3
Pages: [
1
]
2
« previous
next »
Print
Author
Topic: [Code] Change Username Across Board V3 (Read 3185 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
Offline
Posts: 825
Do not PM me for Code Support or Request
[Code] Change Username Across Board V3
«
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
.
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
Check out Revolution X's Brand new
Code Index
!
Bullet_RHLI
SMF For Free Full Member
Offline
Posts: 174
Join Massive Gaming Site Forums!!!
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
Logged
Thanks Hurrican47 For Making This
you want to apply for staff, please pm me!!!
deathwilldie
Style Designer
Offline
Posts: 765
Give me an idea for a Stylesheet
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.
Logged
Want to view all the themes that I have made? Just click here to find a theme chooser with all my themes on it.
Bullet_RHLI
SMF For Free Full Member
Offline
Posts: 174
Join Massive Gaming Site Forums!!!
Re: Change Name Across Board V3
«
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
Posts: 44
MoparScape Expert-Message me for help.
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:
<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)
Bullet_RHLI
SMF For Free Full Member
Offline
Posts: 174
Join Massive Gaming Site Forums!!!
Re: Change Username Across Board V3
«
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
Posts: 44
MoparScape Expert-Message me for help.
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.
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)
Bullet_RHLI
SMF For Free Full Member
Offline
Posts: 174
Join Massive Gaming Site Forums!!!
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?
Logged
Thanks Hurrican47 For Making This
you want to apply for staff, please pm me!!!
Agent Moose
Moderator
Offline
Posts: 825
Do not PM me for Code Support or Request
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
Logged
Check out Revolution X's Brand new
Code Index
!
Bullet_RHLI
SMF For Free Full Member
Offline
Posts: 174
Join Massive Gaming Site Forums!!!
Re: Change Username Across Board V3
«
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!!!
Alex P.
SMF For Free Sponsors
Offline
Posts: 834
Don't be afraid.
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?
Logged
Support FAQ
|
Style Index
|
Guides
Stitch
SMF For Free Full Member
Offline
Posts: 213
VMK will always remain in my heart.
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.
Logged
puchisana
SMF For Free Member
Offline
Posts: 37
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?
Logged
simply sibyl
Global Moderator
Offline
Posts: 13750
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
»
Logged
Please Read ----->
Tips for Using Support
Support FAQ
|
Guides & Tutorials
puchisana
SMF For Free Member
Offline
Posts: 37
Re: [Code] Change Username Across Board V3
«
Reply #14 on:
September 03, 2008, 01:06:39 pm »
Strange it doesnt work..
Logged
Pages: [
1
]
2
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMF For Free Site
-----------------------------
=> Announcements
=> General Discussion
=> Suggestions
-----------------------------
SMF For Free Support
-----------------------------
=> General Support
=> Guides and Tutorials
=> Stylesheet Codes
=> Stylesheet Requests and Support
=> SMF For Free Codes and Support
===> Code Requests
=> Bugs
=> Report Terms of Service Violations
-----------------------------
General Stuff
-----------------------------
=> General Chat
=> Advertise Your Board/Blog
=> Programming
===> HTML
===> JavaScript
===> C,C++
===> Java
===> .Net
===> PHP
===> Visual Basic
=> Gaming
===> PC Games
===> Nintendo
===> Playstation
===> Xbox / Xbox 360
=> Graphics
===> Living Avatars
Loading...