Advertise Here

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

0 Members and 1 Guest are viewing this topic.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Membergroup Image
« Reply #30 on: March 23, 2010, 06:11:01 pm »
Eviction of Max  do you have any other codes in your header/footer?    I know this one won't work with the "Name Across Board" code and that you can have only one of them.   Its possible others may conflict too.  Also this code works in the Post Area only.   Forum url?
« Last Edit: March 23, 2010, 06:13:48 pm by simply sibyl »

Offline Eviction of Max

  • SMF For Free Newbie
  • *
  • Posts: 6
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Second year Anniversary One year Anniversary
Re: [Code] Membergroup Image
« Reply #31 on: March 23, 2010, 06:56:54 pm »
Eviction of Max  do you have any other codes in your header/footer?    I know this one won't work with the "Name Across Board" code and that you can have only one of them.   Its possible others may conflict too.  Also this code works in the Post Area only.   Forum url?

Yes I have other codes, the individual one version of the code(adding crowns individually).

I tried the code before adding the individual one and still didn't work.

Makes sense what you are saying, they might conflict.

Thanks for the help, and this is my url;

http://alienexample.smfforfree.com/index.php

Btw I know this is off topic but there are other versions of smfforfree like smfforfree2 and 3, are they better?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Membergroup Image
« Reply #32 on: March 23, 2010, 07:16:46 pm »
Btw I know this is off topic but there are other versions of smfforfree like smfforfree2 and 3, are they better?

They are not versions.   They are different server locations.    The forums are all the same - same smf software version, same features, same modifications, same options - there is no difference other then a number in the url  (or in the case of smfforfree.com no number in the url)
« Last Edit: March 23, 2010, 07:18:52 pm by simply sibyl »

Offline Eviction of Max

  • SMF For Free Newbie
  • *
  • Posts: 6
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Second year Anniversary One year Anniversary
Re: [Code] Membergroup Image
« Reply #33 on: March 23, 2010, 07:22:18 pm »
Btw I know this is off topic but there are other versions of smfforfree like smfforfree2 and 3, are they better?

They are not versions.   They are different server locations.    The forums are all the same - same smf software version, same features, same modifications, same options - there is no difference other then a number in the url  (or in the case of smfforfree.com no number in the url)


K, lol never would have known.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Membergroup Image
« Reply #34 on: March 23, 2010, 07:23:53 pm »
No prob.    Seems to confuse people sometimes   ;)

Offline Max_Mambo

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Second year Anniversary One year Anniversary
Re: [Code] Membergroup Image
« Reply #35 on: May 04, 2010, 10:19:04 am »
how it works?!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Membergroup Image
« Reply #36 on: May 04, 2010, 10:49:02 am »
It works like the crown code -  only its by membergroup instead of name

Puts a small image next to the member's name -  it works by Membergroup so if they move up a group, or you move them to a new group yourself the image will change to that groups image.

Image shows in Post area only
Do not use with the Name Across Board Code
« Last Edit: May 04, 2010, 10:55:29 am by simply sibyl »

Offline Snipa

  • SMF For Free Newbie
  • *
  • Posts: 5
    • View Profile
    • [508] Pkwarehouse

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Avatar One year Anniversary
Re: [Code] Membergroup Image
« Reply #37 on: January 31, 2011, 02:26:06 am »
Sorry For Such a Late Post But, 

The Code  Works Fine  But there Is One Problem..

It only shows the first group I Have

