Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Add group icons without removing pips
Topic Started: Sep 25 2008, 12:17 PM (602 Views)
slayer766
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
 
Namor76
Member Avatar
Member
[ * ]
as i said before... ;)

great job slayer766!!
Offline Profile Quote Post Goto Top
 
Crimson
Member
[ * ]
nice job

so wait this code lets you add more group icons or just one and pips
Offline Profile Quote Post Goto Top
 
trombone13
Member
[ * ]
Hmm... I think this might be exactly what I'm looking for. Just a question or two so I know for sure...
-Does this work for Joinable Groups or just Groups?
-(same question as Crimson above)

Basically, I want a person to be able to have badges in their profile after I add them to the group, but they need to be able to get more than one badge (it's Pokemon, FYI). Will this help me do that?
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Looks nice, but you should add the alt attribute to the img tag.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · User Created Codes · Next Topic »
Add Reply