Gossamer Forum
Home : Products : Links 2.0 : Customization :

How I did zones with Webadverts and Links

Quote Reply
How I did zones with Webadverts and Links
I wanted webadvert zones for each category. I should also say I am using templates.

Anyhow, I went through the meta keywords for each category and assigned it a one word keyword. I then used SSI in my category.html and home.html template.

Example:

<!--#exec cgi="/cgi-bin/zone_<%meta_keywords%>.pl" -->

Easy way to zone your categories.

If you don't want to use meta keywords, you could use category also.

It worked for me...your mileage may vary.
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
Nice Mod...Good work.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
you could also do it based on the HTTP_REFERER (which is the page that the cgi gets called from)..

put it requires a bit more code than yours.. and it's webadvert's side.. but it only requires one ad file.. instead of the numerous for the many zones..

anyways.. i did that on links 1.1

jerry
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
How does that work for the cgi generated pages (add.cgi, search.cgi, etc). I don't think they use the meta_keyworks do they?

Dan O.
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
It doesn't work for .cgi generated pages. I used the NonSSI call and named the zone:

zone_cgi.pl


I'm wanting the mess around and see if I can set up an array (much like the other thread you've helped me on) so I can target banners during the search. Also, by keeping the cgi files zoned seperately, I can include linkexchange banners throughout the website and keep them from appearing on cgi pages.

Why do I need to do this? Well, the linkexchange uses the Raw HTML code and it shows up as a broken link on cgi pages.

So more or less thinking out loud about cgi pages....

Couldn't we set up an array that would default a term to a synonym. For example if someone searched for one of the following:

employment, jobs, career

it would default the query term to employment. Then we call

zone_<%query%>.pl

since any of those terms default to employment the page we would create would be:

zone_employment.pl

which would be called if some searched for jobs, career, etc.

How's my thinking so far? :-)
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
This seems to be the simplist explaination among the 50 or so threads on webadverts.

But just to be clear...
Code:
<!--#exec cgi="/cgi-bin/zone_<%meta_keywords%>.pl" -->
or
<!--#exec cgi="/cgi-bin/zone_<%Category%>.pl" -->
inserted in the desired position on the category template would work as long as webadverts had a "ad_categoryname.pl" for each links2 category with the desired banners assigned to each.

Correct?

But all dynamic pages such as search, add, modify, etc. templates would require the banners to be called from the non-ssi format. (and better still including the random page generated java script.

Correct?


I found this mod in the faq's http://www.codes-central.com/WebAdverts-Links.shtml which seems simple enough if you want no zoning. However if one wishes to define targeting by category or keywords as above and have a generic zone for the dynamic pages couldn't you create a second banner global? as in:
Code:
banner1 => \&insertadvert1
banner2 => \&insertadvert2
and then make two subs accordingly, and do the above for the category zones in one of them?

It seems to me that what I may be missing is the language for the category defined sub as it probably would need more than /path/to/cgi-bin/ads/ads_1.pl

???????

[This message has been edited by BruceS (edited February 15, 2000).]
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
I have not been using the Add.cgi, however, Grady's mod may also be applied for cgi output pages using WebAvert's require statement:

$ADVNoPrint = 1;
$ADVQuery = "";
require "/cgi-bin/zone_$in{'Category'}.pl";

where:

$in{'Category'} will insert the correct ADD page category. You will need to make sure that the $in{'Category'} inserts the Category_Name and not just "Category Name" without the "_".


[This message has been edited by zaro (edited February 17, 2000).]
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
Hi All,

Maybe this is a silly question, and if it is I apologize ahead of time. Can't you use the java code or img or something besides the SSI in the header and footer files, or do you have to put it in the templates?

Mike
Quote Reply
Re: How I did zones with Webadverts and Links In reply to
Yes...you can use the IMG tag -or- IFRAMES option in the header/footer files.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.