The Others Remain Pictureless   :(

Any Help?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Membergroup Image
« Reply #38 on: January 31, 2011, 10:37:16 am »
Snipa - did you set it up for other Membergroups?    Ild go back thru the directions and doublecheck your code.  Make sure you have it set up correctly.   Also - if you are using the "Name Across Board" code this code will not work with it.  Can use only one of them.

If you need further assistance we need your forum url and please paste the code you used here so we can see how you set it up.

Offline Snipa

  • SMF For Free Newbie
  • *
  • Posts: 5
    • View Profile
    • [508] Pkwarehouse

  • Total Badges: 5
    Badges: (View All)
    Topic Starter Level 1 First Post Avatar One year Anniversary
Re: [Code] Membergroup Image
« Reply #39 on: January 31, 2011, 10:31:14 pm »
My Forum Link Is:  http://Pkwarehouse.tk     ( http://armadylpwnsscape.smfforfree.com )

And This Is My Code     
Code: [Select]
<script type="text/javascript">
function GroupImage(Name,Image){
//Created by Agent Moose (revolutionx.smfforfree3.com)
var DiV1 = document.getElementsByTagName("DiV");
var DiV2 = DiV1.length;
while(DiV2--){
if(DiV1[DiV2].innerHTML.indexOf(Name) != -1 && DiV1[DiV2].previousSibling.innerHTML){
DiV1[DiV2].previousSibling.firstChild.innerHTML = "<img src='" + Image + "' />" + DiV1[DiV2].previousSibling.firstChild.innerHTML;
}else if(DiV1[DiV2].innerHTML.indexOf(Name) != -1 && DiV1[DiV2].previousSibling.previousSibling.innerHTML){
DiV1[DiV2].previousSibling.previousSibling.firstChild.innerHTML = "<img src='" + Image + "' />" + DiV1[DiV2].previousSibling.previousSibling.firstChild.innerHTML;
};
};
};GroupImage("Administrator","http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/admin.gif");
GroupImage("Moderator","http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod.gif");
GroupImage("Veteran","http://i29.tinypic.com/2rfyo2q.png");
GroupImage("Graphic Designer","http://png-2.findicons.com/files/icons/1156/fugue/16/paint_brush_small.png");
GroupImage("Chatbox Moderator","http://i30.tinypic.com/2d9phg2.png");
</script>

I Wen't Back And Followed The Directions  But it still didn't work     i've also tried the code with  enters between the  new groups  and that didn't fix it   

also on the name across board   i was gonna use that  untill i saw i had to do wayy to much    and  seen this instead   so i never had used it officially

Offline Jaydeen

  • SMF For Free Newbie
  • *
  • Posts: 8
    • View Profile

  • Total Badges: 4
    Badges: (View All)
    Topic Starter Level 1 First Post One year Anniversary
Re: [Code] Membergroup Image
« Reply #40 on: April 17, 2011, 12:40:49 am »
HWhats the hedd

Offline Keat

  • SMF For Free Newbie
  • *
  • Posts: 1
    • View Profile

  • Total Badges: 4
    Badges: (View All)
    Topic Starter Level 1 First Post One year Anniversary
Re: [Code] Membergroup Image
« Reply #41 on: April 24, 2011, 07:59:53 pm »
How do I add things to the headers and footers?:(

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Code] Membergroup Image
« Reply #42 on: April 24, 2011, 08:26:48 pm »
Admin CP > Manage Styles > Headers/Footers
<--- Donate to SMF For Free! :D

Offline Mythe

  • SMF For Free Member
  • *
  • Posts: 53
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Membergroup Image
« Reply #43 on: May 20, 2011, 09:57:08 am »
Not working.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Code] Membergroup Image
« Reply #44 on: May 20, 2011, 11:35:38 am »
Please provide us with:

Your forum URL
The code that is in your footers that is not working

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1040 Views
Last post August 21, 2007, 02:20:47 pm
by Xarjin
0 Replies
695 Views
Last post July 01, 2008, 04:00:16 pm
by raggi5
2 Replies
885 Views
Last post July 07, 2008, 11:17:17 am
by simply sibyl
2 Replies
1760 Views
Last post November 26, 2008, 03:38:15 pm
by - Lawrence -
1 Replies
2727 Views
Last post February 16, 2013, 07:22:58 pm
by simplyaura