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![]()
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.
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![]()
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?
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"
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;
}
}
Bookmarks