Well, if you are using image tag for CGI generated pages, you can stop using it. Use banner tag instead. Well, many complaint about it prints before the HTML tag. Well, thanks to Yasser now it doesn't and it prints where you put the tag.
Step 1:
In your site_html_templates.pl:
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
build_detail_url => $build_detail_url,
site_title => $build_site_title,
css => $build_css_url,
banner => \&insertadvert
);
Add that \&insertadvert.
Step 2:
Still in site_html_templates.pl:
Add this somewhere in the file,
my $ad = `/path/to/ads.pl`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}
Step 3:
Put the banner tag <%banner%>, to where you want the banner to show up, in normal html pages as well in CGI generated pages.
Ermm...that's all! Hope this helps.
[This message has been edited by Eddie (edited July 24, 1999).]
Step 1:
In your site_html_templates.pl:
Quote:
%globals = ( date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
build_detail_url => $build_detail_url,
site_title => $build_site_title,
css => $build_css_url,
banner => \&insertadvert
);
Add that \&insertadvert.
Step 2:
Still in site_html_templates.pl:
Add this somewhere in the file,
Quote:
sub insertadvert { my $ad = `/path/to/ads.pl`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}
Step 3:
Put the banner tag <%banner%>, to where you want the banner to show up, in normal html pages as well in CGI generated pages.
Ermm...that's all! Hope this helps.
[This message has been edited by Eddie (edited July 24, 1999).]