SMF For Free Support Forum

SMF For Free Support => SMF For Free Codes and Support => Topic started by: Agent Moose on May 03, 2009, 09:10:00 pm

Title: [Code] Membergroup Image
Post by: Agent Moose on May 03, 2009, 09:10:00 pm
Put this in your Header if you do not already have it:

Code: [Select]
<script src="/jquery.js"></script>
Footers:
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("GROUP NAME","IMAGE URL");
</script>
Original Request: http://www.smfsupport.com/support/code_requests/request_runescape_crowns_v2_read_for_more_info-t26638.0.html (http://www.smfsupport.com/support/code_requests/request_runescape_crowns_v2_read_for_more_info-t26638.0.html)

I wasn't sure if I made this code already or not, so I just created it again :P

GROUP NAME = The Name of the Group.
IMAGE URL = The Image you want in front of that user who is in that particular group.

To add more groups, add more of these lines:
Code: [Select]
GroupImage("GROUP NAME","IMAGE URL");
Image shows in Post area only
Do not use with the Name Across Board Code

Enjoy :)
Title: Re: [Code] Membergroup Image
Post by: Didds on May 04, 2009, 03:03:22 am
Nice ;)
Title: Re: [Code] Membergroup Image
Post by: valhalla95 on May 05, 2009, 07:41:30 am
great code AM, it is faster and easier than the change name across board...so that u can just do the UG in stead of single users
Title: Re: [Code] Membergroup Image
Post by: -A- on May 05, 2009, 08:02:13 am
Great... Can I customize it further? I am not into RSPS and all that, but I would like certian groups to have certian font styles, etc.
Title: Re: [Code] Membergroup Image
Post by: Agent Moose on May 05, 2009, 03:20:53 pm
Great... Can I customize it further? I am not into RSPS and all that, but I would like certian groups to have certian font styles, etc.
Go right ahead :)  Thanks for asking :)
Title: Re: [Code] Membergroup Image
Post by: -A- on May 05, 2009, 04:29:50 pm
Noooo. I mean, I am awful at coding... if I put some time into it, I could probably figure out a way to make that work, but can the code be used for those things, "as is"?
Title: Re: [Code] Membergroup Image
Post by: 4markie on May 06, 2009, 06:24:29 pm
Thank you for creating this for me Agent Moose!  :) I really appreciate your time.
Title: Re: [Code] Membergroup Image
Post by: valhalla95 on May 07, 2009, 07:14:25 am
Thank you for creating this for me Agent Moose!  :) I really appreciate your time.

nobody said it was just for you....AM codes for the general public, unless theres a special request...but yet again it gets to the general public
Title: Re: [Code] Membergroup Image
Post by: 4markie on May 07, 2009, 04:22:14 pm
Quote
nobody said it was just for you....AM codes for the general public, unless theres a special request...but yet again it gets to the general public

I requested this code, I didn't mean it that way.

PS: Moose, the code for some reason is not working for me  ???
Title: Re: [Code] Membergroup Image
Post by: Agent Moose on May 07, 2009, 05:58:22 pm
I probably see your problem.

You have this code and the Name Across board code.  You can only have one of them.  It won't work if you have both on your board at the same time.
Title: Re: [Code] Membergroup Image
Post by: 4markie on May 08, 2009, 05:54:27 pm
I probably see your problem.

You have this code and the Name Across board code.  You can only have one of them.  It won't work if you have both on your board at the same time.

It works now xD

Btw I didn't have both codes in at the same time.

There's also another thing, this code only shows the image in the posts section, not everywhere. is there a way to adapt this code to do this?
Title: Re: [Code] Membergroup Image
Post by: Pan on May 15, 2009, 05:43:03 am
It works but the rank image is on the left side of the name, please help me!
Title: Re: [Code] Membergroup Image
Post by: Seldom Fail on May 15, 2009, 07:31:16 am
This is more for adding crowns or other images next to usernames for specific groups.

