News:

Create A Forum Installed

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

0 Members and 2 Guests are viewing this topic.

Offline lizard king

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

Badges: (View All)
Topic Starter Level 1 First Post
Re: [Code] Membergroup Image
« Reply #15 on: March 04, 2012, 08:22:31 am »
im trying to do this but it isnt working..
using his code:
and yes i followed all the directions.



Code: [Select]
<script type="text/javascript" src="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", "http://i766.photobucket.com/albums/xx305/Lion2126/OWNER1.gif");
</script>


can someone make a code for just single users and not groups?
thanks

 

Related Topics

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