Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Random Pictures  (Read 2121 times)

0 Members and 1 Guest are viewing this topic.

simoxy

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://www.noseriders.com
Random Pictures
« on: March 15, 2004, 08:59:46 am »

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?
Logged
go get in the surf!

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Random Pictures
« Reply #1 on: March 15, 2004, 11:50:00 am »

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,

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


Change the '>1000' to read '<1'.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://www.noseriders.com
Random Pictures
« Reply #2 on: March 15, 2004, 02:49:36 pm »

thanks that has worked
Logged
go get in the surf!
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 14 queries.