What you're looking for is this guide: How to use your own Rank Images (http://www.smfsupport.com/support/guides_and_tutorials/guide_how_to_use_your_own_rank_images-t10454.0.html;msg47457#msg47457)
       
Title: Re: [Code] Membergroup Image
Post by: Funky bean on May 18, 2009, 11:10:20 am
hmm strange it worked but all of a sudden the crowns disapeared... =/
http://blightedmegaforum.smfforfree.com
Title: Re: [Code] Membergroup Image
Post by: B E N E L on June 17, 2009, 03:37:39 pm
It doesnt work for me :o anyways i just use teh add runescape admin crown code :o
Title: Re: [Code] Membergroup Image
Post by: Luke133 on July 19, 2009, 11:45:14 am
Your code doesnt work, I tried this for administrators
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");

View staff list to see its wrong

To my administrator Dan, Dodian, Connor and doesnt work

My URL http://jirachiwishers.smfforfree.com/index.php

Note the navigation on my portal on the left on my forums sends you to google so use the usual one
</script>
Title: Re: [Code] Membergroup Image
Post by: [FailSafe] on July 19, 2009, 12:19:30 pm
Sorry, i'm not that familiar with the EzPortal, but i'm assuming the block where the forum link is located is an HTML Block?

If thats the case what cose did you put in for that?

I don't get your administrator problem though. I just went to your site and Dan and Dodian are both in the Staff List.
Title: Re: [Code] Membergroup Image
Post by: Luke133 on July 19, 2009, 12:51:46 pm
D
Sorry, i'm not that familiar with the EzPortal, but i'm assuming the block where the forum link is located is an HTML Block?

If thats the case what cose did you put in for that?

I don't get your administrator problem though. I just went to your site and Dan and Dodian are both in the Staff List.

... Maybe you should read, im trying to get the Administrator rank to put the crown next to its name, not the rank
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on July 19, 2009, 01:00:26 pm
I see the crown next to Dan's name in a post on your forum.
Since I cannot see posts from the others I cannot know if its working for them or not.
Staff List page shows only Dan and Dodian as Administrators -  does not show Connor
IF they are set as Administrator as a secondary group and not primary that could be the issue.
It may be putting the crown in only if they are set as Administrator as a Primary Group.

I believe this code does it only in posts.   If you want it thruout the forum use the code for runescape crowns instead.
Title: Re: [Code] Membergroup Image
Post by: Tillian on September 07, 2009, 03:54:54 pm
Hello Moose -

Is it possible for a version, so aswell as the image, it'll add color codes?  :coolsmiley:
Title: Re: [Code] Membergroup Image
Post by: Kenshin on October 30, 2009, 03:18:44 pm
I am going to sound rather stupid, but im more of a gaming programmer. What file, and where abouts would i find the footer? My guess is in my theme file index.template.php, if thats right. Then i dont get where to look. I dont want to place it in the wrong spot and screw up my forums.
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on October 30, 2009, 03:21:31 pm
I am going to sound rather stupid, but im more of a gaming programmer. What file, and where abouts would i find the footer? My guess is in my theme file index.template.php, if thats right. Then i dont get where to look. I dont want to place it in the wrong spot and screw up my forums.

Since you have access to edit your index.template.php file that means you are not using one of our hosted forums. 
We do support here only for SMF for Free hosted forums.
Go to simplemachines.org's community support forum for support.
Title: Re: [Code] Membergroup Image
Post by: Kenshin on October 30, 2009, 03:27:11 pm
Well if this deals with script editing. How can you get to your files without having your own site for them? I dont get that at all.
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on October 30, 2009, 03:29:50 pm
Well if this deals with script editing. How can you get to your files without having your own site for them? I dont get that at all.

Our host has modified the software so that our forum admins are able to modify the header and footer area via thier Admin Panel.    We cannot help you out with this as you do it much differently.   

