Welcome Guest [Log In] [Register]
Viewing Single Post From: Add group icons without removing pips
.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
Add group icons without removing pips · Code & Modification Database