Star
New Member
Posts: 82
inherit
59514
0
May 17, 2006 11:04:02 GMT -8
Star
82
September 2005
star21
|
Post by Star on Nov 26, 2005 12:36:39 GMT -8
Forum URL: http://.proboards.com
Greetings.. Can anyone please tell me more about what is written here? I dont understand how an image can replace the username.will it be the same image for everyone?
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Nov 26, 2005 12:41:33 GMT -8
You're referring to "here", but I really don't know where that is...
|
|
Star
New Member
Posts: 82
inherit
59514
0
May 17, 2006 11:04:02 GMT -8
Star
82
September 2005
star21
|
Post by Star on Dec 2, 2005 14:25:41 GMT -8
oops sorry:
What this code does is changes a members display name to an image. Just edit/repeat the bit in red for each member
<script type="text/javascript"> <!-- /* image as username */ function userImage(user,image) { var img = document.createElement('img'); img.src = image; img.border = '0'; var a = document.getElementsByTagName('a'); for(i=0; i<a.length; i++) { if(a.item(i).href.match(new RegExp('viewprofile&user='+user+'$'))) a.replaceChild(img.cloneNode(true), a.firstChild); } }
userImage('admin','http://host.com/image.gif'); userImage('username','Image URL'); userImage('username','Image URL');
//--> </script>
|
|
#FF6600
16715
0
1
May 15, 2024 17:53:07 GMT -8
Patrick [ASE]
Ancient Geek
46,296
November 2003
allseeingeyes2
|
Post by Patrick [ASE] on Dec 2, 2005 14:35:34 GMT -8
You should ask in code support in future.
where you see this line userImage('admin','http://host.com/image.gif');
that is for admin, just change the 'host.com...' for the image of your choice.
if you were doing your name here, it would be
userImage('star21','http://host.com/image.gif');
so each member would have their own image.
|
|
Star
New Member
Posts: 82
inherit
59514
0
May 17, 2006 11:04:02 GMT -8
Star
82
September 2005
star21
|
Post by Star on Dec 2, 2005 14:40:35 GMT -8
I did that but the images of the members show everywhere even the names od the moderators on the boards..everywhere..
|
|
#eb7100
1480
0
1
May 15, 2024 5:22:51 GMT -8
Craig
208,890
September 2001
cmdynasty
|
Post by Craig on Dec 2, 2005 16:15:10 GMT -8
I did that but the images of the members show everywhere even the names od the moderators on the boards..everywhere.. Where did you want them to show?
|
|