Gossamer Forum
Home : Products : Links 2.0 : Customization :

Webadverts with links 2.0 and templates. Is it possible?

Quote Reply
Webadverts with links 2.0 and templates. Is it possible?
Hi,
Is it possible to use webadverts with links 2 and templates?

The problem with templates is the it won't show the advert on cgi generated pages. I added the "sub insertadvert" on my site_html_templates.pl and i also added the value &insertadvert to "globals" but on cgi pages when i insert <%insertadvert%> i get "unknown tag" error.

Did anyone figure out how to fix this problem?
The webadverts documentation does not work with links 2 templates.

Any help would be appreciated!
Thank you
Quote Reply
Re: Webadverts with links 2.0 and templates. Is it possible? In reply to
I'm using Links 2.0 with templates & WebAdverts 1.52. I've added the subroutine & global into site_html_templates.pl. This was per instructions from one of the Links Betas. I notice that the release version doesn't have any docs on this subject. Are SSI WebAdverts & Links 2.0 Templates not compatible?
Quote Reply
Re: Webadverts with links 2.0 and templates. Is it possible? In reply to
Hi -

If you are using ssi calls with webadverts, you will see either an error message or just blank space. Try using an image call, this should fix it.

- Matthew
Quote Reply
Re: Webadverts with links 2.0 and templates. Is it possible? In reply to
Hi,

For some reason the advert is not showing if i use templates. I'd really appreciate if you could post your configuration for webadverts and how you call the banner on cgi generated pages. (the tag you are using and what you added to globals)

Thank you for your time.
Quote Reply
Re: Webadverts with links 2.0 and templates. Is it possible? In reply to
Oops! Sorry Johnny! I didn't mean to imply that I have it working. I DON'T! I'm experiencing the same thing you are.