![]() |
Contest ended - sorting by Rating does not work We have a gallery-run contest that ended. We ended voting. Sort by Rating doesn't work at all. Why not? PhotoPost 7.02 |
when a contest is ended the sort applied is random from what I am seeing in the code in showgallery.php but to be sure I will do some testing. when running a contest the sorts are hard coded not changeable. As to whats the norm I can not say without asking Michael. |
1 Attachment(s) Quote:
Certainly a random sort should not be applied when a user specifically selects Sort By Rating. Yet this appears to be what is happening. Or rather, as I described, there is NO sort happening! |
Like stated when a category is set to voting the sorts are hard coded so that sorting box is irrelevant as you can not switch sorting. If you wish to change your sorts you would need to do so in the coding to work the way you specifically want. So when you end the voting what sorting are you wanting? |
Quote:
Also if certain types of sorting are not available in some views, then the sort box should not even be displayed. There's not even an error message that appears stating that a sort didn't take because it's not supported. I'm sorry, but this is just nuts. This has to be a bug. |
The sort for contests have always been hard coded for many years since the functionality was introduced so this is not something new. I also wonder if your issue is caused by you having a cookie with a sort set to random. Try clearing all cookies for your site in your browser and view the page. |
Quote:
|
Maybe try changing the line with the 6 to a 4 in showgallery.php. I have the code showing below to search for. Code: Content visible to verified customers only. |
Quote:
|
I really cant say without information about your site as that should work. I would suggest though you try 7.03 first as there was alot of different bug fixes. |
Quote:
Updated to 7.03. Changed the 6 to 4 as you suggested. Did not work. Here's the contest: Current Photography Contest: Autumn! - Free online photo gallery at PhotoCamel.com |
Also the tricks in this thread no longer work: http://www.photopost.com/forum/photo...-contests.html Seems to be an age-old bug that is not fixed. |
anything in that thread is most definately in the software. I will recheck it out and see if I can see anything out of place. |
Quote:
|
when I have a response I will let you know. |
Quote:
|
Well it is sorting by rating from what I see. The issue is multifold because there is not sort for votes. Find this code in showgallery.php Code: Content visible to verified customers only.Code: Content visible to verified customers only.Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Why would a "sort by rating" option even be enabled for a category marked in Admin as "contest"? What you want is a sort by voted. The "rating type" in Admin is set to Contest. I thought you said earlier that for contests, sort order was predetermined. |
As said the sort has always been ORDER BY disporder,rating DESC which is how Michael had designed the contest and how it is suppose to operate so in theory the code is working how it is suppose to. If I remember correctly when the contest option was added there was no votes field. That came later on in the contest option. what is posted should make them sort by vote when the contest ends. |
Quote:
Just getting back to this thread. The fix above *does* fix photopost so that contests that are over are sorted by vote. Thanks. Why this isn't in the software to begin with I have no idea. I consider this a bug. |
| All times are GMT -5. The time now is 08:38 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0