URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Create A Forum - Support Forums
  HTML https://support.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Create a Forum Codes and Support
       *****************************************************
       #Post#: 706--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Fate
       Date: August 6, 2010, 12:43 pm
       ---------------------------------------------------------
       Make sure "Hide post group titles for grouped members" is set to
       on like Agent Moose mentioned.
       Post the code you're using please. :)
       #Post#: 707--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Jaron
       Date: August 6, 2010, 12:44 pm
       ---------------------------------------------------------
       --- Quote from: The Rep link ---
       >
       > Not working for me. :|
       >
       --- End Quote ---
       I think my mind reading ability is slowly fading... so you're
       gonna have to help me out by giving me a LITTLE more info ;) lol
       1. Board URL
       2. The code you tried.
       Then we can help you :)
       #Post#: 708--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Representation
       Date: August 6, 2010, 12:52 pm
       ---------------------------------------------------------
       ruckascape.createaforum.com
       --- 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("Owner",
       "
  HTML http://i766.photobucket.com/albums/xx305/Lion2126/OWNER1.gif");
       GroupImage("In-Game Admin",
       "
  HTML http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
       GroupImage("Forum Admin",
       "
  HTML http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
       GroupImage("In-Game Mod",
       "
  HTML http://i8.photobucket.com/albums/a38/StSquiggy/Runescape/ModCrown.png");
       GroupImage("Forum Mod",
       "
  HTML http://i756.photobucket.com/albums/xx204/shad0w_bucket/forumsstaffcrown.jpg");
       
       </script>
       
       --- End Code ---
       #Post#: 709--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Jaron
       Date: August 6, 2010, 12:57 pm
       ---------------------------------------------------------
       I went to your forum and I can see the images.
       Is it just for one group that it's not working? Or for all of
       them?
       #Post#: 710--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Fate
       Date: August 6, 2010, 1:06 pm
       ---------------------------------------------------------
       I tested the following code on my forums and it worked like a
       charm ;)
       --- 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("Owner",
       "
  HTML http://i766.photobucket.com/albums/xx305/Lion2126/OWNER1.gif");
       GroupImage("In-Game Admin",
       "
  HTML http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
       GroupImage("Forum Admin",
       "
  HTML http://i734.photobucket.com/albums/ww344/Iomsscape/Mega%20Forum%20Images/admincrown-1.jpg");
       GroupImage("In-Game Mod",
       "
  HTML http://i8.photobucket.com/albums/a38/StSquiggy/Runescape/ModCrown.png");
       GroupImage("Forum Mod",
       "
  HTML http://i756.photobucket.com/albums/xx204/shad0w_bucket/forumsstaffcrown.jpg");
       </script>
       --- End Code ---
       On your forum, I only see the image for Kane - since his
       membergroup is "Owner".
       Make sure the "GROUP" MATCHES the membergroup name
       (Admin>Members>Membergroups).
       #Post#: 711--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Representation
       Date: August 6, 2010, 1:11 pm
       ---------------------------------------------------------
       Ok, it should only work for Kane. I guess I just didn't let the
       page load completely... He thinks I should be a "hidden" staff
       member... NOTE: this code only applies for your primary
       membergroup..
       #Post#: 733--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Agent Moose
       Date: August 7, 2010, 9:29 am
       ---------------------------------------------------------
       From what I see, he only has it for the admins and mods, so it
       would only show for the primary group, since those are primary
       groups.
       #Post#: 734--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Representation
       Date: August 7, 2010, 11:12 am
       ---------------------------------------------------------
       Yeah... Good thing it doesn't apply for hidden staff or it
       wouldn'tbe very hidden..
       #Post#: 735--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Damien
       Date: August 7, 2010, 11:13 am
       ---------------------------------------------------------
       The forums has a member legend built in that i enable it. i like
       it.
       thanks for this tho mate.
       #Post#: 741--------------------------------------------------
       Re: [Code] Membergroup Image
   DIR By: Thornton136
       Date: August 7, 2010, 2:53 pm
       ---------------------------------------------------------
       thanks moose.
       :)
       *****************************************************
       Page 2 of 7
   DIR Previous Page
   DIR Next Page