SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot nikola8's Avatar
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Banner rotation script without mysql ?

    I have hight visited site and problems with phpadsnew.
    Is there some php banner rotation script without mysql ?

  2. #2
    SitePoint Addict Clenard's Avatar
    Join Date
    Sep 2004
    Location
    USA
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What kind of Problems with PHPAdsNew? Resource problems? Have you checked out other products like AdPeeps? it's an excellent product but costs money...

    The problem with no having a system that relies on SQL is that you'll probably be missing out on some VALUABLE statistics that can help you in your Marketing Research for your site.

    But Hotscripts lists some projects such as this:
    http://www.phoenix.frihost.net/hercules/read_me.php

    Hope this helps!

  3. #3
    SitePoint Zealot nikola8's Avatar
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'm looking for free script.
    yes problem is with resources.
    and i don't need stats...
    just want to rotate banners.
    it would be good if can rotate gifs and flash banners, if not gif in enouhgt

  4. #4
    King of Paralysis by Analysis bronze trophy
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    5,840
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could just get someone to write up a simple PHP function for you

    Select random # from 1 - 10 (where 10 is the number of banners)
    If # = 1 then display /images/banner1.gif
    If # = 2 then display /images/banner2.gif
    etc

    You could probably get it done for $10 or so, or cobble it together yourself.

    There's also one on hotscripts that does what you want from the looks of it
    http://www.hotscripts.com/Detailed/53501.html

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok here's some basic code i wrote for a similar thing, basically, create an array of adds and then random select from that array....


    ---------------------------

    <?

    $offers[0]['imagen']="pic1.jpg";
    $offers[0]['url']="index.php?page=page1";
    $offers[0]['alt']="Some ALT text for the banner";

    $offers[1]['imagen']="pic2.jpg";
    $offers[1]['url']="index.php?page=page2";
    $offers[1]['alt']="Other alt text";

    //select the random offer
    $id_banner = array_rand($offers);


    //then you just need to display it however you like....


    <a href="<?=$offers[$id_banner]['url'] ?>"><img src="imgs/offers/<?=$offers[$id_banner]['imagen'] ?>" border="0" alt="<?=$offers[$id_banner]['alt'] ?>"></a>

    -------------------------

    feel free to paypal me your $10's!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •