Random Pictures Random Pictures
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Random Pictures

Started by simoxy, March 15, 2004, 08:59:46 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

simoxy

I have installed this on my site (http://www.noseriders.co.uk/idea) and have uploaded lots of pictures (not all of them yet) and when you load the page the random images part does not display any pictures!! Any ideas?
go get in the surf!

Casper

This is caused by a bit of code that checks how many pics you have.  it is being removed in the next version, but for now, do this;

Open include/functions.inc.php.  Find,

// by the SELECT statement as ORDER BY RAND() is time consuming
                if ($pic_count > 1000) {


Change the '>1000' to read '<1'.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

simoxy

thanks that has worked
go get in the surf!