![]() |
Trying to use parse_bbcode2
Hi, I'm trying to parse a bit of code using the bbcode2 function. Whenever I run my code, I'm getting this error....
Database error in vBulletin : Invalid SQL: SELECT bbcodetag, bbcodereplacement, twoparams FROM TABLE_PREFIXbbcode mysql error: Table 'crucib1.TABLE_PREFIXbbcode' doesn't exist mysql error number: 1146 Date: Sunday 19th of December 2004 11:49:31 AM Script: http://www.bane-online.comSCRIPTPATH Referer: REFERRER IP Address: IPADDRESS So my question is, why is table_prefix showing up instead of my real table prefix? Here is my code that's trying to do all of this.... PHP Code:
|
You need to define the constant TABLE_PREFIX, which (I believe) is in config.php.
|
Quote:
|
Quote:
|
hmmm, ok... so what do I need to do to get this working then? Thanks for the help!
|
define('TABLE_PREFIX', $tableprefix);
|
Ok, that fixed it so that it's not erroring out anymore.... but now it's not changing all the bbcode to html. It's still outputting tags, like [ b] and [ /b] instead of < b> and < /b>. You can see what it's doing at http://www.bane-online.com/new. Here's the latest version of the code...
PHP Code:
Thanks for the help! |
All times are GMT. The time now is 03:49 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|