New Icons

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/12782?pagenum=1
06 November 2025, 06:40

Topic


demon9k
New Icons
11 July 2001, 12:49


Is it possible to add new smilies to snitz forums? If so is it easy?
Paul Fletcher<

 

Replies ...


Ez4arab
12 July 2001, 06:41


there is MOD for smile you can hit this link
click here
enjoy


<
demon9k
13 July 2001, 11:12


Thanks for that it works fine, but can I make it so that it will come up with a little shortcut thing instead of [img] image path [/img']. The ' is there so no image would try and come up. So the short cut would be like :) but with in [] like the other ones. I have found a huge list of the smilies in the inc_functions.asp file but I was not sure if I could add them there without the whole thing just falling to pieces.
Can you help?
Paul<
fpgal
01 September 2001, 01:19



That's what I did, demon9k and it's working just fine.

There are two places that reference smilie files in inc_functions.asp. Just copy and paste the existing lines, replacing the image links with the names of the new smilie files and the [] shortcut with what you want to use (don't forget that if you use letters in the shortcut, you need separate lines for the uppercase and lowercase versions). Here's the two I inserted, (I marked the changed parts in red):


fString= replace(fString, "<img src=icon_smile_rotflmao.gif border=0 align=middle>", "[r]", 1, -1, 1)

fString = replace(fString, "[r]", "<img src=icon_smile_rotflmao.gif border=0 align=middle>")

Oh, and don't forget to upload the new smilie files! smile

<
RDoGG™
01 September 2001, 08:32


quote:
(don't forget that if you use letters in the shortcut, you need separate lines for the uppercase and lowercase versions)



fString = replace(fString, "[r]", "<img src=icon_smile_rotflmao.gif border=0 align=middle>")


you'd also need


fString = replace(fString, "[R]", "<img src=icon_smile_rotflmao.gif border=0 align=middle>")


RDoGG™<
Ross
22 December 2002, 14:25


Sorry that I dig such an old topic, but I wonder how does the same thing works in version 3.4? (Replacing strings for pictures)<
OneWayMule
22 December 2002, 15:07


Just do the following:

inc_iconfiles.asp find this code (approx. line 152):
Code:
Const strIconYahoo = "icon_yahoo.gif|16|15"
add this code right after it:
Code:
Const strIconYourIcon = "icon.gif|ww|hh"
icon.gif: file name of the image
ww: image width
hh: image height

example:
Code:
Const strIconRotflmao = "icon_rotflmao.gif|15|15"


inc_func_common.asp find this code (approx. line 166)
Code:
function Smile(fString)
add this code after it:
Code:
	fString = replace(fString, "[YourCode]", getCurrentIcon(strIconYourIcon,"","align=""middle"""))

example:
Code:
	fString = replace(fString, "[r]", getCurrentIcon(strIconRotflmao,"","align=""middle"""))

(I've taken the example from the posts above) <
Ross
22 December 2002, 16:23


Tnx =)<
OneWayMule
22 December 2002, 16:29


You're welcome smile<
© 2000-2021 Snitz™ Communications