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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 18th, 2009, 05:13 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2008
Posts: 28
Highest Rated Bug?

Hi Guys

I seem to be experiencing a small problem with my highest rated panel. It functions correctly until a user adds a comment to an image without a rating. Then the image seems to drop out from the highest rated list.

My users are finding this disappointing as many of their images are still rated as 10, however are not in the panel.

Would really appreciate your help

Cheers

Helen
helkoryo is offline   Reply With Quote
Old January 19th, 2009, 08:45 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Actually there is no bug there at all that I can see. If someone places a comment on a photo and does not rate giving it essentially a 0 rating should it not be averaged? That is how all those things are done its all averages.

The issue I see it is instead the calc_rating function in pp-inc.php has this line and only recalculates ratings based on if they are no 0 ratings so essentially thats where the bug is. You say have a photo and it has 2 10 ratings and 3 people who commented and gave it a 0 rating. Your still showing the photo rated as 10 but to me looking at the math the real rating is 2. Thats why it no longer shows in your highest rated block because its average is no longer than high.

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 January 19th, 2009, 03:22 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2008
Posts: 28
HI Chuck

Many thanks for getting back to me so soon and I agree with your maths there, I think the problem is some of my members don't like using the rating system and just choose leave comments (yip thier problem I agree) this them makes the average score unfair as the image has infact scored 10s and in fact some have scored many 10s. In addition my users tend to reply to comments and the responce shows under the image again this is recorded as a comment and no rating and again it knocks the image off the highest rated pal.

Was that a line of code you quoted me earlier to add that will resolve this for me?

Many thanks for all your help once again

kind regards Helen
helkoryo is offline   Reply With Quote
Old January 19th, 2009, 04:08 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
In the pp-inc.php file for that query just remove this from the query to recalculate ratings based on my math

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 January 19th, 2009, 06:09 PM   #5 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Quote:
Originally Posted by Chuck S View Post
In the pp-inc.php file for that query just remove this from the query to recalculate ratings based on my math

Code:
Content visible to verified customers only.
can you reclarify what this does by removing it?
skidpics is offline   Reply With Quote
Old January 19th, 2009, 07:17 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
It makes the photo rating recalculate and include ratings which are 0 so a photo rating is calculated correctly. My post above explains exactly the issue.
__________________
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 19th, 2009, 10:20 PM   #7 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Quote:
Originally Posted by Chuck S View Post
It makes the photo rating recalculate and include ratings which are 0 so a photo rating is calculated correctly. My post above explains exactly the issue.
I think I was reading into it too much..
skidpics is offline   Reply With Quote
Old January 20th, 2009, 08:48 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Maybe so my friend it is just a minor calculation error.
__________________
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
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highest Rated images not working daddiyo Photopost Pro Installation & Upgrades 7 October 19th, 2007 09:53 AM
Highest Rated/Most Popular ghinton General Discussion 3 August 13th, 2004 12:44 PM
Photopost 4.8d - Highest Rated Accuracy mitchjaz2 Photopost Pro Installation & Upgrades 5 July 17th, 2004 09:35 AM


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

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