vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Calling BB CODE Functions outside VB (https://vborg.vbsupport.ru/showthread.php?t=98000)

Man1c M0g 10-09-2005 08:49 PM

Calling BB CODE Functions outside VB
 
My site is pretty extensively integrated with Vbulletin, which allows me to add bits to my tutorials such as 'last 5 comments' sections, etc. These are simply pulled from the pagetext row of the post table You can see an example here - http://biorust.com/tutorials/detail/7/en/ (ensure you scroll down around 1/2 way down the page).

My problem is that I can't seem to successfully call a function outside the VB engine that parses the BB code in the text of the comments. I've tried following this thread, but to no avail. Anyone else got any ideas?

Kirk Y 10-09-2005 09:21 PM

Did you try including global.php, in addition to the "this thread" instructions.

Man1c M0g 10-09-2005 09:35 PM

Quote:

Originally Posted by acidburn0520
Did you try including global.php, in addition to the "this thread" instructions.

I did, yeah. All my pages include global.php - its how I get the membership bar down the right working if you are logged in...

Kirk Y 10-11-2005 11:51 PM

Perhaps try:

PHP Code:

chdir('/home/site/public_html/forums/'); 

Replacing the home/site/etc... with your applicable values of course.

Man1c M0g 10-12-2005 05:49 AM

Quote:

Originally Posted by acidburn0520
Perhaps try:

PHP Code:

chdir('/home/site/public_html/forums/'); 

Replacing the home/site/etc... with your applicable values of course.

Thanks, but I eventually sorted this problem by myself. It was actually to do with the way that VB3.5 references the database settings. When called externally, it wasn't getting the values it needed.

All sorted now though. ;)


All times are GMT. The time now is 05:54 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.01255 seconds
  • Memory Usage 1,720KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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