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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 How to add smilies
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ssj5Vegetto
Starting Member

16 Posts

Posted - 01 June 2001 :  16:38:07  Show Profile  Visit ssj5Vegetto's Homepage
How do I add smilies to my forum? I tried looking at the code in pop_icon_legend.asp but I guess I did something wrong.

an example of what I did is with this code:

<tr>
<td bgcolor="<% =strForumCellColor %>"><a href="Javascript:insertsmilie('');"><img alt border="0" hspace="10" src="icon_smile_approve.gif"></a></td>
<td bgcolor="<% =strForumCellColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">approve</font></td>
<td bgcolor="<% =strForumCellColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"></font></td>
</tr>


I changed it to:


<tr>
<td bgcolor="<% =strForumCellColor %>"><a href="Javascript:insertsmilie('[:smirk:]');"><img alt border="0" hspace="10" src="smirk.gif"></a></td>
<td bgcolor="<% =strForumCellColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">smirk</font></td>
<td bgcolor="<% =strForumCellColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">[:smirk:]</font></td>
</tr>


Did I do something wrong or do I have to know asp to actaully add in the smilies?

GBurch
Junior Member

United Kingdom
107 Posts

Posted - 01 June 2001 :  17:29:57  Show Profile
The file you need to edit is inc_functions.asp.

Do a search for
			fString= replace(fString, "<img src=icon_smile_kisses.gif border=0 align=middle>", "", 1, -1, 1)
end if

and replace it with
			fString= replace(fString, "<img src=icon_smile_kisses.gif border=0 align=middle>", "", 1, -1, 1)
fString= replace(fString, "<img src=smirk.gif border=0 align=middle>", "[:smirk:]", 1, -1, 1)
end if

Then, you need to scroll down a bit further until you find
	fString = replace(fString, "", "<img src=icon_smile_kisses.gif border=0 align=middle>")
Smile = fString
end function

and replace it with
	fString = replace(fString, "", "<img src=icon_smile_kisses.gif border=0 align=middle>")
fString = replace(fString, "[:smirk:]", "<img src=smirk.gif border=0 align=middle>")
Smile = fString
end function

This will make the forum replace the code with the icon (should someone type it in manually). It is up to you to add it to the pop_icon_legend.asp page (but it sounds like you've already done that), and to add it to the FAQ if you want to.

Hope this helps


http://www.captgb.dabsol.co.uk
http://www.slipstreamservices.com
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.59 seconds. Powered By: Snitz Forums 2000 Version 3.4.07