Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: Bohord on April 30, 2016, 11:46:55 am

Title: Smilies in my forum don't work
Post by: Bohord on April 30, 2016, 11:46:55 am
I tried doesn't work
This is the Jquery.

Code: [Select]
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>This is the code.



Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
var forumurl = "http://fantasyff2.createaforum.com/index.php";
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/smiley.gif" , "http://smfsupport.com/support/Smileys/smfnew/smiley.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/wink.gif" , "http://smfsupport.com/support/Smileys/smfnew/wink.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/cheesy.gif" , "http://smfsupport.com/support/Smileys/smfnew/cheesy.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/grin.gif" , "http://smfsupport.com/support/Smileys/smfnew/grin.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/angry.gif" , "http://smfsupport.com/support/Smileys/smfnew/angry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/sad.gif" , "http://smfsupport.com/support/Smileys/smfnew/sad.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/shocked.gif" , "http://smfsupport.com/support/Smileys/smfnew/shocked.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/cool.gif" , "http://smfsupport.com/support/Smileys/smfnew/cool.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/huh.gif" , "http://smfsupport.com/support/Smileys/smfnew/huh.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/rolleyes.gif" , "http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/tongue.gif" , "http://smfsupport.com/support/Smileys/smfnew/tongue.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/lipsrsealed.gif" , "http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/undecided.gif" , "http://smfsupport.com/support/Smileys/smfnew/undecided.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/kiss.gif" , "http://smfsupport.com/support/Smileys/smfnew/kiss.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/cry.gif" , "http://smfsupport.com/support/Smileys/smfnew/cry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl ".createaforum.com/Smileys/default/embarrassed.gif" , "http://support.createaforum.com/Smileys/smfnew/embarrassed.gif" ]




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();




Someone help.
Title: Re: Smilies in my forum don't work
Post by: CreateAForum on April 30, 2016, 01:12:29 pm
forummurl should just be fantasyff2
Title: Re: Smilies in my forum don't work
Post by: Bohord on May 05, 2016, 11:15:39 am
Tried, doesn't work still.
Title: Re: Smilies in my forum don't work
Post by: CreateAForum on May 05, 2016, 12:13:04 pm
Not sure then i didn't make that code.
Title: Re: Smilies in my forum don't work
Post by: Bohord on May 14, 2016, 06:04:39 am
It works