Topic: html tags in the opening message but not in the replys

i am working on this rss bot that posts 1 rss item as a new thread so user can discuss news fetched from a feed.
Some rss come with html formating. Wich is actualy cool.

I was wondering.. how and where in the code does the html check takes place?
i dont want to allow html on the user posts but i want to keep the html from the feed on the opening message.

can i simply inser the feed text with html using an external script and disallow html in that same forum?

Re: html tags in the opening message but not in the replys

I'm not sure I understand. PunBB does not "allow" HTML in any posts.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by pedrotuga 2006-08-21 16:29)

Re: html tags in the opening message but not in the replys

<b>blab</b>

EDIT: ok... al the html tags' special chars are converted to entites...

i guess if i use an external script writen by me i can insert html code itself ( not entities ) so the content can display with formating.

Re: html tags in the opening message but not in the replys

You could always put a check in viewtopic.php around line 300 like this:

if($post_count == 1 && $fid == 1)
        $cur_post['message'] = nl2br($cur_post['message']);
    else
        $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);

Somethign along those lines eh...

Re: html tags in the opening message but not in the replys

mmm...
i the text goes directly to the database... al the parsing is done while showing the topic.

i think i will bypass the parsing if the user=.... and postcount=1