The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
|||
|
|||
You need to define the constant TABLE_PREFIX, which (I believe) is in config.php.
|
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
hmmm, ok... so what do I need to do to get this working then? Thanks for the help!
|
#6
|
||||
|
||||
define('TABLE_PREFIX', $tableprefix);
|
#7
|
|||
|
|||
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! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|