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

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 18th, 2005, 06:33 AM   #1 (permalink)
ncg
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 204
price paid not being put into database?

a user of mine sent me this message this morning:

Quote:

I've come across a small bug in the reviews section. When submitting a review the "Price Paid" doesn't get written to the database. (It did this 3 times in a row on 3 different reviews.)As the page automatically redirects after submitting a review, you can see the "Price Paid" says 'Not Indicated'. So the value got dropped somwhere.

However, the information is written and committed when doing an edit on the "Price Paid" field.
does anybody know anything about this? thanks!
ncg is offline   Reply With Quote
Old August 18th, 2005, 08:22 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
I will have to do some testing with 2.91

3.0 is about ready to be released but looking at 2.91 I dont see anything out of place

try commenting out this line in reviews.php and see if it gets written

if ( !is_numeric($price) ) $price = 0;
__________________
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 August 18th, 2005, 03:46 PM   #3 (permalink)
ncg
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 204
if 3.0 is about ready, ill just wait for that. its no big deal.
ncg is offline   Reply With Quote
Old August 18th, 2005, 04:06 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Your welcome to grab a copy and try it out by emailing me. It has not been released yet but I think you'll be surprised

RP3 (RP5.1) - Status

You would just upload all the files except config-inc.php and run the upgrade script
__________________
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 August 18th, 2005, 04:23 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Perhpas your user was entering a price in the format "$46.23"? If the data isn't numeric it'll get ignored by reviewpost and treated and junk and you'll experience the issue you found.
Arnie is offline   Reply With Quote
Old August 18th, 2005, 04:36 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
yeah well for 2.91 it looks okay but that was my suggestion

46.23 is a numeric variable so it would pass that query

try this

<?

$var="46.23";

if ( is_numeric($var) ) $var = "yes";

echo "$var";

?>


if you run that test script you will see 46.23 is a numeric value. $ is stripped from price a few lines above.
__________________
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; August 18th, 2005 at 04:41 PM.
Chuck S is offline   Reply With Quote
Old August 19th, 2005, 09:09 AM   #7 (permalink)
ncg
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 204
Quote:
Originally Posted by Arnie
Perhpas your user was entering a price in the format "$46.23"? If the data isn't numeric it'll get ignored by reviewpost and treated and junk and you'll experience the issue you found.
interesting. that might be a possibility. ill ask.
ncg 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
How to remove "price paid" field? sbb ReviewPost Installation & Upgrades 10 September 27th, 2005 04:29 PM
Reserve Price dcpaq2 Classifieds Suggestions 2 August 2nd, 2005 03:11 PM
Change value in the Price paid: $ wrang ReviewPost Suggestions 0 March 20th, 2005 03:59 AM
Change value in the Price paid: $ wrang ReviewPost Installation & Upgrades 2 January 2nd, 2005 07:48 AM
Up the price? Mephisteus Before You Buy 1 December 20th, 2004 09:29 AM


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

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