You don't need and should not use the codes you find here for doing these things and could risk messing your forum up by using them as they were made to modify our hosted forums as members do not have access to edit those files.   You don't need to use a script to do this,  just css and php knowledge,  but you'll have to ask at simplemachines.org -  I cannot help you with that here.
Title: Re: [Code] Membergroup Image
Post by: Simply1Nick on November 01, 2009, 12:21:17 pm
:s

Doesn't seem to be working for me.Anyone know why?

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");
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on November 01, 2009, 01:12:02 pm
</script> is missing at the end of the code you posted.
Did you include it when you put it on your forum?

Do you have this in your Header?

Code: [Select]
<script src="/jquery.js"></script>
If you fix those 2 things it'll work.   
It will put the image only in posts so remember that.
Title: Re: [Code] Membergroup Image
Post by: Simply1Nick on November 01, 2009, 02:14:31 pm
omg,I feel like a retard now..

I forgot to copy the </script> part hhahahaha!!  :uglystupid2:

Lol thanks, I love you simply sibyl.  :smitten:
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on November 01, 2009, 02:16:19 pm
Please be very careful with scripts.   That could have broken your forum.
Title: Re: [Code] Membergroup Image
Post by: Simply1Nick on November 01, 2009, 02:34:38 pm
Actually,I had copied one above that didn't have the </script> at the end,And i assumed ( wongly ) that it had it,

Ah well. Thank you for your help sibyl.

(\.../)
 (=.=)
(")_(")
Title: Re: [Code] Membergroup Image
Post by: Eviction of Max on March 23, 2010, 03:48:29 pm
I'm sorry for bumping this up, but I think the crowns are very useful and make a forum look proffesional.

1 thing, why isn't my code working?

Take a look;

Code: [Select]
</script>

<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("Donator","http://i40.tinypic.com/1qskjs.png");
</script>


And yeah, I do have the thing that goes in the header.

