Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Add group icons without removing pips
Topic Started: Sep 28 2008, 12:04 PM (1,366 Views)
.Scott
Member Avatar
aka slayer766
[ *  *  *  *  *  *  * ]
Name: Add Group Icons without removing pips
Description: Add Group icons for each member group in the posts without the removal of pips
Copyright: slayer766
Known Bugs: None
Browser compatibility: All
Preview/screen shot: Preview
Installation: Board Template - Below the board:

Code which removes the Group:
Code:
 
<script type="text/javascript">
function Icons(group,img){
$(".user_info dd:contains('"+group+"')").parent().prev().append("<img src='"+img+"'>").next().find("dt:contains('Group')").empty().next().empty();
}

Icons("Admins","Image");
Icons("Members","Image");
</script>


Code which doesn't remove the Group:
Code:
 
<script type="text/javascript">
function Icons(group,img){
$(".user_info dd:contains('"+group+"')").parent().prev().append("<img src='"+img+"'>");
}

Icons("Admins","Image");
Icons("Members","Image");
</script>


If you want to add more just keep adding Icons("Group Name","Image"); after each other and so on.
Offline Profile Quote Post Goto Top
 
EdgeMirror
Member
[ *  *  * ]
I don't seem to see it in the preview, tried it on my board and it's not working either..
Offline Profile Quote Post Goto Top
 
TheAvengingSon
Member Avatar
Member
[ * ]
It was done as a request I made on ZBcode, It works perfect... did you copy the code exactly?

cause this Slayer766 person doesn't do codes that don't work! :P
Offline Profile Quote Post Goto Top
 
Renegade605
Member Avatar
The Pneumatic Destroyer
[ *  *  * ]
I would use this except it doesn't even work on the test board. It removed the admin's avatar and the pips weren't there.
Offline Profile Quote Post Goto Top
 
deltacommander
Member Avatar
Member
[ * ]
It didn't work for me.
Offline Profile Quote Post Goto Top
 
Lanex
Member Avatar
Endless Entertainment Administrator
[ *  * ]
I'm sorry for the big bump, but am interested in this code and just want to know if anyone has it working yet?

Plus, do I keep the pips as usual, then add the team icons to this code? Am not entirely sure on the two different codes.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code & Modification Database · Next Topic »
Add Reply