vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Making use of the bbcodeparse() function externally (https://vborg.vbsupport.ru/showthread.php?t=22353)

TWTCommish 07-09-2001 03:50 PM

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 07-12-2001 04:45 AM

I hate to bump, but I have no choice. :(

Redmak 07-15-2001 05:24 PM

Check my reply here

http://www.vbulletin.com/forum/showt...629#post139629

TWTCommish 07-15-2001 06:13 PM

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");

And then, I do this:

Code:

$comments = bbcodeparse2($comments,"1","1","1","1");
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 07-23-2001 02:09 PM

I hate having to bump things, but I'm totally stuck on this.

JamesUS 07-23-2001 02:42 PM

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 07-23-2001 06:35 PM

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! :)


All times are GMT. The time now is 07:11 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
  • Page Generation 0.01260 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete