PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 27th, 2010, 08:01 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
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
jdougher is offline   Reply With Quote
Old November 27th, 2010, 01:52 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 27th, 2010, 02:55 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
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.
I believe you have answered my question with a description of how the software currently works, not how it should work or how the software leads one to believe it should work.

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!
Attached Images
File Type: png sort.png (14.5 KB, 5 views)
jdougher is offline   Reply With Quote
Old November 27th, 2010, 03:26 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 27th, 2010, 03:37 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
So when you end the voting what sorting are you wanting?
Well we want sorting by rating, naturally. Otherwise how are we to see which images get the most votes? As it is, we have to do a visual scan of all the images and note the vote count. It's insane. That can't be the behavior that's intended, can it?

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.
jdougher is offline   Reply With Quote
Old November 27th, 2010, 06:47 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 28th, 2010, 05:54 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
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.
It's not the cookie. I tried it with two other browsers. Same random result. How can I fix this? We have contest sponsors who don't want to have to wade through hundreds of images to see which ones have the highest votes. Neither do I.
jdougher is offline   Reply With Quote
Old November 28th, 2010, 06:59 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 30th, 2010, 04:33 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
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.
That didn't work. Any other suggestions?
jdougher is offline   Reply With Quote
Old November 30th, 2010, 06:04 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 1st, 2010, 02:02 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
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.

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
jdougher is offline   Reply With Quote
Old December 1st, 2010, 02:09 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Also the tricks in this thread no longer work:

Sorting does not work in contests

Seems to be an age-old bug that is not fixed.
jdougher is offline   Reply With Quote
Old December 1st, 2010, 04:13 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 1st, 2010, 05:39 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
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.
Thanks. This is kind of urgent. We're getting ready to set up another contest.
jdougher is offline   Reply With Quote
Old December 1st, 2010, 09:14 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
when I have a response I will let you know.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 5th, 2010, 03:52 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
when I have a response I will let you know.
Anything yet?
jdougher is offline   Reply With Quote
Old December 5th, 2010, 09:39 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
change that to this

Code:
Content visible to verified customers only.
then find this

Code:
Content visible to verified customers only.
change to this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; December 6th, 2010 at 07:21 AM.
Chuck S is offline   Reply With Quote
Old December 6th, 2010, 05:49 AM   #18 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
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.
jdougher is offline   Reply With Quote
Old December 6th, 2010, 07:26 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,686
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 22nd, 2011, 10:30 AM   #20 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 316
Quote:
Originally Posted by Chuck S View Post
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.
change that to this

Code:
Content visible to verified customers only.
then find this

Code:
Content visible to verified customers only.
change to this

Code:
Content visible to verified customers only.


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.
jdougher is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting doesnt work for my site marc100 Classifieds Bug Reports 17 June 25th, 2010 07:06 PM
Sorting does not work in contests jdougher Photopost Pro Bug Reports 22 September 7th, 2009 09:45 AM
votes contest don't work pompaunpo Photopost Pro Installation & Upgrades 6 March 2nd, 2008 09:46 PM
v6 bug: Sorting by Rating Reggie Photopost Pro Bug Reports 3 October 6th, 2007 01:23 PM


All times are GMT -5. The time now is 12:22 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0