News:

Create A Forum Installed

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

0 Members and 2 Guests are viewing this topic.

Offline halokiller38

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

Badges: (View All)
Level 4 Combination Level 3
Re: [Code] Membergroup Image
« Reply #45 on: May 11, 2012, 02:42:55 am »
Well.... let's see.... there aren't any instructions.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Membergroup Image
« Reply #46 on: May 11, 2012, 10:02:54 pm »
The whole post is the instructions with the exception of the original request link and the original poster saying enjoy with a emoticon....
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline RiloRii

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

Badges: (View All)
Combination Level 4 Level 3
Re: [Code] Membergroup Image
« Reply #47 on: May 16, 2012, 02:56:58 pm »
^^; Okay, so everything worked up until I tried to add the last one.


On the last one, there wasn't anymore starfile ones. So I tried to do multiple other ones, but it just wouldn't work. :/ Is there any way to still do the last one? Or, for lack of a better phrase, am I just S.O.L? XD




Nevermind! (: I found a file that worked. <3
« Last Edit: May 16, 2012, 03:02:04 pm by RiloRii »

Offline Tony

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

Badges: (View All)
Combination Topic Starter Level 2
Re: [Code] Membergroup Image
« Reply #48 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

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Membergroup Image
« Reply #49 on: August 12, 2012, 11:57:35 pm »
Did you read the note?
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Tony

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

Badges: (View All)
Combination Topic Starter Level 2
Re: [Code] Membergroup Image
« Reply #50 on: August 13, 2012, 12:01:38 am »
Yeah

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Membergroup Image
« Reply #51 on: August 13, 2012, 12:13:14 am »
I will take a look at this later
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Tony

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

Badges: (View All)
Combination Topic Starter Level 2
Re: [Code] Membergroup Image
« Reply #52 on: August 13, 2012, 12:25:04 am »
Actually, I just realized the crown only shows when you post. I want the crown to be next to your name in Online Users, Recent Topics, everywhere.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Membergroup Image
« Reply #53 on: August 13, 2012, 12:28:24 am »
Ugh, this code wasn't designed for that
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Tony

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

Badges: (View All)
Combination Topic Starter Level 2
Re: [Code] Membergroup Image
« Reply #54 on: August 13, 2012, 05:26:09 am »
Ugh, this code wasn't designed for that
Do you have a code designed for that?

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Membergroup Image
« Reply #55 on: August 13, 2012, 05:31:31 am »
no
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline ipvpforum

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

Badges: (View All)
Topic Starter First Post Level 1
Re: [Code] Membergroup Image
« Reply #56 on: October 28, 2012, 11:17:23 am »
Hey can someone make it like that we can change color of nickname too?

And that the crown shows in online list too?

Like the code on smfforfree.com.


http://www.smfsupport.com/support/smf-for-free-codes-and-support/(code)-membergroup-color/
« Last Edit: October 28, 2012, 11:34:51 am by ipvpforum »

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Membergroup Image
« Reply #57 on: November 04, 2012, 11:43:52 pm »
Edited original post, now points to another topic for the latest version of jQuery.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile

Badges: (View All)
Level 3 10 Posts Karma Good
Re: [Code] Membergroup Image
« Reply #58 on: November 11, 2014, 08:57:48 pm »
Is there a way I can alter it so it displays the image on the online list?

Offline SomeHandsomeGuy

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
  • Gender: Male
    • View Profile
    • Awesome Forums!

Badges: (View All)
Level 3 Linux User Mobile User
Re: [Code] Membergroup Image
« Reply #59 on: November 17, 2014, 08:05:03 pm »
Cool, added the code, only to pick what pic to add. Maybe a crown or something. Any suggestions?

 

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