The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Adding include files with hooks
Hi,
I'm trying to wrap the vbulletin with my own layout files. Right now I have a plugin at Global_start that says: Code:
ob_start(); include("/www/path/beginPage.php"); $header_inc = ob_get_contents(); ob_end_clean(); ob_start(); include("/www/path/beginBody.php"); $header_inc2 = ob_get_contents(); ob_end_clean(); ob_start(); include("/www/path/endPage.php"); $footer_inc = ob_get_contents(); ob_end_clean(); The variables $header_inc etc are added in the templates, the first two in the beginning of the header-template and the last in the footer-template. The weird thing is - IF there's some php errors in the include files, all forum pages show the layout files up to the point where the error occurs - but no vbulletin stuff. BUT if there are no errors in the files, the forum pages show up as "normal", there's no sign of any include file I've tried to add. I even tested it so that the include file only has 1 word, eg "HELLO", but even that doesn't show up. Why is that happening? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|