Adan0s
06-01-2010, 06:58 PM
Hey there,
I fetched some threads via a SQL-Query and registered it so that the Template can access it. Works like a charm.
Of course the posttext is only shown unparsed, so i used:
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false);
}
$thread['newstext'] = $bbcode_parser->do_parse($thread['newstext'], true, true, true, true, true, true);
Works, but attached Images are shown as "Attachment $ID", e.g. "Attachment 612".
I'm currently using some RegEx-Magic to get the images parsed, but that's nothing I want to do forever.
So is there any possibility to parse the posttext exactly like it looks in the postbit?
I fetched some threads via a SQL-Query and registered it so that the Template can access it. Works like a charm.
Of course the posttext is only shown unparsed, so i used:
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false);
}
$thread['newstext'] = $bbcode_parser->do_parse($thread['newstext'], true, true, true, true, true, true);
Works, but attached Images are shown as "Attachment $ID", e.g. "Attachment 612".
I'm currently using some RegEx-Magic to get the images parsed, but that's nothing I want to do forever.
So is there any possibility to parse the posttext exactly like it looks in the postbit?