Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Targeting ads within the category template

Quote Reply
Targeting ads within the category template
I'm used to using Links with site_html.pl and had the following in place to set variables for my SSI banner calls:

if ($category_clean =~ /^Art/) {$adzoneban="QAA"; $adzonebut="QAB"; $adzonetxt="QAC"; $adzonen = "Art, etc";}
elsif ($category_clean =~ /^Busin/) {$adzoneban="QBA"; $adzonebut="QBB"; $adzonetxt="QBC"; $adzonen = "Business, etc";}
elsif ($category_clean =~ /^Chari/) {$adzoneban="QCA"; $adzonebut="QCB"; $adzonetxt="QCC"; $adzonen = "Charity, etc";}
elsif ($category_clean =~ /^Compu/) {$adzoneban="QDA"; $adzonebut="QDB"; $adzonetxt="QDC"; $adzonen = "Computers, etc";}
elsif ($category_clean =~ /^Educa/) {$adzoneban="QEA"; $adzonebut="QEB"; $adzonetxt="QEC"; $adzonen = "Education, etc";}
elsif ($category_clean =~ /^Enter/) {$adzoneban="QFA"; $adzonebut="QFB"; $adzonetxt="QFC"; $adzonen = "Entertainment, etc";}
elsif ($category_clean =~ /^Gover/) {$adzoneban="QGA"; $adzonebut="QGB"; $adzonetxt="QGC"; $adzonen = "Government, etc";}

etc ... I then simply placed the $adzonexxx variable in each banner call, and voila targeted ads :)

I'm trying to do this with the category.html template, but haven't got a clue how to do it. I'm assuming I can do a <%if cat_clean has "xxx" at the start, use the following codes> - any help appreciated.

All the best
Shaun

Subject Author Views Date
Thread Targeting ads within the category template qango 3122 Jul 6, 2000, 5:33 AM
Thread Re: Targeting ads within the category template
pugdog 3038 Jul 6, 2000, 7:15 PM
Thread Re: Targeting ads within the category template
qango 3031 Jul 7, 2000, 2:42 AM
Thread Re: Targeting ads within the category template
Clint 3035 Jul 7, 2000, 5:12 AM
Thread Re: Targeting ads within the category template
qango 3053 Jul 7, 2000, 5:27 AM
Post Re: Targeting ads within the category template
qango 3040 Jul 7, 2000, 7:17 AM