love ya elbekko!! Thanks!
1 2006-04-12 00:15
Re: Noob Question - Running the BBCode Parser (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2006-04-11 12:36
Re: Noob Question - Running the BBCode Parser (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ok...I read the little blurb in the docs about integration. Including the common.php file would be a lot easier saying that I may need access to other functions and variables later.
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
But when I tried to include it, none of the functions registered.
Fatal error: Call to undefined function: parse_message() in /home/gamman/public_html/2142/includes/functions.php on line 24
parse_message() is the first function that I call on the page from the forum.
includes/functions.php is my functions file for my site. I create the function to show threads there.
3 2006-04-11 02:27
Re: Noob Question - Running the BBCode Parser (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Yep...that did the trick.
One thing though. My BBCode urls are not being parsed. (They stay [url ]http://www.blah.com[/url ])
EDIT: Found it - do_clickable(); - do_bbcode();
4 2006-04-10 20:21
Re: Noob Question - Running the BBCode Parser (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Thanks for the fast reply, but:
Fatal error: Call to undefined function: pun_htmlspecialchars() in /home/gamman/public_html/2142/forum/include/parser.php on line 383
5 2006-04-10 20:04
Topic: Noob Question - Running the BBCode Parser (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ok - I am showing the five most recent posts in my news forum on my frontpage.
I am able to get all of the news items and the related data, but the message is still original (hasn't been parsed out of BBCode).
So my question is - how can I parse the messages with the BBCode parser before they are displayed.
If '$message' is the message and my forum is installed in the '/forum' directory, what would be the code?
Thanks all!!!