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#: 9077--------------------------------------------------
Code Help?
DIR By: abugbeary
Date: March 31, 2013, 11:12 am
---------------------------------------------------------
I just put in what I want for this code,
--- Code ---
<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("Webmaster",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/webmaster.png");
GroupImage("Wolf",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/wolf.png");
GroupImage("Werewolf",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/werewolf.png");
GroupImage("Vampire",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/vampire-1.png");
GroupImage("Tribe of Falling Water",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/tribeoffallingwater.png");
GroupImage("Tribe of Endless Darkness",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/tribeofendlessdarkness.png");
GroupImage("Tribe of Drifting Leaves",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/tribeofdriftingleaves.png");
GroupImage("Programmer",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/programmer.png");
GroupImage("Notail",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/notail.png");
GroupImage("Moderator",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/moderator.png");
GroupImage("Lifeclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/lifeclan-1.png");
GroupImage("Horse",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/horse.png");
GroupImage("Global Moderator",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/globalmod.png");
GroupImage("Fox",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/fox.png");
GroupImage("Fireclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/fireclan.png");
GroupImage("Fairy",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/fairy.png");
GroupImage("Dragon",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/dragon.png");
GroupImage("Dog",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/dog.png");
GroupImage("Community Assistant",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/communityassistant.png");
GroupImage("Artist",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/artist.png");
GroupImage("Administrator",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/admin.png");
GroupImage("Wildclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/wildclan.png");
GroupImage("Waterclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/waterclan.png");
GroupImage("Starclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/starclan.png");
GroupImage("Snakeclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/snakeclan.png");
GroupImage("Skyclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/skyclan.png");
GroupImage("Skullclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/skullclan.png");
GroupImage("Poisonclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/poisonclan.png");
GroupImage("Morphclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/morphclan.png");
GroupImage("Darkforest",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/darkforest.png");
GroupImage("Darkclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/darkclan.png");
GroupImage("Bloodclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/bloodclan.png");
GroupImage("Birdclan",
"
HTML http://i1246.photobucket.com/albums/gg616/Athena_Castagna/birdclan.png");
</script>
--- End Code ---
and the pictures come out before the username, and after the
online button.
I wanted to know if the code could be edited to where the
picture come out centered below the group.
Thanks!
abugbeary
*****************************************************
Page 1 of 1