forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: gosha on December 17, 2004, 07:59:32 pm

Title: Problem with Top Rated page.
Post by: gosha on December 17, 2004, 07:59:32 pm
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?
Title: Re: Problem with Top Rated page.
Post by: Joachim Müller on December 19, 2004, 06:48:18 am
link?

Joachim
Title: Re: Problem with Top Rated page.
Post by: gosha on December 20, 2004, 12:31:21 am
I'm sorry, but I'm preffer to email the link the the login, this is a functional private gallery...
Title: Re: Problem with Top Rated page.
Post by: Joachim Müller on December 20, 2004, 01:35:44 am
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
Title: Re: Problem with Top Rated page.
Post by: gosha on December 20, 2004, 09:18:29 am
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.

Title: Re: Problem with Top Rated page.
Post by: Joachim Müller on December 20, 2004, 09:24:54 am
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
Title: Re: Problem with Top Rated page.
Post by: gosha on December 20, 2004, 09:32:23 am
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.
Title: Re: Problem with Top Rated page.
Post by: Joachim Müller on December 20, 2004, 09:40:21 am
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
Title: Re: Problem with Top Rated page.
Post by: gosha on December 20, 2004, 11:35:52 pm
Did not found any solution  ???

 ;) any advices welcome
Title: Re: Problem with Top Rated page.
Post by: surfer on December 24, 2004, 05:23:42 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