Closed Thread
Results 1 to 5 of 5

Thread: Good php and mysql ad system.

  1. #1
    FWS Addict Koolguy is an unknown quantity at this point Koolguy's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    934
    Could you recommened a good mysql and php ad rotation system. Im currently using the one from phpwizard but I'm having problems with the banners being displayed equally.

  2. #2
    Pro Member jw is an unknown quantity at this point jw's Avatar
    Join Date
    Oct 2000
    Location
    Texas
    Posts
    285

    Lightbulb Theres a patch

    Yeah, I had the same problem when I downloaded it, but its pretty easy to fix. I found the patch on the phpAds support board. In view.inc.php3 and kcsm.php3, change srand((double)microtime()*1000000); to srand (time());
    Hope it helps

  3. #3
    FWS Addict Koolguy is an unknown quantity at this point Koolguy's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    934

    Sad Didn't work

    I did exactly what you said but it still didn't change anything, the four ads are the only ones that are being displayed. aAy ideas?

  4. #4
    Senior Member jvv is an unknown quantity at this point
    Join Date
    Oct 2000
    Location
    Antwerp, Belgium.
    Posts
    191
    You might want to try out phpAdsNew http://<br /> <a href="http://sourc...phpadsnew/</a>

    I haven't tried it myself, but it does get a high rating on script directories.
    "Don't go knocking on death's door, ring the doorbell and run away, that really makes Death angry"

  5. #5
    FWS Addict Koolguy is an unknown quantity at this point Koolguy's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    934
    I got it working with this code:

    function myshuffle($array)
    {
    mt_srand((double) microtime() * 1000000);
    $num = count($array);
    for ($i = 0; $i < $num; $i ++)
    {
    $n = mt_rand(0, $num - 1);
    $temp = $array[$n];
    $array[$n] = $array[$i];
    $array[$i] = $temp;
    }

    }

Closed Thread

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