Thanks in advance!
Title: Re: [Code] Membergroup Image
Post by: simply sibyl 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?
Title: Re: [Code] Membergroup Image
Post by: Eviction of Max 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?
Title: Re: [Code] Membergroup Image
Post by: simply sibyl 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)
Title: Re: [Code] Membergroup Image
Post by: Eviction of Max 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.
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on March 23, 2010, 07:23:53 pm
No prob.    Seems to confuse people sometimes   ;)
Title: Re: [Code] Membergroup Image
Post by: Max_Mambo on May 04, 2010, 10:19:04 am
how it works?!
Title: Re: [Code] Membergroup Image
Post by: simply sibyl 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
Title: Re: [Code] Membergroup Image
Post by: Snipa 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?
Title: Re: [Code] Membergroup Image
Post by: simply sibyl 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.
Title: Re: [Code] Membergroup Image
Post by: Snipa 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
Title: Re: [Code] Membergroup Image
Post by: Jaydeen on April 17, 2011, 12:40:49 am
HWhats the hedd
Title: Re: [Code] Membergroup Image
Post by: Keat on April 24, 2011, 07:59:53 pm
How do I add things to the headers and footers?:(
Title: Re: [Code] Membergroup Image
Post by: Seldom Fail on April 24, 2011, 08:26:48 pm
Admin CP > Manage Styles > Headers/Footers
Title: Re: [Code] Membergroup Image
Post by: Mythe on May 20, 2011, 09:57:08 am
Not working.
Title: Re: [Code] Membergroup Image
Post by: Andrew 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
Title: Re: [Code] Membergroup Image
Post by: Mythe on May 21, 2011, 05:39:03 am
Please provide us with:

Your forum URL
The code that is in your footers that is not working
I already have something in the footers, another image for the group, because i dont like the stars.
Title: Re: [Code] Membergroup Image
Post by: ut shady on May 21, 2011, 08:23:03 am
He asked for that info because you said it wasn't working. Is it working now?
Title: Re: [Code] Membergroup Image
Post by: Mythe on May 21, 2011, 09:06:34 am
No, it still doesn't work
Title: Re: [Code] Membergroup Image
Post by: ut shady on May 21, 2011, 09:52:36 am
so give us the code you put in your footers so we can fix it for you.
Title: Re: [Code] Membergroup Image
Post by: Andrew on May 21, 2011, 11:24:05 am
@Speedy did you not get my last post at all? You even quoted it...

Your forum URL and the code that is not working MUST be provided if you want us to help you. We're not mind readers. ;)

Tips For Using Support Forum (http://www.smfsupport.com/support/general_support/tips_for_using_the_support_forum-t24588.0.html)
Title: Re: [Code] Membergroup Image
Post by: Mythe on May 21, 2011, 05:30:30 pm
www.kmtscape.freesmfhosting.com/

Code: [Select]
[/b]<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array();

vfour[vfour.length] = ["Delusion","Delusion","royalblue","<img src='http://www.menacescape.com/images/rankimg/admin.png' />"];
vfour[vfour.length] = ["TheOnlyOne","TheOnlyOne","RoyalBlue","<img src='http://www.menacescape.com/images/rankimg/admin.png'/>"];
vfour[vfour.length] = ["OWNER","OWNER","RoyalBlue","<img src='http://www.menacescape.com/images/rankimg/admin.png'/>"];
vfour[vfour.length] = ["Tristan","Tristan","RoyalBlue","<img src='http://www.menacescape.com/images/rankimg/admin.png'/>"];
vfour[vfour.length] = ["cedric4life","Cedric4life","Red","<img src='http://i31.tinypic.com/2djcg2f.png' />"];
vfour[vfour.length] = ["GLOBAL","GLOBAL","Green","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod.gif' />"];
vfour[vfour.length] = ["iTz","iTz","Orange","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/modcrownaw2.png' />"];
vfour[vfour.length] = ["Ice","Ice","#3BB9FF","<img src='http://i25.tinypic.com/af8unp.png' />"];
vfour[vfour.length] = ["Vonic","Vonic","3BB9FF","<img src='http://i25.tinypic.com/af8unp.png' />"];
vfour[vfour.length] = ["LEGEND","LEGEND","yellow","<img src='http://www.menacescape.com/images/rankimg/legend.png' />"];
vfour[vfour.length] = ["OLD NAME","NEW NAME","COLOR","<img src='IMAGE URL' />"];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();


img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1staraqua.gif" , "http://www.menacescape.com/images/ranks/admin.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1stargold.gif" , "http://img375.imageshack.us/img375/5764/redphat.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1starlime.gif" , "http://www.menacescape.com/images/ranks/donator.jpg" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1starorange.gif" , "http://img710.imageshack.us/img710/1750/veteran1.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1starpink.gif" , "http://i42.tinypic.com/2wlsp52.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1starpurple.gif" , "http://www.menacescape.com/images/designer.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/1starred.gif" , "http://www.menacescape.com/images/ranks/developer.jpg" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/2music.gif" , "http://i43.tinypic.com/20dja.gif" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/2music1.gif" , "http://i26.tinypic.com/1zv6gra.jpg" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/2music2.gif" , "http://www.menacescape.com/images/ranks/sectional1.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/2music3.gif" , "http://i38.tinypic.com/2v3lzma.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/star.gif" , "http://i538.photobucket.com/albums/ff349/lets_photoshop/junmem.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3green.gif" , "http://i32.tinypic.com/2nqtkd5.gif" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3invert.gif" , "http://i40.tinypic.com/f5kpu.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3orange.gif" , "http://i56.tinypic.com/2viffae.png" ]
img_b[img_b.length++] = [ "http://images.www.smfboards.com/ranks/3cyan.gif" , "http://i538.photobucket.com/albums/ff349/lets_photoshop/junmem.png" ]
img_b[img_b.length++] = [ "http://images.www.smfboards.com/ranks/2music2.gif" , "http://i44.tinypic.com/28rywt3.gif" ]
img_b[img_b.length++] = [ "http://images.www.smfboards.com/ranks/2music1.gif" , "http://i26.tinypic.com/1zv6gra.jpg" ]
img_b[img_b.length++] = [ "http://images.www.smfboards.com/ranks/2music3.gif" , "http://i38.tinypic.com/2v3lzma.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3yellow.gif" , "http://www.menacescape.com/userranks/rune.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3red.gif" , "http://www.menacescape.com/userranks/dragon.png" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3purple.gif" , "http://www.menacescape.com/userranks/obby.gif" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/3palegreen.gif" , "http://www.menacescape.com/userranks/firecape.gif" ]
img_b[img_b.length++] = [ "http://images.smfboards.com/ranks/staradmin.gif" , "http://www.menacescape.com/images/ranks/legend.png" ]
var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images[i].src == img_b[j][0]){
     all_images[i].src = img_b[j][1];
}}}
</script>[/b]
Title: Re: [Code] Membergroup Image
Post by: ut shady on May 21, 2011, 06:18:46 pm
Code: [Select]
vfour[vfour.length] = ["Delusion","Delusion","royalblue","<img src='http://www.menacescape.com/images/rankimg/admin.png' />"];
vfour[vfour.length] = ["TheOnlyOne","TheOnlyOne","RoyalBlue","<img src='http://www.menacescape.com/images/rankimg/admin.png'/>"];
vfour[vfour.length] = ["OWNER","OWNER","RoyalBlue","<img src='http://www.menacescape.com/images/rankimg/admin.png'/>"];
vfour[vfour.length] = ["Tristan","Tristan","RoyalBlue","<img src='http://www.menacescape.com/images/rankimg/admin.png'/>"];
vfour[vfour.length] = ["cedric4life","Cedric4life","Red","<img src='http://i31.tinypic.com/2djcg2f.png' />"];
vfour[vfour.length] = ["GLOBAL","GLOBAL","Green","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod.gif' />"];
vfour[vfour.length] = ["iTz","iTz","Orange","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/modcrownaw2.png' />"];
vfour[vfour.length] = ["Ice","Ice","#3BB9FF","<img src='http://i25.tinypic.com/af8unp.png' />"];
vfour[vfour.length] = ["Vonic","Vonic","3BB9FF","<img src='http://i25.tinypic.com/af8unp.png' />"];
vfour[vfour.length] = ["LEGEND","LEGEND","yellow","<img src='http://www.menacescape.com/images/rankimg/legend.png' />"];
In that part of the code, for the colors, i think you need to use HTML codes.
You can use this site http://www.computerhope.com/htmcolor.htm (http://www.computerhope.com/htmcolor.htm)
Code: [Select]
vfour[vfour.length] = ["OLD NAME","NEW NAME","COLOR","<img src='IMAGE URL' />"];In that part of your code, you don't keep that line, thats a line you edit.

