ad rotator

Discussion in 'Affiliate Programs' started by theo-zzzz, Feb 4, 2007.

  1. #1
    Does Azoogleads have an ad rotator?
    I couldn't find it.

    Theo
     
    theo-zzzz, Feb 4, 2007 IP
  2. manhcuong

    manhcuong Banned

    Messages:
    311
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    no they dont
     
    manhcuong, Feb 4, 2007 IP
  3. prilep

    prilep Well-Known Member

    Messages:
    3,852
    Likes Received:
    228
    Best Answers:
    0
    Trophy Points:
    185
    #3
    No they don't but you can search google or pixel2life.com for some great tutorials on it.

    - Prilep :)
     
    prilep, Feb 4, 2007 IP
  4. theo-zzzz

    theo-zzzz Notable Member

    Messages:
    578
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Thanks guys.
     
    theo-zzzz, Feb 4, 2007 IP
  5. xboxundone

    xboxundone Well-Known Member

    Messages:
    1,903
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    103
    #5
    no Az doesnt have one but here is a simple code for an adrotator.

    Create a php file call it Adrotator.php

    put this
    Create file called ads.txt and just put your code in for each banner seperated by ~ and just call your php file with an include

    I got this code from some site but can't remember where... but simple and works!
     
    xboxundone, Feb 4, 2007 IP
    theo-zzzz likes this.
  6. manhcuong

    manhcuong Banned

    Messages:
    311
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks alot for that
     
    manhcuong, Feb 4, 2007 IP
  7. theo-zzzz

    theo-zzzz Notable Member

    Messages:
    578
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    205
    #7
    Great script..

    TY

    Theo
     
    theo-zzzz, Feb 4, 2007 IP
  8. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #8
    there is a free php program called phpadsnew that really kickass ass if you have your own server
     
    Shoemoney, Feb 4, 2007 IP
  9. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Here is mine, its taken from the same code as the code xboxundone has but it adds the feature of being able to define your source ads file. Useful if you run different ads or multiple sets of rotating ads on one page.

    Here is the adrotator.php
    <?php
    
    function show_randad($Source) {
    $fcontents = join ('', file ($Source));
    $s_con = split("~",$fcontents);
    
    $banner_no = rand(0,(count($s_con)-1));
    echo $s_con[$banner_no];
    }
    ?>
    PHP:
    Here is an ads file: example - myads.txt
    <a href="banner link" target="_top" > <img src="banner image" width="468" height="60" alt="null" border="0"></a>
    ~
    <a href="banner link2" target="_top" > <img src="banner image2" width="468" height="60" alt="null" border="0"></a>
    ~
    PHP:
    And to call it:
    <?php
    /* Include this once at the top of the page */
    include("Path/To/File/adrotator.php");
    ?>
    PHP:
    
    <?php
    /* put the show_randad function in where you want to put your ads in and change the file in the () to the appropriate ads file */
    show_randad("Path/To/File/myads.txt");
    ?>
    PHP:
     
    LazyD, Feb 5, 2007 IP
  10. xboxundone

    xboxundone Well-Known Member

    Messages:
    1,903
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    103
    #10

    I agree its a great program. but if you really just want a simple ad rotator then the php code will do with much less work... but if you want to track more etc... yes phpadsnew is the way to go.
     
    xboxundone, Feb 5, 2007 IP
  11. SFOD_D223

    SFOD_D223 Peon

    Messages:
    4,512
    Likes Received:
    174
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I must be a total twit..I don't understand where you place the ads file and how to make an "include" to a php file.
     
    SFOD_D223, Feb 8, 2007 IP
  12. Cudbwrse

    Cudbwrse Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Is there a way to make this rotator show more then one ad at a time without duplicates?
     
    Cudbwrse, Jul 8, 2007 IP
  13. SFOD_D223

    SFOD_D223 Peon

    Messages:
    4,512
    Likes Received:
    174
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You would be better off just using Openads software. Very user friendly and customizable by adding weight to specific ads you want listed or viewed on site.
     
    SFOD_D223, Jul 8, 2007 IP
  14. Cudbwrse

    Cudbwrse Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks, but I already looked at Openads and it doesn't seem to show multiple ads without duplicates either. Besides, Openads is to heavy and it just does way much more then I need it to do. I just want to be able to store all my banner ads in a text document and have a script show however many ads I ask it to without showing duplicates.

    Any help would be much appreciated.

    Thanks,
    Tabitha
     
    Cudbwrse, Jul 8, 2007 IP
  15. Cudbwrse

    Cudbwrse Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Anybody? There has to be a way. Just one line of code to the one LazyD posted. I wish I knew or could figure out how but I don't and I can't. So someone please help?

    Thanks,
    Tabitha
     
    Cudbwrse, Jul 9, 2007 IP
  16. awiekupo

    awiekupo Peon

    Messages:
    975
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #16
    U need to know at least basic HTML to do it... Familiar with HTML?
     
    awiekupo, Jul 12, 2007 IP