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 March 21st, 2005, 09:15 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 109
Backslashs comments bug

I've noticed that if you use apostrophes in comments, it adds a backslash before the apostrophe when you post. I guess an expression is needed here.
I think this also occurs with reviews.

Last edited by caliman; March 23rd, 2005 at 10:58 PM.
caliman is offline   Reply With Quote
Old March 22nd, 2005, 09:59 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Interesting thing is yes slashes are suppose to be added to the comment when it goes to the database and I show we strip them out in showphoto when they are displayed.

$commenttextline = convert_markups(stripslashes($commenttextline));

What does a typical database comment look like in your database? Is your comment being entered with multiple slashes?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2005, 11:13 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 109
Sorry Omega, please move this to the reviews bug page.

"Pros: Easy to use, small foot print, good price.
Cons: It\'s good, but I think it"
caliman is offline   Reply With Quote
Old March 30th, 2005, 01:57 PM   #4 (permalink)
Member
 
Join Date: Mar 2003
Location: Hamilton, MA
Posts: 68
I am getting this same thing in Photopost. Attached is what my database looks like with the slashes in the comments.
Attached Images
File Type: jpg slashes.jpg (97.2 KB, 13 views)

Last edited by paratek; March 30th, 2005 at 02:10 PM.
paratek is offline   Reply With Quote
Old March 30th, 2005, 03:02 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 109
I think it's supposed to do that. I think it handles general comments in posts ok and when it displays them it looks fine.

But the PROS/CONS fields are another story.
caliman is offline   Reply With Quote
Old March 30th, 2005, 03:29 PM   #6 (permalink)
Member
 
Join Date: Mar 2003
Location: Hamilton, MA
Posts: 68
No, it is not handling them right....the slashes are dispalyed as well. I have to go through the database and take them out.
paratek is offline   Reply With Quote
Old March 30th, 2005, 04:21 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 109
Ugh. That's a little different than my problem. Do you get them in the Pro/Con fields too?
caliman is offline   Reply With Quote
Old March 30th, 2005, 05:39 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
I asked a question above noone ever answered.

I show the proper use of addslashes and stripslashes in the comments.

How many stripslashes are in your database for a typical character that needs it. There is some users who have some mysql setting that like triples the normal use of addslash and that might be the issue

Same thing on pro's and con's I show this in showproduct

$cons[$itemnum] = stripslashes($consline);
$pros[$itemnum] = stripslashes($prosline);


so I really need to see an example of how the database is storing it
__________________
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; March 30th, 2005 at 05:41 PM.
Chuck S is online now   Reply With Quote
Old March 30th, 2005, 06:29 PM   #9 (permalink)
Member
 
Join Date: Mar 2003
Location: Hamilton, MA
Posts: 68
Chuck,

I attached a screen shot in my post a few above of my database as it looks through myphpadmin that shows the slashes. I'm sorry, i thought that was what you asked for.

Quote:
Originally Posted by omegatron
I asked a question above noone ever answered.

so I really need to see an example of how the database is storing it
paratek is offline   Reply With Quote
Old March 30th, 2005, 06:35 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Paratek yep did not see your attachment. You have one slash when is normal and we remove that upon install

Do you not have this in showproduct.php

$commenttextline = convert_markups(stripslashes($commenttextline));
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 30th, 2005, 09:08 PM   #11 (permalink)
Member
 
Join Date: Mar 2003
Location: Hamilton, MA
Posts: 68
Oh shoot, Chuck i thought i was in the photopost forum on this. I did a search and posted this in the wrong spot. My problem is with photopost. Sorry

but i do have this in showphoto.php

$commenttextline = convert_markups(stripslashes($commenttextline));

Last edited by paratek; March 30th, 2005 at 09:12 PM.
paratek is offline   Reply With Quote
Old March 31st, 2005, 08:26 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
No problem but you should not have slashes if you only have one slash which is normal in the database. Can you post a url to look at?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 31st, 2005, 08:56 AM   #13 (permalink)
Member
 
Join Date: Mar 2003
Location: Hamilton, MA
Posts: 68
You know what, I added another comment with an apostrophe. when i view it in photopost it displays correctly, the slash has been stripped. When i view it using Toney's comshow.php is when it is showing up. So it is Toney's fault, not yours..lol
I'll check with him. Sorry for the trouble Chuck.
paratek is offline   Reply With Quote
Old March 31st, 2005, 09:03 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
No Problem LOL Now you know why companies dont support hacking
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 31st, 2005, 11:06 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 109
omega what table has the pros/cons info? I'd like to see how it's storing the slashes.
caliman is offline   Reply With Quote
Old April 1st, 2005, 09:10 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Same table reviews

couple fields over the the review itself
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 6th, 2005, 01:47 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Jun 2002
Location: Northern California
Posts: 383
There are still some slashes problems!

Quote:
Originally Posted by omegatron
show the proper use of addslashes and stripslashes in the comments.
The comment field itself is okay but I think it's the exception. Unfortunately there are still some addslashes problems with various fields. (Review PRO & CON, user-specified fields,) Try entering these in a review.

Positive aspects of the product (pros): it's a test
Negative aspects of the product (cons): it's a test

Now click Edit and it looks like this:

it\'s a test
it\'s a test

Submit it and it's like this

Pros: it\'s a test
Cons: it\'s a test


Edit it and it's like this

Pros: it\\\'s a test
Cons: it\\\'s a test

etc.
memobug is offline   Reply With Quote
Old April 6th, 2005, 08:03 AM   #18 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
In reviews.php at line 133, find and add the code in bold:

Code:
Content visible to verified customers only.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old April 7th, 2005, 05:27 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Jun 2002
Location: Northern California
Posts: 383
Thanks Michael
memobug is offline   Reply With Quote
Old April 7th, 2005, 10:42 AM   #20 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 109
Cool. Thanks.
caliman 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
no <br> in comments(NOT A BUG) dontom Photopost Pro Bug Reports 11 February 27th, 2009 02:16 PM
Where's the latest comments section?(NOT A BUG) Johnny Doomo Photopost Pro Bug Reports 14 October 10th, 2005 03:28 PM
User Comments and Dates(NOT A BUG) CaddisNJF Photopost Pro Bug Reports 16 September 20th, 2005 09:19 AM
Error Code when Users Post Comments(NOT A BUG) rcwild Photopost Pro Bug Reports 8 September 5th, 2005 12:13 PM


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

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