Some of you should be getting sick of this question but I feel like there something wrong somewhere. Does someone have Webadverts displaying a banner on cgi generated pages?? I followed the instructions and it does not work.
Heres what I have one so far:
In site_html_templates.pl added a global variable to the list:
%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => &insert_advert,
);
And added the insert_advert sub:
sub insert_advert {
require "/opt/guide/www.tracksonline.com/HTML/ads/ads_display.cgi";
$adverts_dir = "/opt/guide/www.tracksonline.com/HTML/ads";
$display_cgi = "http://www.tracksonline.com/ads/ads.cgi";
$advertzone = "";
$ADVUseLocking = 1;
$ADVLogIP = 0;
$DefaultBanner = "";
$ADVNoPrint = 1;
&ADVsetup;
}
In the templates I now use <%banner%> where I want a banner to appear but they don't. Instead of that there is now a banner in the admin area above the build all report. But only when using IE3.2 higher versions do not have this. So the sub is working. But not on the pages where it should be.
Related to version 2 I could not find a good answer in the forum. If someone could shine a light on this I would greatly appreciate it.
Jeroen Roeper
Tracks Online
http://www.tracksonline.com
Heres what I have one so far:
In site_html_templates.pl added a global variable to the list:
%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => &insert_advert,
);
And added the insert_advert sub:
sub insert_advert {
require "/opt/guide/www.tracksonline.com/HTML/ads/ads_display.cgi";
$adverts_dir = "/opt/guide/www.tracksonline.com/HTML/ads";
$display_cgi = "http://www.tracksonline.com/ads/ads.cgi";
$advertzone = "";
$ADVUseLocking = 1;
$ADVLogIP = 0;
$DefaultBanner = "";
$ADVNoPrint = 1;
&ADVsetup;
}
In the templates I now use <%banner%> where I want a banner to appear but they don't. Instead of that there is now a banner in the admin area above the build all report. But only when using IE3.2 higher versions do not have this. So the sub is working. But not on the pages where it should be.
Related to version 2 I could not find a good answer in the forum. If someone could shine a light on this I would greatly appreciate it.
Jeroen Roeper
Tracks Online
http://www.tracksonline.com