WordPress.org

Support

Support » Plugins and Hacks » [Plugin: AdServe] Creating Zones

[Plugin: AdServe] Creating Zones

Viewing 10 replies - 1 through 10 (of 10 total)
  • Roger Theriault
    Member

    @rogertheriault

    In the Manage / Ads page, when you add a new Ad, in the zones field type

    myzone

    and then in your post content you can put

    [!AdServe:myzone!]

    or in your theme’s index.php, sidebar.php, or wherever… you can put

    <?php AdServe("myzone"); ?>

    You can define multiple zones, which means these are different places where ads might go. Just do the same thing again, changing “myzone” to “another-zone” for example.

    urbandiner
    Member

    @urbandiner

    Hi Roger or anybody

    I have added this “<?php AdServe(“myzone”); ?>” to a sidebar widget, but I am not seeing any action in the ad report?

    Any help would be greatly appreciated.

    Thanks!

    Paul

    Roger Theriault
    Member

    @rogertheriault

    You need to put the PHP code in a php file… most widgets will not be able to handle that PHP, and most widgets will not interpret the shortcode.

    urbandiner
    Member

    @urbandiner

    Roger

    If I add the Daiko text widget to the sidebar, will I be able to add the code?

    Paul

    urbandiner
    Member

    @urbandiner

    I added the Daiko text widget to the sidebar, which can display the php code, but I still don’t see any ad server results in the dashboard display.

    I did get a friend to click on the ad from a different ISP from mine, but I still see no counting…?

    urbandiner
    Member

    @urbandiner

    Oh wait! I see results in the Manage/Ads section now. Not where I expected it to show.

    bravenewniche
    Participant

    @bravenewniche

    Adserve is very useful and much appreciated.

    But could you replace the portion in the readme.txt where it says

    * Modify your code (or theme code) adding *AdServe(“zone”)*
    where *zone* is the zone definition, i.e. AdServe(“music”)

    and have it read

    * Modify your code (or theme code) adding <?php AdServe(“myzone”); ?>
    where *zone* is the zone definition, i.e. <?php AdServe(“music”); ?>

    Hi i love the plugin but is their a way to show ad’s by category ie in the side bar if the user is viewing a category the banners they see are the one for ZONE that category say cars see car ad’s and house see house ad’s ?

    Roger Theriault
    Member

    @rogertheriault

    @thestig2 – Yeah, that’s the whole idea.

    <?php
    $categories = get_the_category();
    AdServe($category[0]->category_nicename);
    ?>

    This would work for the first category if there are more than one.

    Set up zones that match the slugs of your categories. (You can find that on the Edit Category admin page)

    See http://codex.wordpress.org/Template_Tags/get_the_category

    My adds on http://www.forbrideandbaby.com are showing two or three of the exact add at a time and not rotating in any sequence. Is there a way to fix this?
    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: AdServe] Creating Zones’ is closed to new replies.