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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Help with formatting smilies & badwords
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eggyfarts
Junior Member

New Zealand
200 Posts

Posted - 22 November 2002 :  19:52:20  Show Profile
Hi,

I am using and trying to modify a free asp shoutbax application that I found on the internet with my forum. You can see it working on my site (URL in sig). Anyway what I want to do is format the messages using some of the forum code, mainly the smilies & the badwords filter. I was guessing this should be pretty easy since the page where they are displayed already has inc_functions.asp and inc_top.asp included in it. The problem is I have no idea as to how I go about this. You can download the 3 files you need to display it HERE if you want. The page that displays the shouts is yell_display.asp and the backend page that adds the shouts to the DB is yell.asp

TIA in advance for any help as to how to do this. Maybe when I have got this going I will try other formatting such as colours and bold etc.

Cheers,
WeeVaa.

eggyfarts
Junior Member

New Zealand
200 Posts

Posted - 22 November 2002 :  19:59:17  Show Profile
Maybe I better explain a bit better, I was a bit vauge above. What I want to be able to do is have users just enter a shout with the standar smilie in it , [ :)] and have it displayed as a smilie when it's show on the front page. I would also like any swear words (bad word filter) to be taken out and replace with stars, just like what happen when you make a post in the forum. If you still dont understand me just ask, sometimes I have trouble conveying my ideas on paper (or high resolution CRT/LCD )

Cheers,
WeeVaa.

Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 23 November 2002 :  07:40:52  Show Profile
hi~ eggyfarts,
i take a look at the code of yell mod?!
maybe you can try integrating this small stuff to Snitz,
i think it'll be a useful and small cute "mod"..

and if you did'nt want to change too much to the yell code,
the easiest way to add smile/forum code feature, maybe you can try this...
change this..
rsYell("YellMessage")
to this.....
Smile(chkString(rsYell("YellMessage"),"message"))

<edit>if you just want smiles & badword filter.. maybe just like this is ok.... </edit>
Smile(chkBadWords(rsYell("YellMessage")))

that's all... the original code use some strange function to deal with
the message string... but if you just want to show smiles, some basic forum code and badwords filter.. i think it should be nothing influent to this....

Edited by - DoraMoon on 23 November 2002 07:51:59
Go to Top of Page

eggyfarts
Junior Member

New Zealand
200 Posts

Posted - 23 November 2002 :  15:35:30  Show Profile
Hmm, can't seem to get it working. Could you please post your modified version of the yell_displa.asp for me to look at if you dont mind

Cheers,
WeeVaa.

Go to Top of Page

eggyfarts
Junior Member

New Zealand
200 Posts

Posted - 23 November 2002 :  15:40:01  Show Profile
Never mind, I got it to work with this: Smile(chkBadWords(rsYell("YellMessage"))) . Now how would I got about being able to format different colours using [ red] text[/ red]?

Cheers,
WeeVaa.

Go to Top of Page

David K
Junior Member

494 Posts

Posted - 23 November 2002 :  18:50:25  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
the chkstring should do the trick, if it doesn't work, it's probably a conflict
Go to Top of Page

eggyfarts
Junior Member

New Zealand
200 Posts

Posted - 23 November 2002 :  19:47:29  Show Profile
I am using this:

Smile(chkBadWords(chkString(rsYell("YellMessage")),"display"))

It filters out bad words, and adds smilies but you cant add forum formatting for colours. Do you thik it would be easier to just add a drop down box for users to select the color of thier message?

Cheers,
WeeVaa.


Edited by - eggyfarts on 23 November 2002 19:48:24
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 23 November 2002 :  20:15:37  Show Profile  Visit MaD2ko0l's Homepage
ya carnt u just add the inc_post_buttons.asp somewhere???

© 1999-2010 MaD2ko0l
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 24 November 2002 :  00:45:15  Show Profile
hi~ eggyfarts,
if you use chkString function/type like this..
chkString(YourYellMessage,"message")
it already can do the most of forum code transform work.
(of course, you need to have Forum Code turn on first...)

not sure why it wo'nt work for you......
maybe try adding this above that line..
strAllowForumCode = "1"
Smile(chkString(rsYell("YellMessage"),"message"))


and if you want to add the color pull-down menu.. it seem need a lots code added to the yell mod. but in basically, just as MaD2ko0l mentioned, copy some code from inc_post_buttons.asp. i think it maybe no necessary to do this if the yell edit textarea just ONE line no more 20 characters...
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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07