![]() |
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! |
Yes it is!
Use the hook "global_start" isntead :) |
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! |
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. |
try using $GLOBALS['banner'].
Also, did your banner script use output buffering in phpinclude? You will still need to do that in global_start. |
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? |
Sorry.
$GLOBALS[banner]. |
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. |
Anyone?
|
PHP Code:
|
All times are GMT. The time now is 02:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|