OK, This is probably real simple but here goes:
I have Webadverts working if I call it from a browser. I made the changes from the FAQ to the site_html_templates.pl. I have included them below.
When I use <%banner%> in my cgi generated page, all that appears is the ad path. (d:\inetpub\scripts\ad\ads.pl).
%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 => \&insertadvert,
);
***************
sub insertadvert {
#-- -------------------------------------------------------------------
#Sub routine for web adverts
my $ad= 'd:/inetpub/scripts/ad/ads.pl';
$ad=~s,Content-type:\stext/html,,;
return $ad;
}
Any help would be appreciated.
I have Webadverts working if I call it from a browser. I made the changes from the FAQ to the site_html_templates.pl. I have included them below.
When I use <%banner%> in my cgi generated page, all that appears is the ad path. (d:\inetpub\scripts\ad\ads.pl).
%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 => \&insertadvert,
);
***************
sub insertadvert {
#-- -------------------------------------------------------------------
#Sub routine for web adverts
my $ad= 'd:/inetpub/scripts/ad/ads.pl';
$ad=~s,Content-type:\stext/html,,;
return $ad;
}
Any help would be appreciated.