Results 1 to 2 of 2

Thread: Php question to Ad Squares Plugin

  1. #1
    Thread Starter
    Senior Member stefan's Avatar
    Join Date
    Jan 2010
    Location
    Hamburg Germany
    Posts
    106
    Thanks
    1
    Thanked 1 Time in 1 Post

    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.

  2. #2
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts

    Re: Php question to Ad Squares Plugin

    Duplicate thread http://appthemes.com/forum/showthrea...Squares-Plugin
    Last edited by pepsi; July 9th, 2010 at 07:30 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP Syntaxquestion to Ad Squares Plugin
    By stefan in forum ClassiPress General Discussion
    Replies: 2
    Last Post: April 24th, 2010, 06:28 AM
  2. Facebook plugin question (please help!)
    By mfourcard in forum ClassiPress General Discussion
    Replies: 2
    Last Post: April 15th, 2010, 01:20 AM
  3. Plugin or something
    By krakkamike in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 5th, 2009, 08:12 PM
  4. Facebook plugin question (please help!)
    By mfourcard in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 07:00 PM