News:

Create A Forum Installed

Author Topic: [Code] Membergroup Image  (Read 14978 times)

0 Members and 1 Guest are viewing this topic.

Offline Tony

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
    • View Profile

Badges: (View All)
Combination Topic Starter Level 2
Re: [Code] Membergroup Image
« Reply #45 on: August 12, 2012, 11:37:16 pm »
I know this is basically gravedigging but I really need help with this. I added the code
Code: [Select]
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.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("Administrator", "http://i277.photobucket.com/albums/kk51/jssmiles/10qhzb8.png");
</script>
to my footers and it didn't work. My web browser is updated too. My forum is http://divinpk.createaforum.com

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
697 Views
Last post October 28, 2012, 01:35:55 pm
by terrel8125
9 Replies
2767 Views
Last post March 13, 2013, 10:51:19 pm
by aIURbliS
5 Replies
3542 Views
Last post July 19, 2020, 05:59:23 am
by Cobra C
4 Replies
33073 Views
Last post November 23, 2015, 03:26:07 am
by Agent Moose
0 Replies
375 Views
Last post October 18, 2015, 07:51:49 pm
by e a t p l z