DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 288--------------------------------------------------
New Smileys for Your Forum
DIR By: Jaron
Date: July 18, 2010, 6:46 pm
---------------------------------------------------------
I DID NOT CREATE THIS CODE. I JUST MODIFIED IT WITH THE SMILEY
LINKS FOR CONVENIENCE.
---------------------------------------------------------
Use the code below. Go to Admin CP > Style Manager
This code utilizes jQuery, please use the latest version found
in this thread:
HTML http://support.createaforum.com/5/jquery-v1-8-update/
HTML http://support.createaforum.com/5/jquery-v1-8-update/
FOOTERS:
--- Code ---
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var forumurl = "YOURFORUMNAME";
var img_b = new Array();
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/smiley.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/smiley.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/wink.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/wink.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/cheesy.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cheesy.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/grin.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/grin.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/angry.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/angry.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/sad.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/sad.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/shocked.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/shocked.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/cool.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cool.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/huh.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/huh.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/rolleyes.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/tongue.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/tongue.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/lipsrsealed.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/undecided.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/undecided.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/kiss.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/kiss.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/cry.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cry.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl +
".createaforum.com/Smileys/default/embarrassed.gif" ,
"
HTML http://support.createaforum.com/Smileys/smfnew/embarrassed.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 ---
Replace the "YOURFORUMNAME" with the name of your forum.
#Post#: 290--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Alex P.
Date: July 18, 2010, 8:13 pm
---------------------------------------------------------
Edited to change the name of the forum. ;)
#Post#: 292--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Jaron
Date: July 18, 2010, 8:24 pm
---------------------------------------------------------
--- Quote from: Alex link ---
>
> Edited to change the name of the forum. ;)
>
--- End Quote ---
....why?
You could've just put "support" there..... then they wouldn't
have to edit anything. It's all the same image.
Wasn't trying to advertise or anything.
#Post#: 293--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Alex P.
Date: July 18, 2010, 8:27 pm
---------------------------------------------------------
No. I edited it out, because the way that the code works is that
it will change the image display for one site. So the code you
put up would only change the image output on your forum, not on
other forums.
#Post#: 294--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Jaron
Date: July 18, 2010, 8:28 pm
---------------------------------------------------------
--- Quote from: Alex link ---
>
> No. I edited it out, because the way that the code works is
that it will change the image display for one site. So the code
you put up would only change the image output on your forum, not
on other forums.
>
--- End Quote ---
I realized that as soon as I posted my last message. Sorry.
#Post#: 295--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Alex P.
Date: July 18, 2010, 8:31 pm
---------------------------------------------------------
Not a problem. I wasn't mad at you or anything. I just fixed it
up. Thanks for posting that. It helps a lot. Just put it on my
forum. :)
I "applauded" you. :D
#Post#: 296--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Jaron
Date: July 18, 2010, 8:42 pm
---------------------------------------------------------
--- Quote from: Alex link ---
>
> Not a problem. I wasn't mad at you or anything. I just fixed
it up. Thanks for posting that. It helps a lot. Just put it on
my forum. :)
>
> I "applauded" you. :D
>
--- End Quote ---
I felt like someone was applauding me. Maybe that's why I was
having uncontrollable spasms where I was just bowing, saying
thank you a lot, and holding my arms out to catch roses
everywhere I went.
#Post#: 3695--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: xboi209
Date: February 20, 2012, 3:41 pm
---------------------------------------------------------
I know I'm bumping an old thread but there's 2 things that I'd
like to say:
1) The Jquery code you listed won't work because Jquery isn't
uploaded to CreateAForum forums yet, use this code instead:
--- Code ---
<script
src="
HTML https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
--- End Code ---
2) Instead of having to type in your forum url every time, it's
much better to type it once only :P
--- Code ---
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
var forumurl = "YOURFORUMNAME";
function swap_img(){
var img_b = new Array();
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/smiley.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/smiley.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/wink.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/wink.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/cheesy.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cheesy.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/grin.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/grin.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/angry.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/angry.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/sad.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/sad.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/shocked.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/shocked.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/cool.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cool.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/huh.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/huh.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/rolleyes.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/tongue.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/tongue.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/lipsrsealed.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/undecided.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/undecided.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/kiss.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/kiss.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/cry.gif" ,
"
HTML http://smfsupport.com/support/Smileys/smfnew/cry.gif"
]
HTML img_b[img_b.length++] = [ "http://" + forumurl
".createaforum.com/Smileys/default/embarrassed.gif" ,
"
HTML http://support.createaforum.com/Smileys/smfnew/embarrassed.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#: 11059--------------------------------------------------
Re: New Smileys for Your Forum
DIR By: Silver734
Date: August 6, 2013, 5:38 pm
---------------------------------------------------------
can there be more instructions, eg. where to put new smiley url,
where to put forum url
since i find it a bit hard to figure out
*****************************************************
Page 1 of 1