HarlekinWF
New Member
Germany
77 Posts |
Posted - 29 April 2002 : 07:25:19
|
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 |
|