Php question to Ad Squares Plugin
I use the ad squares plugin for my 125 banners:
http://www.primothemes.com/post/ad-squares-widget/
also discussed in:
http://appthemes.com/forum/showthrea...gin-shows-bull****
with this plugin you can choose in wich banner for wich categorie should be shown. the example for this function:
<?php if(is_category("green-lizards")): ?>
insert green lizard ad campaign here
<?php elseif(is_category("purple-socks")): ?>
insert purple socks ad here
<?php else: ?>
insert default ad code here
<?php endif; ?>
____________________________
So my problem is i am not a php programmer
Question syntax:
every if ore elseif contain only one categorie. in my case i need for 1 maincategorie ans some subcategories:
How can i "include" my subcategories in every maincategorie?
for example:
<?php if(is_category("maincategorie, Subcat01, subcat02, subcat")): ?>
banner for all categories
....<?php elseif(is_category("purple-socks")): ?>
i searched throu some tutorials or try to change the syntax to something like this:
<?php if(is_category("maincategorie"."Subcat01"."Subcat0 1")): ?>
or this:
<?php if(is_category("maincategorie","Subcat01","Subcat0 1")): ?>
but nothing works. what do i wrong?
thanks for any help
Last edited by pepsi; July 9th, 2010 at 07:29 AM.