Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Frequently Asked Questions
 FAQ Addition Requests
 New Icons

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
demon9k Posted - 11 July 2001 : 12:49:27
Is it possible to add new smilies to snitz forums? If so is it easy?

Paul Fletcher<
8   L A T E S T    R E P L I E S    (Newest First)
OneWayMule Posted - 22 December 2002 : 16:29:17
You're welcome <
Ross Posted - 22 December 2002 : 16:23:49
Tnx =)<
OneWayMule Posted - 22 December 2002 : 15:07:27
Just do the following:

inc_iconfiles.asp
find this code (approx. line 152):
Const strIconYahoo = "icon_yahoo.gif|16|15"

add this code right after it:
Const strIconYourIcon = "icon.gif|ww|hh"

icon.gif: file name of the image
ww: image width
hh: image height

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



inc_func_common.asp
find this code (approx. line 166)
function Smile(fString)

add this code after it:
	fString = replace(fString, "[YourCode]", getCurrentIcon(strIconYourIcon,"","align=""middle"""))


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


(I've taken the example from the posts above) <
Ross Posted - 22 December 2002 : 14:25:53
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)<
RDoGG™ Posted - 01 September 2001 : 08:32:35
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™<
fpgal Posted - 01 September 2001 : 01:19:04

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!


<
demon9k Posted - 13 July 2001 : 11:12:39
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<
Ez4arab Posted - 12 July 2001 : 06:41:33
there is MOD for smile you can hit this link
click here

enjoy


<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07