vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   global_start Hook: Include External PHP File (https://vborg.vbsupport.ru/showthread.php?t=123048)

epic1 08-04-2006 06:34 PM

global_start Hook: Include External PHP File
 
In the middle of a vBulletin 3.08 -> vBulletin 3.6 upgrade.

I made this plugin for global_start:

Code:

ob_start();
include('C:/Inetpub/vhosts/fullthrottlev6.com/httpdocs/phpadsnew/banners/banners.php');
$BannerCode = ob_get_contents();
ob_end_clean();

And I call $BannerCode in my header. Nothing is printed. The plugin is active. Any pointers?
That's the exact path on my server, still no luck!

pyro.699 08-04-2006 07:15 PM

If you are making this a global include file. y have the ob? just have
PHP Code:

require_once('C:/Inetpub/vhosts/fullthrottlev6.com/httpdocs/phpadsnew/banners/banners.php'); 

use require_once, incase something gets ran twice :)

epic1 08-04-2006 07:23 PM

Just putting that in the plugin, still nothing is happening.

I'm assuming I'm keeping this in global_start.

I'm honestly shocked no one has any solutions to this problem. I hate bumping my own threads but this is the last hold up I have to put my forum live. :(


All times are GMT. The time now is 03:41 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.02082 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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