URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Create a Forum Coding
  HTML https://cfcoding.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Create A Forum Codes
       *****************************************************
       #Post#: 31--------------------------------------------------
       [CODE] Membergroup Image-- Agent Moose
   DIR By: Nick
       Date: August 5, 2010, 11:06 pm
       ---------------------------------------------------------
       100% of the credit for making this code goes to Agent Moose
       --- Code ---
       
       <script type="text/javascript"
       src="
  HTML http://smcodes.smfforfree3.com/jquery.js"></script>
       <script type="text/javascript">
       function GroupImage(Group, Image){
       //Created by Agent Moose
       var PostGroup = document.getElementsByTagName("li");
       for(x=0;x<PostGroup.length;x++){
       if(PostGroup[x].className === "membergroup" &&
       PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
       
       $(PostGroup[x]).parent().prev().find("a:last").prepend("<img
       src='" + Image + "' />");
       };
       if(PostGroup[x].className !== "membergroup" &&
       PostGroup[x].className === "postgroup" &&
       PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
       
       $(PostGroup[x]).parent().prev().find("a:last").prepend("<img
       src='" + Image + "' />");
       };
       };
       };
       GroupImage("GROUP", "IMAGE");
       </script>
       
       --- End Code ---
       GROUP = The Group for which the selected image will show next to
       their names in posts.
       IMAGE = the Image for the group you have selected.
       To Add more images for certain membergroups, add more of these
       lines:
       --- Code ---
       GroupImage("GROUP", "IMAGE");
       --- End Code ---
       NOTE:
       The only way this code will work is if you remove "Post Group"
       title for Admins/Mods:
       Admin-> Layout Settings-> Theme Settings-> Turn "Hide post
       group titles for grouped members" to on. (section two-subsection
       four-option six)
       100% of the credit to making this code goes to Agent Moose
       *****************************************************
       Page 1 of 1