The Realist
03-01-2006, 01:14 PM
This is doing my head in and I need help and pointers.
Well this is what Im trying to do with VB 3.5.4 and my header template.
I have installed phpadsnew and its all setup and running, I have added a single banner as a test and that looks fine. I've generatred the Invocationcode and that code I've created a new plugin under Hook Location : global_start.
In there I have paisted the code that phpadsnew has created in the Invocationcode tab and created the plugin. On the bottom of the new plugin I have created called phpadsnew is some code called "Plugin PHP Code" and Im trying to add this code to my header template so the banner shows.
<?php
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
}
?>
Am I doing this correct and if so why does the banner not show up regardless where I place the above code?
Or am I missing something here?
I have also tried to get other phpadsnew codes and hacks working with no luck.
Anyone out there have some pointers where Im going wrong.
Laters
Well this is what Im trying to do with VB 3.5.4 and my header template.
I have installed phpadsnew and its all setup and running, I have added a single banner as a test and that looks fine. I've generatred the Invocationcode and that code I've created a new plugin under Hook Location : global_start.
In there I have paisted the code that phpadsnew has created in the Invocationcode tab and created the plugin. On the bottom of the new plugin I have created called phpadsnew is some code called "Plugin PHP Code" and Im trying to add this code to my header template so the banner shows.
<?php
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
}
?>
Am I doing this correct and if so why does the banner not show up regardless where I place the above code?
Or am I missing something here?
I have also tried to get other phpadsnew codes and hacks working with no luck.
Anyone out there have some pointers where Im going wrong.
Laters