View Full Version : Making use of the bbcodeparse() function externally
TWTCommish
09 Jul 2001, 16:50
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?
TWTCommish
12 Jul 2001, 05:45
I hate to bump, but I have no choice. :(
Check my reply here
http://www.vbulletin.com/forum/showthread.php?s=&postid=139629#post139629
TWTCommish
15 Jul 2001, 19:13
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And then, I do this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I get this error:
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! :)
TWTCommish
23 Jul 2001, 15:09
I hate having to bump things, but I'm totally stuck on this.
JamesUS
23 Jul 2001, 15:42
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.
TWTCommish
23 Jul 2001, 19:35
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! :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.