Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Aug 21st, 2017, 4:36pm


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Smilies  (Read 2276 times)
Jason
Conforums founding member
Executive Member


member is offline

Avatar

Hello!


PM

Gender: Male
Posts: 5804
xx Smilies
« Thread started on: May 26th, 2003, 7:54pm »

Smilies

The first and easiest way ito add smilies is:

Go to censored words and add the following

:word:=[img]URL OF SMILIE[/img]


Example:


:thumb:=[img]db-dave.netfirms.com/thumb.gif[/img]


Everytime someone types :thumb: in there post, it would show a picture of a thumb when they post.

:thumb:

Note: That image does not appear when they type out the post only after they have posted the message.



To make the smiles clickable.

Ok, now the fun really starts.

Enter the following code into either your headers or footers depending where you want them to appear;


<img border="0" src="URL OF SMILIE1" onclick=f1()>
<img border="0" src="URL OF SMILIE2" onclick=f2()>


and so on for as many smilies as you have, increasing the f1 to f2 to f3 etc....

then afterwards add this code in the same place as before;


<script language=Javascript>

function f1() {
document.postmodify.message.value= document.postmodify.message.value + ":word1:"
}
function f2() {
document.postmodify.message.value= document.postmodify.message.value + ":word2:"
}
</script>



again for as many smilies as you have and once again, increase the f1 to f2 to f3 etc....

Now when you've done that, go into censored words in your admin section an repeat the instruction give above for basic clickable smilies.

Don't forget to use the correct word for the correct smilie.


Check at the end of the FAQ. I'll be adding a way to make your smilies only appear when you post.
User IP Logged

User Image
Jason
Conforums founding member
Executive Member


member is offline

Avatar

Hello!


PM

Gender: Male
Posts: 5804
xx Re: Smilies
« Reply #1 on: May 26th, 2003, 7:56pm »

Clickable smilies

To make your smilies only appear when you:


  • Create a new thread.
  • Reply to an existing thread.
  • Modify a post
  • Send a IM (PM).
  • Reply to a IM.


Use the code below.


<script language=Javascript>
<!--
if (location.href.indexOf("=post") != -1 || location.href.indexOf("=reply") != -1 || location.href.indexOf("=modify") != -1 || location.href.indexOf("=imreply") != -1 || location.href.indexOf("=imsend") != -1 ){document.write('<center><img border="0" src="URL OF SMILIE 1" onclick=f1()><img border="0" src="URL OF SMILIE 2" onclick=f2()>< ....more smilie code></center>');}
// End -->
</SCRIPT>


It is important that there are no space in between the opening (<) and closing tags (>) in the code that is highlighted in red or the code won't work.

It must also be in one continuous line of code.

After that, put this code in as well.

<script language=Javascript>

function f1() {
document.postmodify.message.value= document.postmodify.message.value + ":word1:"
}
function f2() {
document.postmodify.message.value= document.postmodify.message.value + ":word2:"
}
</script>



and don't forget to do the censored words as described in the previous section.
« Last Edit: Nov 8th, 2008, 03:43am by Dave » User IP Logged

User Image
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls