forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started 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
-
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?
-
thank you, I changed the code but it happens again :-[
-
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)...
-
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