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 > ReviewPost Pro Support Forums > ReviewPost Suggestions

ReviewPost Suggestions Suggest ways to improve ReviewPost Pro.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 26th, 2005, 01:37 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Rebuild rp_products.numreviews ?

Is there any way to rebuild the stats in the product table? For example the numbers in rp_products.numreviews and the rating averages for the products?

For some reason mine aren't right. For example I have a product that have 2 reviews, yet in the category listings it shows "3" because the that's what's in the rp_products table.

When you go to see the product itself the stats are all right.

I think that when the some old reviews were deleted the relevant product stats weren't updated. No idea why, could be down to using beta test code ages ago.


----

Edit: Hmm interesting (just tried something).

If you add a review, then delete it, the product's ratings are updated in the product table, however the number of reviews recorded against that product (again in the product table) is reduced by one.

Would it be better upon deletion or addition of a new/old review to calculate the number of reviews, rather than increasing or decreasing numreviews by one?

Last edited by Arnie; October 26th, 2005 at 01:46 PM.
Arnie is offline   Reply With Quote
Old October 27th, 2005, 10:37 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
You can run like the 2.8-2.9 upgrade
__________________
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 October 27th, 2005, 11:00 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Cheers Chuck, any chance that that code (the while loop that updates/checks the product data) could be added to teh tool list in future versions?

I know that it shouldn't happen, but incase the data does get out of sync it's a handy tool.

I was thinking about it. Is it possible that two moderators have approved the same review at the same time? I didn't see a check in the approve code that checks to see if a review is already approved if the approve routine is run?

Say two people view the approvals page (which would be generated with approval links before a review is approved), one approves a review, and the other does the same, would that account for "ghost" reviews appearing?
Arnie is offline   Reply With Quote
Old October 27th, 2005, 11:26 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
I do not see anything out of sorts but will check. This is a feature that was added to the product before I began developing it so I never did anything to this
__________________
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
2.91 Rebuild all thumbnails larrywcc ReviewPost Bug Reports 1 August 1st, 2006 08:20 AM
ImageMagick Rebuild Thumbnails TundraSoul Photopost Pro Installation & Upgrades 6 April 14th, 2005 11:27 AM
Rebuild Thumbnail rbl vBGallery Suggestions 3 December 28th, 2004 09:47 PM


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

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