Announcement

Collapse
No announcement yet.

using vB functions from outside of forum director

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mike Sullivan
    replied
    You have to chdir() into the vB directory. Then global.php should require() everything correctly.

    Leave a comment:


  • JonnyQuest
    started a topic using vB functions from outside of forum director

    using vB functions from outside of forum director

    I'm trying to create a script which work one level above my forums directory. The script works fine from within the forums directory, however, it doesn't work one level up. I've changed all the includes in my script (only global.php) to the full path, but I'm still getting nothing but a blank html page. No errors.
    I noticed that the global.php script includes admin/functions.php with only a relative path (./admin/functions.php). Any idea why I'm having these problems? What exactly will it take to use some of the vB functions (mainly the templates) outside the main vB dir?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X