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
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