Author |
Topic |
|
eggyfarts
Junior Member
New Zealand
200 Posts |
Posted - 22 November 2002 : 19:52:20
|
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
|
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.
|
|
|
DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 23 November 2002 : 07:40:52
|
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 |
|
|
eggyfarts
Junior Member
New Zealand
200 Posts |
Posted - 23 November 2002 : 15:35:30
|
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.
|
|
|
eggyfarts
Junior Member
New Zealand
200 Posts |
Posted - 23 November 2002 : 15:40:01
|
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.
|
|
|
David K
Junior Member
494 Posts |
Posted - 23 November 2002 : 18:50:25
|
the chkstring should do the trick, if it doesn't work, it's probably a conflict |
|
|
eggyfarts
Junior Member
New Zealand
200 Posts |
Posted - 23 November 2002 : 19:47:29
|
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 |
|
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 23 November 2002 : 20:15:37
|
ya carnt u just add the inc_post_buttons.asp somewhere??? |
© 1999-2010 MaD2ko0l |
|
|
DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 24 November 2002 : 00:45:15
|
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... |
|
|
|
Topic |
|