Gossamer Forum
Home : Products : Links 2.0 : Discussions :

WebAdvert Users - Templates

Quote Reply
WebAdvert Users - Templates
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:

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).]
Subject Author Views Date
Thread WebAdvert Users - Templates Eddie 3813 Jul 23, 1999, 11:44 PM
Post Re: WebAdvert Users - Templates
Jerry 3739 Jul 31, 1999, 6:54 PM
Post Re: WebAdvert Users - Templates
Eddie 3736 Jul 31, 1999, 8:22 PM
Post Re: WebAdvert Users - Templates
jusu 3741 Aug 3, 1999, 6:20 PM
Post Re: WebAdvert Users - Templates
Eddie 3736 Aug 3, 1999, 6:36 PM
Post Re: WebAdvert Users - Templates
Bmxer 3731 Aug 3, 1999, 11:26 PM
Post Re: WebAdvert Users - Templates
Eddie 3736 Aug 4, 1999, 12:42 AM
Post Re: WebAdvert Users - Templates
tassie 3741 Aug 5, 1999, 12:25 AM
Post Re: WebAdvert Users - Templates
okaili 3739 Jan 26, 2000, 2:21 PM