Random Pictures Random Pictures
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Random Pictures

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

Previous topic - Next topic

0 Members and 1 Guest 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!