News:

Create A Forum Installed

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

0 Members and 2 Guests are viewing this topic.

Offline Nick9

  • Jr. Member
  • **
  • Posts: 61
  • Karma: -38
    • View Profile

Badges: (View All)
Level 3 Topic Starter Combination
Re: [Code] Membergroup Image
« Reply #15 on: August 06, 2010, 06:11:00 pm »
Ok, it should only work for Kane. I guess I just didn't let the page load completely... He thinks I should be a "hidden" staff member... NOTE: this code only applies for your primary membergroup..
CreateAForum Codes | RuckaScape | Open Testing Forum

I like the people who come on here JUST to defect my karma. ;)

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile

Badges: (View All)
Linux User Mobile User Level 5
Re: [Code] Membergroup Image
« Reply #16 on: August 07, 2010, 02:29:37 pm »
From what I see, he only has it for the admins and mods, so it would only show for the primary group, since those are primary groups.
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

Offline Nick9

  • Jr. Member
  • **
  • Posts: 61
  • Karma: -38
    • View Profile

Badges: (View All)
Level 3 Topic Starter Combination
Re: [Code] Membergroup Image
« Reply #17 on: August 07, 2010, 04:12:49 pm »
Yeah... Good thing it doesn't apply for hidden staff or it wouldn'tbe very hidden..
CreateAForum Codes | RuckaScape | Open Testing Forum

I like the people who come on here JUST to defect my karma. ;)

Offline Damien

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
  • Gender: Male
  • Location: Australia
    • View Profile
    • My Forums

Badges: (View All)
Level 3 Webmaster Fourth year Anniversary
Re: [Code] Membergroup Image
« Reply #18 on: August 07, 2010, 04:13:01 pm »
The forums has a member legend built in that i enable it. i like it.
thanks for this tho mate.

Offline Thornton136

  • Newbie
  • *
  • Posts: 32
  • Karma: -2
    • View Profile

Badges: (View All)
Third year Anniversary Karma Good Level 3
Re: [Code] Membergroup Image
« Reply #19 on: August 07, 2010, 07:53:32 pm »
thanks moose.


:)

Offline Magrt

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

Badges: (View All)
Topic Starter Level 1 First Post
Re: [Code] Membergroup Image
« Reply #20 on: November 08, 2010, 02:40:18 am »
Please where can i put this code in my forum help me.

Offline Alex

  • CAF Support Team
  • Full Member
  • ***
  • Posts: 235
  • Karma: 13
  • Gender: Male
  • Location: Greenville, North Carolina
    • View Profile

Badges: (View All)
Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Code] Membergroup Image
« Reply #21 on: November 08, 2010, 03:23:24 am »
Please follow the directions in the first post of this topic. The code goes in the footers section of the forum. ;)
Terms Of Service

Please don't PM me with support questions

Offline lizard king

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

Badges: (View All)
Topic Starter Level 1 First Post
Re: [Code] Membergroup Image
« Reply #22 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

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 #23 on: March 04, 2012, 05:17:45 pm »
It does work, you just gotta read the note:
Quote
NOTE:
The only way this code will work is if you remove "Post Group" title for Admins/Mods:
    Admin-> Layout Settings-> Theme Settings-> Turn "Hide post group titles for grouped members" to on. (section two-subsection four-option six)

As for editing the code, I do not have permission to do that.
« Last Edit: March 04, 2012, 05:21:27 pm by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline jie9

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

Badges: (View All)
Topic Starter Level 1 First Post
Re: [Code] Membergroup Image
« Reply #24 on: March 13, 2012, 11:50:49 am »
it's really hard to put codes if you are not that knowledgeable in formating codes but this codes are just to easy to put just to copy and paste will do.

Offline Matt

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

Badges: (View All)
Search Level 2 Linux User
Re: [Code] Membergroup Image
« Reply #25 on: April 20, 2012, 12:21:23 am »
I need A code but I cant get can someone make it for me, GROUP"Administrator" IMAGE" http://i277.photobucket.com/albums/kk51/jssmiles/10qhzb8.png"
http://ascendancyx.createaforum.com/index.php-FORUMS
« Last Edit: April 20, 2012, 01:22:37 am by Matt »

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 #26 on: April 20, 2012, 03:21:39 am »
The code is already in the first post with clear instructions.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Matt

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

Badges: (View All)
Search Level 2 Linux User
Re: [Code] Membergroup Image
« Reply #27 on: April 20, 2012, 11:53:43 am »
Everytime I try it's doesn't ork, please bro.

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 #28 on: April 21, 2012, 01:24:36 am »
1) Post the code that you tried to use.
2) Did you read the note in the first post?
3) What web browser and its version are you using?
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Matt

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

Badges: (View All)
Search Level 2 Linux User
Re: [Code] Membergroup Image
« Reply #29 on: April 21, 2012, 02:17:41 am »
<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.className === "membergroup" && PostGroup.innerHTML.toLowerCase() === Group.toLowerCase()){ $(PostGroup).parent().prev().find("a:last").prepend("<img src='" + Image + "' />"); }; if(PostGroup.className !== "membergroup" && PostGroup.className === "postgroup" && PostGroup.innerHTML.toLowerCase() === Group.toLowerCase()){ $(PostGroup).parent().prev().find("a:last").prepend("<img src='" + Image + "' />"); }; }; }; GroupImage("Administrator", " http://i277.photobucket.com/albums/kk51/jssmiles/10qhzb8.png "); </script>

Yes, I did.
And the one before 2.0, ivthink idk.
« Last Edit: April 21, 2012, 04:28:04 pm by xboi209 »

 

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
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
375 Views
Last post October 18, 2015, 07:51:49 pm
by e a t p l z