Also to add, for this code, you don't want this code and the across the name across board code together.
Title: Re: [Code] Membergroup Image
Post by: Seldom Fail on May 21, 2011, 06:25:57 pm
code looks like it's working to me. Names appear fine.

PS - did you not use the footer info for the theme you're using?
Title: Re: [Code] Membergroup Image
Post by: Andrew on May 21, 2011, 07:44:33 pm
Also, is this code in your header?
Code: [Select]
<script src="/jquery.js"></script>
Title: Re: [Code] Membergroup Image
Post by: Mythe on May 22, 2011, 06:50:05 am
Also, is this code in your header?
Code: [Select]
<script src="/jquery.js"></script>
Yes it is.
Title: Re: [Code] Membergroup Image
Post by: Seldom Fail on May 22, 2011, 08:42:24 am
Speedy, the code is working on your forum. Can you still not see it?
Title: Re: [Code] Membergroup Image
Post by: simply sibyl on May 22, 2011, 10:45:57 am
Seldom - The code this thread is about is not even in his Footer.   He is using the name across board code.   (See his post with the code AND see his source code)

Speedy - If you tried to use THIS code along with the code you currently are using you can NOT (as it says in the directions)
This code can not be used along with the "name across board" codes.   

That code (the "name across board")  is working fine.  I can see the colors and the images for the names you setup -  in both IE and Firefox.