Problem with Top Rated page. Problem with Top Rated page.
 

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

Problem with Top Rated page.

Started by gosha, December 17, 2004, 07:59:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gosha

Hi!

I have a strange problem with a "top rated" page, only first image (rating 4) is displayed correctly. Any other images after a cliecking on a thumbnail loads absolutley another image, that present on a "top rated" page on another position. This is not the case when the rating has been changed between the page loading and clicking on a thumbnail, I know that I'm alone on the site. Anyone knows something about it?

Joachim Müller


gosha

I'm sorry, but I'm preffer to email the link the the login, this is a functional private gallery...

Joachim Müller

then I can't help you, as I prefer not to be emailed nor contacted by PM. I'm not so sure you have understood the nature of the internet though ::):

Joachim

gosha

Hi,

Address is http://testcf.island.ee/

I've created the thest installation with the test users and test pics, placed a test votes and got the same result.


Joachim Müller

unable to replicate this on the test page you posted about, it shows expected behaviour. Are you sure we're talking about "top rated" and not "most viewed"?

Joachim

gosha

Yes, top rated. First 2 images displays expected after a click, but all another - dont. I cleared the browser's cache, and even tried to check with another browser, still the same.

Joachim Müller

OK, now I can see what you mean. This is being caused by the small number of votes you have, and the fact that you allow pics with only one vote to appear on the top rated page. I'm not sure wether a fix has been posted already, please search the board.

Joachim

gosha

Did not found any solution  ???

;) any advices welcome

surfer

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

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

ORDER BY ROUND((pic_rating+1)/2000) DESC, votes DESC $limit");

in

ORDER BY ROUND((pic_rating+1)/2000) DESC, votes DESC, pid DESC $limit");

Surfer