The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
declaring a variable inside of global.php
I am trying to declare a variable inside of global.php... at the VERY end of the code.
For example, after the large comment box that states the download date and release number, I add the simple declaration (not my real variable, but same concept) Code:
/*======================================================================*\ || #################################################################### || # Downloaded: 01:10, Fri Aug 12th 2005 || # CVS: $RCSfile: global.php,v $ - $Revision: 1.321 $ || #################################################################### \*======================================================================*/ $cat = 'dog'; ?> I am trying to print the variable from the included file in this hook in global_start: Code:
ob_start(); require('library/templates/header.php'); $header_plugin = ob_get_contents(); ob_end_clean(); Any ideas what I am doing wrong and how I can make this work? Note: I cant just move the variable to the header file. The variable is actually created with a database call and a bit of string manipulation, and I need to keep its code outside of the header.php file. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|