WordPress.org

Ready to get started?Download WordPress

Forums

Simple Ads Manager
Manual placement? (10 posts)

  1. gixty7
    Member
    Posted 2 years ago #

    Hello,

    I would like to know how I can place de ads inside the template through php coding.

    Thank you.

    http://wordpress.org/extend/plugins/simple-ads-manager/

  2. minimus
    Member
    Plugin Author

    Posted 2 years ago #

    Use functions drawAdsPlace, drawAdsZone, drawAd, drawAdsBlock. Read more: http://www.simplelib.com/?p=480

  3. jonnyfullpint
    Member
    Posted 2 years ago #

    Great Plugin. Works fantastically in widgets but I would like to add places in other locations. Where am I supposed to add the functions?

    thefullpint.com

  4. minimus
    Member
    Plugin Author

    Posted 2 years ago #

    Anywhere you want...

  5. jonnyfullpint
    Member
    Posted 2 years ago #

    Minimus could you be a little more exact as to where i should place the code. Do i just insert it at the bottom of the functions.php page and then use the shortcode where i need the ads to show up?

  6. minimus
    Member
    Plugin Author

    Posted 2 years ago #

    Each instance of the function displays an ad, Ads Place, etc. according to what function you use (drawAd, drawAdsPlace, etc.) ... You can put the function anywhere in your template code, exactly where you want to display ads. Read more here (Output functions paragraph)...

  7. wpfspin
    Member
    Posted 2 years ago #

    I'm hoping I can get some assistance. I'm not a programmer but I can sometimes fumble around with code that's already in place to get what I need to work. However I can't seem to figure out how to manually add code on my page for the Simple Ad Manager plugin.

    ----------------------------------------
    The snippet of my current code:
    ----------------------------------------

    <?php if( is_front_page() || is_home() || is_404() ) { ?>
    <!--- Insert Ads here --->
    <img src="wp-content\graphics\ads\leaderboard-01.jpg" style="border-color: #988e82;border-style: solid;border-width: 1px;margin: 0px 0px 0px 6px;"><!--- Ads end here --->
    	    <?php }

    ----------------------------------------
    Want to replace the img src tag with code below but not sure how
    ----------------------------------------
    if(function_exists('drawAdsPlace')) drawAdsPlace(array('id' => 1), true);

    Any help would be greatly appreciated...Thanks!

  8. minimus
    Member
    Plugin Author

    Posted 2 years ago #

    <?php if( is_front_page() || is_home() || is_404() ) { ?>
    <!--- Insert Ads here --->
    <?php if(function_exists('drawAdsPlace')) drawAdsPlace(array('id' => 1), true); ?>
    <!--- Ads end here --->
    	    <?php }
  9. wpfspin
    Member
    Posted 2 years ago #

    Minimus...you're awesome! Thank you.

  10. geethu vijayan
    Member
    Posted 2 years ago #

    Hello
    i have some doubt regarding this code snippet. Could you please explain what this actually doing.. result is the display of ad . i cannot understand how it works.. please help..

    <div class="ad_05">
    <?php //if(function_exists('drawAdsPlace')) drawAdsPlace(array('id' => 5), true); ?>
    <script>eplAD4("Avenida_Media_1_Noticias",{t:1,timeout:0,ma:1,custF:null,wh:"600x80",sd:"d8da!Noticas!http://ads.us.e-planning.net/!!"});</script>
    <!-- e-planning v4 - Fin espacio Beta Eje Central _ Noticas _ Avenida_Media_1_Noticias -->
    </div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic