Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Change Legend to images
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[SC] Change Legend to images
Tweet Topic Started: Jan 26 2009, 03:13 PM (701 Views)
HolySavior Jan 26 2009, 03:13 PM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Add this to the bottom of your board. it will change your legend in your stats to images instead of plain text :P

Code:
 

<script type="text/javascript">
/*created by Holysavior of zbcode */
xname = new Array();
// xname[X]=["Name", "IMAGE URL"];
xname[0]=["Admins","http://z3.ifrm.com/48/55/0/p37340/nonewpost.png"];
xname[1]=["Global Moderators", "http://z3.ifrm.com/48/55/0/p37346/hotnonew.png"];

$("#stats_legend a").each( function() {
for(x=0;x<xname.length;x++) {
if(this.innerHTML.match(xname[x][0],"i")) {
$(this).html("<img src='"+xname[x][1]+"' alt='' />")
}}
});
</script>
Edited by Reid, Jun 15 2009, 08:24 PM.
Offline Profile Goto Top
 
Smiling May 2 2010, 03:02 PM Post #2
Member Avatar
"Why buy the cow, when you can get the milk free." - Caboose

Posts:
41
Group:
Member
Member
#3,815
Joined:
May 2, 2010
Alrighty, so I tried it, and nothing changed. ?
Edited by Smiling, May 2 2010, 03:04 PM.
ohai! harhar.
Offline Profile Goto Top
 
Alex O'Brien May 2 2010, 03:11 PM Post #3
Member Avatar
Fir <3

Posts:
110
Group:
Member
Member
#3,231
Joined:
Jun 16, 2009
Did you make sure that the group names matched (the code and your board). If so, did you use the appropriate images?
*Is amused that ZBCode was made on my b-day*
Offline Profile Goto Top
 
Smiling May 2 2010, 06:31 PM Post #4
Member Avatar
"Why buy the cow, when you can get the milk free." - Caboose

Posts:
41
Group:
Member
Member
#3,815
Joined:
May 2, 2010
Well, I haven't really changed anything for groups to match or not match the board, so I wouldn't really know if something needs to be changed or not.

As for the pictures, I didn't use any specific ones. Just the ones supplied in the code made by Holy.
ohai! harhar.
Offline Profile Goto Top
 
Gorgor May 2 2010, 06:47 PM Post #5
Hello

Posts:
1,187
Group:
Former Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
Change the red to the group you want to be changed.
Quote:
 
xname[0]=["Admins","http://z3.ifrm.com/48/55/0/p37340/nonewpost.png"];
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:50 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy