Results 1 to 3 of 3

Thread: PHP Syntaxquestion to Ad Squares Plugin

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

    PHP Syntaxquestion 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:
    viewtopic.php?f=16&t=2596&start=0&hilit=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

  2. #2
    Veteran bluecafe's Avatar
    Join Date
    Apr 2010
    Location
    Berlin
    Posts
    1,563
    Thanks
    58
    Thanked 359 Times in 273 Posts

    Re: PHP Syntaxquestion to Ad Squares Plugin

    You must be an AppThemes customer and logged in to view this response. Join today!

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

    Re: PHP Syntaxquestion to Ad Squares Plugin

    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Plugin or something
    By krakkamike in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 5th, 2009, 07:12 PM