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 problems...  (Read 3248 times)

0 Members and 1 Guest are viewing this topic.

mad72

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Random problems...
« on: December 21, 2004, 02:06:40 pm »

Hello everybody!

In my board ( http://www.scubafoto.it/cop/index.php?lang=english ) two very strange events happen:

1) clicking on a thumb in homepage ex. Top Rated a different picture is opened.  ???
2) some pictures uploaded by a user went in the gallery of another...  ???

can you please help me?

thank you, bye, Marco
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Random problems...
« Reply #1 on: December 21, 2004, 02:32:42 pm »

I can confirm your rating problem.

Try this.  Open your include/functions.inc.php, and find this code;

Code: [Select]
$ALBUM_SET ORDER BY ROUND((pic_rating+1)/2000) DESC, votes DESC $limit";
Change it to this;

Code: [Select]
$ALBUM_SET ORDER BY pic_rating DESC, votes DESC $limit";
As to your othewr problem, please double check everything, then post a new thread about it.  I have never heard of this before.  Have you at some stage bridged with a bbs and then unbridged?
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

mad72

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Random problems...
« Reply #2 on: December 21, 2004, 02:47:36 pm »

thank you, I changed the code but it happens again   :-[
Logged

mad72

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Random problems...
« Reply #3 on: December 21, 2004, 03:43:47 pm »

I had to restore the original file because with that mod it  happened that the top rated where not the real ones (es. a picture with 5 rates didn't appear)...
Logged

surfer

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://photoalbum.mario.org
Re: Random problems...
« Reply #4 on: December 24, 2004, 05:22:39 pm »

I had the same problem. I've solved it by doing this:

Replace the following in /include/functions.inc.php

Code: [Select]
ORDER BY ROUND((pic_rating+1)/2000) DESC, votes DESC $limit");in

Code: [Select]
ORDER BY ROUND((pic_rating+1)/2000) DESC, votes DESC, pid DESC $limit");
Surfer
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.