coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: mad72 on December 21, 2004, 02:06:40 PM

Title: Random problems...
Post by: mad72 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
Title: Re: Random problems...
Post by: Casper 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;

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

Change it to this;

$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?
Title: Re: Random problems...
Post by: mad72 on December 21, 2004, 02:47:36 PM
thank you, I changed the code but it happens again   :-[
Title: Re: Random problems...
Post by: mad72 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)...
Title: Re: Random problems...
Post by: surfer 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

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