Topic: Application of Parser.php
I wanted to pull a particular forum from punBB to the frontpage of my website, and i have done so, but I cannot get it to parse correctly. I've tried to run it through parser.php in the following way, no errors are reported but it just didn't operate correctly. Whats the trick to get parser.php to work?
require "config.php";
require "include/parser.php";
require "include/functions.php";
$res = mysql_query("SELECT topics.subject,topics.poster,topics.posted,posts.message,posts.hide_smilies FROM topics JOIN posts ON topics.id=posts.topic_id WHERE topics.posted=posts.posted");
while ($arr = mysql_fetch_assoc($res)) {
$arr['message'] = parse_message($arr['message'], $arr['hide_smilies']);
echo "<tr class=\"bar\"><td>".$arr['subject']."</td><td align=\"right\">".$arr['poster']." at ".$arr['posted']."</td></tr>";
echo "<tr><td colspan='2'>".$arr['message']."</td></tr>";
}
Edit: Turns out, only my [url]tags didn't work. running do_clickable() and do_bbcode() fixed me up though!