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

 All Forums
 Frequently Asked Questions
 FAQ Addition Requests
 New Icons
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

demon9k
Starting Member

3 Posts

Posted - 11 July 2001 :  12:49:27  Show Profile  Reply with Quote
Is it possible to add new smilies to snitz forums? If so is it easy?

Paul Fletcher<

Ez4arab
Junior Member

479 Posts

Posted - 12 July 2001 :  06:41:33  Show Profile  Visit Ez4arab's Homepage  Reply with Quote
there is MOD for smile you can hit this link
click here

enjoy


<
Go to Top of Page

demon9k
Starting Member

3 Posts

Posted - 13 July 2001 :  11:12:39  Show Profile  Reply with Quote
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<
Go to Top of Page

fpgal
New Member

93 Posts

Posted - 01 September 2001 :  01:19:04  Show Profile  Reply with Quote

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!


<
Go to Top of Page

RDoGG™
Junior Member

USA
329 Posts

Posted - 01 September 2001 :  08:32:35  Show Profile  Visit RDoGG™'s Homepage  Send RDoGG™ an AOL message  Send RDoGG™ a Yahoo! Message  Reply with Quote
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™<
Go to Top of Page

Ross
Starting Member

4 Posts

Posted - 22 December 2002 :  14:25:53  Show Profile  Reply with Quote
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)<
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 22 December 2002 :  15:07:27  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message  Reply with Quote
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) <

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Ross
Starting Member

4 Posts

Posted - 22 December 2002 :  16:23:49  Show Profile  Reply with Quote
Tnx =)<
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 22 December 2002 :  16:29:17  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message  Reply with Quote
You're welcome <

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.07