Advertise Here

Author Topic: [[REQUEST]] Change Username to Image  (Read 6473 times)

0 Members and 1 Guest are viewing this topic.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
[[REQUEST]] Change Username to Image
« on: May 03, 2009, 05:02:27 pm »
I found a code on SMCodes but it didn't work :P

I was hoping someone could make me a code that would do this ;) Thanks!
<--- Donate to SMF For Free! :D

Offline Vitality

  • SMF For Free Member
  • *
  • Posts: 53
  • Revolution X
    • View Profile
    • Revolution X

  • Total Badges: 14
    Badges: (View All)
    Linux User Topic Starter Combination Level 3 Level 2
Re: [[REQUEST]] Change Username to Image
« Reply #1 on: May 03, 2009, 06:22:09 pm »
Footers
Code: [Select]
<script type="text/javascript">
var eAlink=document.getElementsByTagName("a");
function nameChanger(name,user,image){
var eA=eAlink.length
while(eA--){
if(eAlink[eA].innerHTML===name&&eAlink[eA].href.indexOf(user)!=-1){
eAlink[eA].innerHTML="<img src='"+image+"'>";
}
}
}
nameChanger("USER_NAME","u=USER_ID","IMAGE");
</script>
Edit/add to the nameChanger() line.

Editing
u=USER_ID - The id number of the user's account (u=number).
IMAGE - The url of the image you wish to use.
USER_NAME - The user name

Adding:
Just add another line of nameChanger("USER_NAME","u=USER_ID","IMAGE"); and again edit it.
« Last Edit: August 18, 2010, 10:59:25 am by simply sibyl »

Offline tyler07899

  • SMF For Free Newbie
  • *
  • Posts: 14
    • View Profile
    • runescape place looking for more admins and mods

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [[REQUEST]] Change Username to Image
« Reply #2 on: May 04, 2009, 04:16:47 am »
what the hell!!!!!!!!!!!!!!!!!! have a look what happen when i did it www.runescapeplace.info or www.runescapeplace.smfforfree.com
all join my runescape community www.runescapeplace.info

all join my xbox360 website http://xboxaustralia.smfforfree.com/index.php
tyler

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [[REQUEST]] Change Username to Image
« Reply #3 on: May 04, 2009, 06:18:58 am »
tyler - I don't see the problem on your forum  :-\
<--- Donate to SMF For Free! :D

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: [[REQUEST]] Change Username to Image
« Reply #4 on: May 04, 2009, 10:58:42 am »
what the hell!!!!!!!!!!!!!!!!!! have a look what happen when i did it www.runescapeplace.info or www.runescapeplace.smfforfree.com

Not seeing the issue.  Appears the code must of been removed.
When seeking support for a code it is important that you:
1.  Leave the code in place so we can see the problem
2.  Paste the code, as you used it, here so we can see how you did it

Offline Eston

  • SMF For Free Newbie
  • *
  • Posts: 1
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Second year Anniversary One year Anniversary
Re: [[REQUEST]] Change Username to Image
« Reply #5 on: June 08, 2009, 02:59:51 pm »
where do i need to add it?

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [[REQUEST]] Change Username to Image
« Reply #6 on: June 08, 2009, 11:27:20 pm »
where do i need to add it?

Admin > Manage Styles > Headers and Footers
:)

Offline wagner.

  • SMF For Free Newbie
  • *
  • Posts: 3
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Second year Anniversary One year Anniversary
Re: [[REQUEST]] Change Username to Image
« Reply #7 on: November 14, 2009, 09:41:17 pm »
i am confused. where do i ad this code?

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [[REQUEST]] Change Username to Image
« Reply #8 on: November 15, 2009, 12:57:55 am »
i am confused. where do i ad this code?

Admin CP -> Manage Styles ->Headers and Footers.

Offline Shroom!

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

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 10 Posts First Post One year Anniversary
Re: [[REQUEST]] Change Username to Image
« Reply #9 on: October 02, 2010, 07:31:43 am »
This code doesn't do anything for me.

 

Related Topics

  Subject / Started by Replies Last post
Username Change

Started by Prasad007 General Support

4 Replies
2086 Views
Last post November 12, 2005, 07:09:32 am
by Prasad
1 Replies
1229 Views
Last post July 18, 2007, 07:32:14 pm
by simply sibyl
3 Replies
1484 Views
Last post August 22, 2008, 11:54:04 am
by ama
2 Replies
1698 Views
Last post October 17, 2008, 08:20:18 pm
by Agent Moose