DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Bugs
*****************************************************
#Post#: 689--------------------------------------------------
Werid Bug..
DIR By: Damien
Date: August 6, 2010, 12:37 am
---------------------------------------------------------
[center][IMG]
HTML http://i37.tinypic.com/2lic39d.png[/img][IMG]http://i36.tinypic.com/ina139.png[/img]I<br
/>did the Image Swap in the Footers and it doesn't show in
topics
and post... How I fix?
[/center]
#Post#: 691--------------------------------------------------
Re: Werid Bug..
DIR By: Fate
Date: August 6, 2010, 9:05 am
---------------------------------------------------------
Please post the code you used so we can help you.
#Post#: 695--------------------------------------------------
Re: Werid Bug..
DIR By: Damien
Date: August 6, 2010, 10:28 am
---------------------------------------------------------
I added this in Footers,
--- Code ---
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//staradmin.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_Owner.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//stargmod.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_F-Mod.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1staraqua.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_Artist-1.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1stargold.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_banned-1.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starlime.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_creator.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starorange.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_donator.png"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starpink.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_gmod.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starpurple.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_RetiredStaff-1.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starred.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_S-Mod.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
--- End Code ---
#Post#: 696--------------------------------------------------
Re: Werid Bug..
DIR By: Fate
Date: August 6, 2010, 10:39 am
---------------------------------------------------------
That seems to be a code for SMF For Free Forums.
You don't need to add a new code for each image, simply do this:
--- Code ---
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "ORIGINAL_URL_HERE" ,
"YOUR_REPLACEMENT_IMAGE_URL" ]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
--- End Code ---
Replace ORIGINAL_URL_HERE with the url of the original image.
(read what Seldom Fail said below)
Replace YOUR_REPLACEMENT_IMAGE_URL with the url of the image you
want. (which you did correctly)
Instead of adding a new code each time, simply add more of this
line under the first:
--- Code ---
img_b[img_b.length++] = [ "ORIGINAL_URL_HERE" ,
"YOUR_REPLACEMENT_IMAGE_URL" ]
--- End Code ---
#Post#: 705--------------------------------------------------
Re: Werid Bug..
DIR By: Jaron
Date: August 6, 2010, 12:36 pm
---------------------------------------------------------
You have 2 backslashes in the image links for the images you're
trying to replace.
HTML http://images.smfboards.com/ranks//staradmin.gif
HTML http://images.smfboards.com/ranks//staradmin.gif
That should be changed to
HTML http://images.smfboards.com/ranks/staradmin.gif
HTML http://images.smfboards.com/ranks/staradmin.gif
Also, using a seperate code for each image will work. But doing
what Fate suggested is easier to edit.
It's really just a preference thing. Either way will work fine
and is not the cause of the trouble you're having.
#Post#: 729--------------------------------------------------
Re: Werid Bug..
DIR By: Damien
Date: August 7, 2010, 12:19 am
---------------------------------------------------------
Thank you guys,
--- Code ---
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//staradmin.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_Owner.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//stargmod.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_F-Mod.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1staraqua.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_Artist-1.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1stargold.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_banned-1.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starlime.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_creator.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starorange.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_donator.png"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starpink.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_gmod.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starpurple.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_RetiredStaff-1.gif"<br
/>]
img_b[img_b.length++] = [
"
HTML http://images.smfboards.com/ranks//1starred.gif"
,
"
HTML http://i305.photobucket.com/albums/nn207/damo_elms/th_S-Mod.gif"<br
/>]
var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++)
if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
--- End Code ---
it's fixed! Locked this please.
#Post#: 731--------------------------------------------------
Re: Werid Bug..
DIR By: Jaron
Date: August 7, 2010, 8:06 am
---------------------------------------------------------
You still have 2 backslashes.
Take one of the links and click on it... it doesn't show an
image.
HTML http://images.smfboards.com/ranks//staradmin.gif
If it doesn't show an image there, it won't work in the code.
#Post#: 732--------------------------------------------------
Re: Werid Bug..
DIR By: Fate
Date: August 7, 2010, 9:17 am
---------------------------------------------------------
--- Quote from: Seldom Fail link ---
>
> You still have 2 backslashes.
>
> Take one of the links and click on it... it doesn't show an
image.
>
>
HTML http://images.smfboards.com/ranks//staradmin.gif
HTML http://images.smfboards.com/ranks//staradmin.gif
>
> If it doesn't show an image there, it won't work in the code.
>
--- End Quote ---
Actually the image works perfectly fine in Firefox regardless -
so it will "work" in the code.
If the images don't appear in other browsers however, then
several of your members may not be able to see the images - so
it might be a good idea to take Seldom's advice. ;)
#Post#: 739--------------------------------------------------
Re: Werid Bug..
DIR By: Damien
Date: August 7, 2010, 11:37 am
---------------------------------------------------------
Yes, i remove the "//"
There's only one "/" like you told me.
Thank you.
#Post#: 740--------------------------------------------------
Re: Werid Bug..
DIR By: Jaron
Date: August 7, 2010, 2:28 pm
---------------------------------------------------------
no fate. im using firfox and when you click the link it doesnt
take you to the image.
*****************************************************
Page 1 of 2
DIR Next Page