It looks like the errors are because you need the require_once ('./global.php') file above everything else basically... in your script directly under the "error reporting" line near the top. Also if this php file is in the same directory as your forum root (where global.php is located) you don't need the ./ just use require_once ('global.php');
Quote:
I'm also a little confused on what to do with:
Then you can use this line (change the $rawthread and $parsedthread variables to your needs) to get the parsed output (BB Code converted to HTML)
|
What variable stores the text you need to have parsed? I'm calling it $rawthread in my code... and the output of the BB Code Parsing function, the "translated" text if you will, I'm calling $parsedthread. You can use any names you want but whatever you call $parsedthread is going to be the data you want to output to the browser.
--------------- Added [DATE]1292812596[/DATE] at [TIME]1292812596[/TIME] ---------------
Looking over your code you seem to be missing any data to parse... You don't parse a template usually, a template should have real HTML not BB Code. Usually text like posts and signatures would be the only things requiring parsing.