Random Pictures Random Pictures
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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!