1

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 ?

Re: How to parse bbcodes outside forum?

There is the "parse_message" function in the "<FORUM_ROOT>/include/parser.php" file (line 790).

3

Re: How to parse bbcodes outside forum?

Would you please give me an exactly example code ?
I've found it but i dont know how to use

Re: How to parse bbcodes outside forum?

<?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);

5

Re: How to parse bbcodes outside forum?

ooh
thank you so much !
i've been crazy with this stuff

Re: How to parse bbcodes outside forum?

You're welcome smile

7

Re: How to parse bbcodes outside forum?

by the way, how can i take 10 newest post in a defined forum id ?

i tried 'where' => 'f.id = 2',

but error appears

Re: How to parse bbcodes outside forum?

Seems like it should be like this:

'where' => 't.forum_id = 2',

9

Re: How to parse bbcodes outside forum?

oh, once again, thanks so much
:kiss: