Gossamer Forum
Home : Products : Links 2.0 : Customization :

Advertising problem on *.cgi pages

Quote Reply
Advertising problem on *.cgi pages
Hi,
I want to use an SSI banner rotator on my search results page. This is the code i'm using but the banner won,t show up.

To call the banner:
~;
&advert;
print qq~

And the sub:
sub advert {
my $ad = `/full/path/cgi-bin/ads.cgi`;
$ad =~ s,Content-type:\stext/html\n\n,,;
return $ad;
}

For some strange reason, this code used to work but it's not working anymore (banner won't show up) maybe a syntax error...

Your help would be really appreciated!
Thank you

Quote Reply
Re: Advertising problem on *.cgi pages In reply to
you cannot call that routine from any of the static pages. Only from dynamic generated ones -- add, modify, and search.

--mark

------------------
You can reach my by ICQ at UID# 8602162

Quote Reply
Re: Advertising problem on *.cgi pages In reply to
Hi,

I am using that coge for the search results page! It is a dynamic page but the banner won't show up. Please check, maybe a small error in the code.

Thank you for your time.