Create A Forum - Support Forums

Support => General Support => Topic started by: Jack on October 01, 2013, 09:52:05 am

Title: Problem with Rank Image Change Script
Post by: Jack on October 01, 2013, 09:52:05 am
So, I am using this tutorial: http://support.createaforum.com/7/(guide)-using-your-own-rank-images/ (http://support.createaforum.com/7/(guide)-using-your-own-rank-images/)


On my Forum: [size=78%]http://gtabaseforums.createaforum.com (http://gtabaseforums.createaforum.com/)[/size]


But, it doesn't seem to work.


[/size]
Code: [Select]
<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/staradmin.gif" , "http://i.imgur.com/iHfHZxk.png"]
img_b[img_b.length++] = ["http://images.smfboards.com/ranks/stargmod.gif" , "http://i.imgur.com/edYJ4w1.png"]
img_b[img_b.length++] = ["http://images.smfboards.com/ranks/starmod.gif" , http://i.imgur.com/edYJ4w1.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>

[/size]
[/size][size=78%]Here is the script. Any solutions?[/size]
Title: Re: Problem with Rank Image Change Script
Post by: aIURbliS on October 01, 2013, 08:05:56 pm
You need to use the real url of the image, the one you have isn't being used by CreateAForum forums anymore.
Title: Re: Problem with Rank Image Change Script
Post by: Jack on October 02, 2013, 02:19:49 am
It doesn't work on my old forum where it used to. The script is broken.
Title: Re: Problem with Rank Image Change Script
Post by: aIURbliS on October 02, 2013, 06:54:43 am
You just need to fix the urls, images -> cdn
Title: Re: Problem with Rank Image Change Script
Post by: Jack on October 02, 2013, 03:43:35 pm
Please explain it further.
Title: Re: Problem with Rank Image Change Script
Post by: aIURbliS on October 02, 2013, 07:22:47 pm
http://images.smfboards.com/ranks/staradmin.gif --> http://cdn.smfboards.com/ranks/staradmin.gif