Advanced search  

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

Pages: [1]   Go Down

Author Topic: Random Pictures  (Read 2204 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.021 seconds with 19 queries.