PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Contest Ended - sort order not by vote count (http://www.photopost.com/forum/photopost-pro-how-do-i/148838-contest-ended-sort-order-not-vote-count.html)

swtadm October 11th, 2012 10:22 AM

Contest Ended - sort order not by vote count
 
Hi Chuck,

I've just ended a contest in one of my forums but I expected the display of that category to now be sorted by the highest vote count.

I've checked the db and the category has sortby set to 9.

Other values that seem to be important in the showgallery.php are:

ratingtype = 1
takevotes = 2
votes = 0

(just out of curiousity since there are votes, I reset the votes value to a positive number but that didn't seem to matter).

Any thoughts on why it's not displaying by vote count?

Any other values that I should check?

Thanks,

Dennis

Chuck S October 11th, 2012 12:31 PM

There is no sortorder field in the categories table in our program that is 9. I have checked our files and see where we set nothing to 9 so definately would have to see this site backend front end and database to come up with a theory.

Chuck S October 12th, 2012 10:05 AM

I have not seen any info on this yet. It would not be part of add a specific sort called votes and this is how I would do it. There is no clear vote sort it is by rating but clearly it would be nice to have seen your issue to comment further.

I would if I wanted to add a specific vote sort do this around line 239 I would add this code in bold.

Code:

Content visible to verified customers only.
I would then down further around line 607 add this code in bold

Code:

Content visible to verified customers only.
You could then add a specific sort in your sort table with sort id of 9 like this

Code:

Content visible to verified customers only.

Chuck S October 13th, 2012 10:35 AM

Let me know if that achieves what you want or if you need anything else.

Chuck S October 14th, 2012 01:40 PM

Okay well I tried this out myself on my test site and works fine so think I will add this to our next update.


All times are GMT -5. The time now is 04:04 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97