The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Including a PHP file in a widget
Okay I've been playing with this for a few of my mods to update them from 3.X to 4.X and I'm having issues with the CMS. I'm trying to include PHP files (Local to the forum) in the widget. I've been doing some searching and some copy/pasting.
I'm getting tired, so a break from the PC may be what I need, but I figured I would post and see if some wonderful person would stop by and help me. Here's what I've tried. I've tried flat out includes: http://www.vbulletin.com/forum/showt...-php-in-Widget Code:
// UNTESTED ob_start(); include("path/to/your.php"); echo "<br />\n"; $output .= ob_get_contents(); ob_end_clean(); Quote:
https://vborg.vbsupport.ru/showthread.php?t=242454 :P (Thanks for approving it Lynne) and this article: https://vborg.vbsupport.ru/showthread.php?t=236245 I'm getting the same error. Quote:
I'm going to take a break and play some Halo Reach and get some frustration out. If anyone would be so kind as to drop me a tidbit to work from; that would be great. |
#2
|
|||
|
|||
What's happening in your external php file?
Paste youre code here |
#3
|
||||
|
||||
It's far too complicated yo examine it that way. I was thinking about isolating the php file last night.
I'm going to try a few things this am. I'll be back shortly. |
#4
|
|||
|
|||
I think I figured this out. It's a bug in vBulletin. Edit "global.php" and change the following:
require('./includes/class_bootstrap.php'); Change that to: require_once('./includes/class_bootstrap.php'); I was having the same exact problem. I noticed that the problem disappeared after I disabled one of my own customizations (mine was coded correctly). So I tracked it down further to the problem above. |
#5
|
||||
|
||||
Thank you Frank.
I'll give this a shot when I get back into my vB mods soon-ish. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|