The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Please Help! phpinclude_start gone...
I just upgraded to Beta4, and my PHP Includes Start has disappeared. This section housed my PHP code that included my banner rotator.
I need the variable $banner to be evaulated as: include("location/banner.php"); So, that in my header template, I can place the $banner variable and have it include my banner rotator. Can someone please explain how to do this? Thank you in advance! |
#2
|
||||
|
||||
Yes it is!
Use the hook "global_start" isntead |
#3
|
||||
|
||||
when will the devs bring that template back?
when you include different headers in different styles, it's not nice to have styleids hardcoded in the global hook. phpinclude is needed! |
#4
|
||||
|
||||
Quote:
I start a new plugin called "banner", hooked to global_start... In that plugin, I put: include("location/banner.php"); I have also tried: $banner=include("location/banner.php"); Neither work when called as $banner in any of the pages. (The reason I'm asking for help.) Thanks in advance. |
#5
|
|||
|
|||
try using $GLOBALS['banner'].
Also, did your banner script use output buffering in phpinclude? You will still need to do that in global_start. |
#6
|
||||
|
||||
Quote:
I opened the header template and changed $banner to $GLOBALS['banner']... And get the following error: The following error occurred when attempting to evaluate this template: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /web/www.mysite.com/html/includes/adminfunctions_template.php(3504) : eval()'d code on line 59 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. Still looking for a solution for this, does anyone have a way to do this? |
#7
|
|||
|
|||
Sorry.
$GLOBALS[banner]. |
#8
|
||||
|
||||
Quote:
$banner=include('file.php'); (Doesn't work, it just doesn't show up) include('file.php'); (there is no variable to be called using this) I've tried a few different ways, and can't seem to include a file with the Global_Start for some reason. Any other suggestions? I'm using PHPAdsNew and outputting a PHP file for the rotation. |
#9
|
||||
|
||||
Anyone?
|
#10
|
||||
|
||||
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|