The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Ok, I've got a script seperate from vBulletin, and I want to be able to have certain data parsed for vB code as vB's messages are. I have a require() command pointing to the admin/functions.php file, so as to make the two functions (that I know of) available to me...
...I figured I could simply pass my text like this: $text = bbcodeparse($text); ...but that won't work. Any idea what's up? |
#2
|
||||
|
||||
I hate to bump, but I have no choice.
|
#3
|
|||
|
|||
|
#4
|
||||
|
||||
Hmmm, something's wrong. I started getting errors, so I tried to use chdir() to fix them. Here's what I'm using now. I have these two lines:
Code:
chdir("/usr/home/web/path/to/forums"); require("/usr/home/web/path/to/forums/global.php"); Code:
$comments = bbcodeparse2($comments,"1","1","1","1"); Fatal error: Call to a member function on a non-object in /usr/home/web/path/to/forums/admin/functions.php on line 75 Any idea what's wrong? Thanks for your help either way! |
#5
|
||||
|
||||
I hate having to bump things, but I'm totally stuck on this.
|
#6
|
||||
|
||||
I don't have the vB source handy so I can't check myself but it sounds like the $DB_site class is being used in the bbcodeparse2 function. You need to change all calls to these to reference the mysql_query/mysql_fetch_array functions or remove them altogethor.
|
#7
|
||||
|
||||
Thanks -- I copied over a few functions and changed their name, and it works great. Really helps to tie the rest of the site into the forums. Thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|