Random problems... Random problems...
 

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

Main Menu

Random problems...

Started by mad72, December 21, 2004, 02:06:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mad72

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

Casper

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?
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

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

mad72

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)...

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