WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: AdServe] Creating Zones (11 posts)

  1. sociallys
    Member
    Posted 5 years ago #

    Can someone shoiw me a simple way to create a zone. I need to link this plugin to my right side widget.

    THANKS!

    Mo

    http://wordpress.org/extend/plugins/adserve/

  2. Roger Theriault
    Member
    Posted 5 years ago #

    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.

  3. urbandiner
    Member
    Posted 5 years ago #

    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

  4. Roger Theriault
    Member
    Posted 5 years ago #

    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.

  5. urbandiner
    Member
    Posted 5 years ago #

    Roger

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

    Paul

  6. urbandiner
    Member
    Posted 5 years ago #

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

  7. urbandiner
    Member
    Posted 5 years ago #

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

  8. bravenewniche
    Member
    Posted 5 years ago #

    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"); ?>

  9. TheStig2
    Member
    Posted 5 years ago #

    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 ?

  10. Roger Theriault
    Member
    Posted 5 years ago #

    @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

  11. Laurieco
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic