Topic: How to parse bbcodes outside forum?
Well, I read this from Wiki (http://punbb.informer.com/wiki/punbb13/integration) and wonder how to parse bbcodes ?
Someone would help me ?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → How to parse bbcodes outside forum?
Well, I read this from Wiki (http://punbb.informer.com/wiki/punbb13/integration) and wonder how to parse bbcodes ?
Someone would help me ?
There is the "parse_message" function in the "<FORUM_ROOT>/include/parser.php" file (line 790).
Would you please give me an exactly example code ?
I've found it but i dont know how to use
<?php
define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';
require FORUM_ROOT.'include/parser.php';
$s = 'test [b]test[/b]';
echo $s, parse_message($s, false);
ooh
thank you so much !
i've been crazy with this stuff
You're welcome
by the way, how can i take 10 newest post in a defined forum id ?
i tried 'where' => 'f.id = 2',
but error appears
Seems like it should be like this:
'where' => 't.forum_id = 2',
oh, once again, thanks so much
:kiss:
PunBB Forums → PunBB 1.3 troubleshooting → How to parse bbcodes outside forum?
Powered by PunBB, supported by Informer Technologies, Inc.