Two bugs that i found... Two bugs that i found...
 

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

Two bugs that i found...

Started by tempzerg, January 12, 2004, 05:26:01 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

tempzerg

When i choose Turkish as my language i get this error
Parse error: parse error, expecting `')'' in /home/groups/c/co/coppermine/htdocs/demo/lang/turkish.php on line 328
this is the error from your demo.

also when i list my photos by rating, a photo with 3.5 rating comes before a photo with rating 4 but with less votes.

Joachim Müller

Quote from: "tempzerg"When i choose Turkish as my language i get this error
Parse error: parse error, expecting `')'' in /home/groups/c/co/coppermine/htdocs/demo/lang/turkish.php on line 328
this is the error from your demo.
Thanks for letting us know - has been fixed in the demo, will go into the next release. I uploaded a fixed turkish language version to the download area. To solve this issue for you, edit /lang/turkish.php with a plain text editor (notepad will do), find the line starting with
Quote'date_d' =>
and remove the last ","

--------------------------------

Quote from: "tempzerg"also when i list my photos by rating, a photo with 3.5 rating comes before a photo with rating 4 but with less votes.
Please provide a deep link, so we can take a look.

GauGau

P.S. next time, please post two separate threads for different issues

tempzerg

i had already corrected the bug with the turkish language file...

about the secound bug

http://coppermine.sourceforge.net/demo/thumbnails.php?album=toprated&cat=-6

the first photo has a rating of 3.5 and the second 4, so ranking is wrong...

i changed
ORDER BY ROUND((pic_rating+1)/2000) DESC
on line 647 in functions.inc.php
with
ORDER BY pic_rating DESC

now the ratings work fine for me...

while sorting the script shouldn't round the rating...

Joachim Müller