coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: tempzerg on January 12, 2004, 05:26:01 AM

Title: Two bugs that i found...
Post by: tempzerg on January 12, 2004, 05:26:01 AM
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.
Title: Re: Two bugs that i found...
Post by: Joachim Müller on January 12, 2004, 10:29:41 AM
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 (http://coppermine.sourceforge.net/demo/?lang=turkish), will go into the next release. I uploaded a fixed turkish language version to the download area (http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98540&release_id=205317). 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
Title: Two bugs that i found...
Post by: tempzerg on January 12, 2004, 03:25:32 PM
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...
Title: Two bugs that i found...
Post by: Joachim Müller on January 13, 2004, 05:06:46 AM
created tracker #875865 (http://sourceforge.net/tracker/index.php?func=detail&aid=875865&group_id=89658&atid=590907) on this issue.

GauGau