WEB simple ad rotation script to implement into OTmp3?

Discussion in 'OT Technology' started by Browning, Apr 23, 2008.

  1. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    What would be the easiest way to rotate through 4-5 ad units on my site?:x:
     
  2. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10

    :bowdown: getting ready to try it out now, thank you
     
  3. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    Parse error: syntax error, unexpected T_STRING
     
  4. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    nevermind went with this one

    <?php
    $bannerAd[1] = 'code for ad 1';
    $bannerAd[2] = 'code for ad 2';
    $bannerAd[3] = 'code for ad 3';
    $bannerAd[4] = 'code for ad 4';
    $bannerAd[5] = 'code for ad 5';

    $adCount = count($bannerAd);
    $randomAdNumber = mt_rand(1, $adCount);
    echo $bannerAd[$randomAdNumber];
    ?>
     
    Last edited: Apr 23, 2008
  5. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
  6. tryfuhl

    tryfuhl New Member

    Joined:
    Oct 4, 2003
    Messages:
    75,450
    Likes Received:
    0
    Location:
    MD/DC Metro
    I lol'd when he posted that because even my ass got it :o
     
  7. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10


    I did.:hs:


    it was the quotes
     
  8. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    yea it's working pretty good. Thanks for the help:h5:
     
  9. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    already got one in use buddy, thanks though:cool:
     

Share This Page