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
  • Pages:
  • 1
  • 2
Group Icons without removal of pips
Topic Started: Oct 22 2009, 11:11 AM (4,711 Views)
slayer766-ZNR
Member
[ *  *  *  * ]
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
 
Replies:
SandyC (PM)
Member Avatar
Member
[ *  *  *  * ]
The previews giving me an error message :(
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Here's a preview: http://img832.imageshack.us/img832/3896/fcc54b57e4a94e08b4f8c34.png
Online Profile Quote Post Goto Top
 
enias
Member
[ *  * ]
i TRIED TO USE THIS BUT IT DIDNT WORK... THE OTHER IMAGES DONT APPEAR
good one but didnt work for me
Edited by enias, Jan 13 2012, 07:18 PM.
Offline Profile Quote Post Goto Top
 
C.M Punk
Member Avatar
Cult Of Personality!!!
[ * ]
Love It
Thanks
Offline Profile Quote Post Goto Top
 
enias
Member
[ *  * ]
I want it but doesnt work and I tried everything
thanks but no thanks I did it
Edited by enias, Jan 14 2012, 11:44 AM.
Offline Profile Quote Post Goto Top
 
okashiPYON
Member Avatar
Member
[ * ]
I don't get how to add this T_T
Offline Profile Quote Post Goto Top
 
enias
Member
[ *  * ]
Hey I used this code to set differents pips per group, but now I want different pips per member I tried some here, but they make a spece, and is set it beside the name, and I would like one per member that works as this does...
Offline Profile Quote Post Goto Top
 
docrikowski
Member Avatar
Zetaboards Enthusiast
[ * ]
enias
Jan 13 2012, 07:10 PM
i TRIED TO USE THIS BUT IT DIDNT WORK... THE OTHER IMAGES DONT APPEAR
good one but didnt work for me
Same here. It doesn't work at all.

EDIT
I'm wrong. It works.
Just do not select the icon when you Edit the Group. Leave the option to None. Then add the image link to Cory's code. :)
Edited by docrikowski, Mar 31 2012, 07:52 AM.
Offline Profile Quote Post Goto Top
 
Sheyney Fox
Member Avatar
Member
[ *  * ]
Thank you Cory! :wub:
Edited by Sheyney Fox, Jul 16 2012, 11:57 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2