Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 easy way to add more smilies in forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HarlekinWF
New Member

Germany
77 Posts

Posted - 29 April 2002 :  07:25:19  Show Profile  Send HarlekinWF an ICQ Message
i have found a easy way to make more smilies in board.
need 5 steps
1 step:
choose smilies which u want to add...
http://mysmilies.com
http://mysmilies.de
or else..
save smilies in folder u wish, i used
smilies/cool
smilies/aliens
...


2 step:
go in line 56 search this lines:
<% if lcase(strIcons) = "1" then %>
<a href="JavaScript:openWindow2('pop_icon_legend.asp')"><img src="icon_editor_smilie..gif" width="22" height="22" alt="Insert Smilie" border="0"></a>
<% end if %>

now add following lines in:
<a href="JavaScript:openWindow3('pop_icon_legend_affraid.asp')"> <img src="smilies/angst/eekyellow.gif" alt="Insert affraid Smilie" border="0" align="absmiddle"></a>
<a href="JavaScript:openWindow3('pop_icon_legend_aliens.asp')"> <img src="smilies/aliens/alien1.gif" alt="Insert alien Smilie" border="0" align="absmiddle"></a>
<a href="JavaScript:openWindow3('pop_icon_legend_weapons.asp')"> <img src="smilies/weapons/weapon34.gif" alt="Insert weapon Smilie" border="0" align="absmiddle"></a>

so it looks like:
<% if lcase(strIcons) = "1" then %>
<a href="JavaScript:openWindow2('pop_icon_legend.asp')"><img src="icon_editor_smilie.gif" width="22" height="22" alt="Insert Smilie" border="0"></a>
<a href="JavaScript:openWindow3('pop_icon_legend_cool.asp')"><img src="icon_smile_cool.gif" alt="Insert cool Smilie" border="0" align="absmiddle"></a>
<a href="JavaScript:openWindow3('pop_icon_legend_affraid.asp')"> <img src="smilies/angst/eekyellow.gif" alt="Insert affraid Smilie" border="0" align="absmiddle"></a>
<a href="JavaScript:openWindow3('pop_icon_legend_aliens.asp')"> <img src="smilies/aliens/alien1.gif" alt="Insert alien Smilie" border="0" align="absmiddle"></a>
<a href="JavaScript:openWindow3('pop_icon_legend_weapons.asp')"> <img src="smilies/weapons/weapon34.gif" alt="Insert weapon Smilie" border="0" align="absmiddle"></a>
<% end if %>

description:
must add in "if lcase(strIcons).... end if" so ist turned off if u want no smilies.
"openWindow3('pop_icon_legend_cool.asp')" means that the site will open when u click on image which definied in "<img src="icon_smile_cool.gif" ..."

step 3:
make sites like pop_icon_legend_cool.asp
take the original page pop_icon_legend.asp and edit it.
save it in name u will, like pop_icon_legend_cool.asp
look how many icons u want to add. change table long.
copy first table line and add it in all others...
now go in source and edit the lines
u must edit 4 point finally a line could look so:
<tr>
<td>
<div align="center"><a href="Javascript:insertsmilie('[cool2]');"><img alt border="0" hspace="10" src="smilies/cool/cool2.gif"></a></div>
</td>
<td bgcolor="<% =strForumCellColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">cool
2</font></td>
<td bgcolor="<% =strForumCellColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">[cool2]</font></td>
</tr>

description:
"..:insertsmilie('[cool2]');.." is the name how u want to define the smilie. (enter [cool2] in forum and the smilies in in after posting)
this is also when the popup-window with your smilies open and click on a image the code will add in forum.
<img alt border="0" hspace="10" src="smilies/cool/cool2.gif">
is the preview of the image.
"...DefaultFontSize %>">cool 2</font></td>..." is the name u want give the smilie - use like u will
..." DefaultFontSize %>">[cool2]</font></td.." shows user which code u give the smilie, must the same u used in "..:insertsmilie('[cool2]');.."

step 4:
open inc_functions.asp
search (line 344?)
fString= replace(fString, "<img src=icon_smile_kisses..gif border=0 align=middle>", "[:X.]", 1, -1, 1)
and add lower
fString= replace(fString, "<img src=smilies/cool/cool2.gif border=0 align=middle>", "[cool2]", 1, -1, 1)
edit the src where smilie is and code u wanted to use.

step 5:
also in inc_functions.asp
search
fString = replace(fString, "[:X.]", "<img src=icon_smile_kisses..gif border=0 align=middle>")
and add lower
fString = replace(fString, "[cool2]", "<img src=smilies/cool/cool2.gif border=0 align=middle>")
take attention step 4 is sorce then code, step 5 code, then source..

thats all

i had to add a "." in icon_editor_smilie..gif cause otherwise a smilie is shown. think 1 "." away.
also in "[:X.]"

it works at my forum
if snitz-froum want to have my used codes for downloading to others.. tell me


cu
Harlekin

http://forum.killers-in-action.com

mIRC
server : QuakeNet - Random german server
channel: #killers-in-action


Edited by - HarlekinWF on 29 April 2002 07:30:43

Edited by - HarlekinWF on 29 April 2002 07:32:40

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 29 April 2002 :  07:44:02  Show Profile  Visit Kat's Homepage
or just install a smilies mod from here


KatsKorner

Installation Help | Snitz Mods | Forum Hosting
Go to Top of Page

HarlekinWF
New Member

Germany
77 Posts

Posted - 29 April 2002 :  08:00:07  Show Profile  Send HarlekinWF an ICQ Message
lol, yes..
but that does allways crash my forum...

of course i will give it again a chance...
but first backup my forum...



cu
Harlekin

http://forum.killers-in-action.com

mIRC
server : QuakeNet - Random german server
channel: #killers-in-action
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 29 April 2002 :  08:46:04  Show Profile  Visit Kat's Homepage


Wonder why it crashes your site

KatsKorner

Installation Help | Snitz Mods | Forum Hosting
Go to Top of Page

foo
New Member

52 Posts

Posted - 24 June 2002 :  19:31:18  Show Profile
Wow, that's the easy way?

There's also the more_smilies mod

demo and download at http://ozroot.com/forums





Tim

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07