1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to rotate banners in wordpress? and have click limits? Plugin?

Discussion in 'Affiliate Programs' started by ChrisChris, Oct 31, 2013.

  1. ChrisChris

    ChrisChris Junior Member

    Joined:
    Feb 26, 2013
    Messages:
    148
    Likes Received:
    6
    Occupation:
    Marketing, Networking, Malaga
    Location:
    Oakland, CA
    Anybody have a favorite wp plugin that rotates cpa offers and adsense offers? etc.

    It must have a daily click max option.

    I KNOOW there's one around.
     
  2. divok

    divok Senior Member

    Joined:
    Jul 21, 2010
    Messages:
    1,015
    Likes Received:
    634
    Location:
    http://twitter.com/divok
    Install openx using fantastico/softaculous . Tough it is quite complex and a bit more load on server .
     
  3. ChrisChris

    ChrisChris Junior Member

    Joined:
    Feb 26, 2013
    Messages:
    148
    Likes Received:
    6
    Occupation:
    Marketing, Networking, Malaga
    Location:
    Oakland, CA
    Ive heard that works well. Does it have click limits?

    Id really just rather have a simple plugin, but ya ill check into that. How much is it too?
     
  4. katika

    katika Junior Member

    Joined:
    Feb 15, 2008
    Messages:
    107
    Likes Received:
    111
    U do not need plugin for this, just little code editing for example.

    I do not know where U want to show banner, so let this code be before post title

    Be focused now

    find single.php in wordpress theme

    before post title code paste this code

    Code:
    <!-- /ad before title start -->			
    
    <?php
    $array = array('01_ad.php','02_ad.php','03_ad.php');
    include($array[rand(0,count($array)-1)]);
    ?>	
    							
    <!-- /ad before title end-->

    We have 3 ad variation (banners, adsense...)

    Now create 3 files name them as 01_ad.php, 02_ad.php, 03_ad.php.

    Paste in every file banner code.

    Save those files in your WP theme folder.

    Upload all 4 files (ad files and single)


    U got your rotator.

    Katika
     
  5. ChrisChris

    ChrisChris Junior Member

    Joined:
    Feb 26, 2013
    Messages:
    148
    Likes Received:
    6
    Occupation:
    Marketing, Networking, Malaga
    Location:
    Oakland, CA
    Hey great, but I had trouble.


    I went to single.php
    I then stuck your code in before the post title, and several other places.
    I then created a file called 01_ad.php.
    I added my html img src link code.
    I then went to the theme folder in cpanel and saved it there.
    Thats it, but all I see is code on the top of the page


    ):

    here's my wp error---->


    Warning: include(01_ad.php) [function.include]: failed to open stream: No such file or directory in/home/annuityc/public_html/wp-content/themes/iconic-one/single.php on line 19


    Warning: include(01_ad.php) [function.include]: failed to open stream: No such file or directory in/home/annuityc/public_html/wp-content/themes/iconic-one/single.php on line 19


    Warning: include() [function.include]: Failed opening '01_ad.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/annuityc/public_html/wp-content/themes/iconic-one/single.php on line 19


    Warning: include(01_ad.php) [function.include]: failed to open stream: No such file or directory in/home/annuityc/public_html/wp-content/themes/iconic-one/single.php on line 36


    Warning: include(01_ad.php) [function.include]: failed to open stream: No such file or directory in/home/annuityc/public_html/wp-content/themes/iconic-one/single.php on line 36


    Warning: include() [function.include]: Failed opening '01_ad.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/annuityc/public_html/wp-content/themes/iconic-one/single.php on line 36
     
    Last edited: Nov 1, 2013
  6. katika

    katika Junior Member

    Joined:
    Feb 15, 2008
    Messages:
    107
    Likes Received:
    111
    U made some error, if U want I can help you over skype.
     
  7. ChrisChris

    ChrisChris Junior Member

    Joined:
    Feb 26, 2013
    Messages:
    148
    Likes Received:
    6
    Occupation:
    Marketing, Networking, Malaga
    Location:
    Oakland, CA
    A little help would be awesome!

    sent you a pm