 | |  | | | ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost. |
March 21st, 2005, 10: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 11:58 PM.
|
| |
March 22nd, 2005, 10:59 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,720
|
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?
|
| |
March 24th, 2005, 12:13 AM
|
#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"
|
| |
March 30th, 2005, 02: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.
Last edited by paratek; March 30th, 2005 at 03:10 PM.
|
| |
March 30th, 2005, 04: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.
|
| |
March 30th, 2005, 04: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.
|
| |
March 30th, 2005, 05: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?
|
| |
March 30th, 2005, 06:39 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,720
|
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
Last edited by Chuck S; March 30th, 2005 at 06:41 PM.
|
| |
March 30th, 2005, 07: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 | |
| |
March 30th, 2005, 07:35 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,720
|
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));
|
| |
March 30th, 2005, 10: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 10:12 PM.
|
| |
March 31st, 2005, 09:26 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,720
|
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?
|
| |
March 31st, 2005, 09: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.
|
| |
March 31st, 2005, 10:03 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,720
|
No Problem LOL Now you know why companies dont support hacking |
| |
March 31st, 2005, 12:06 PM
|
#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.
|
| |
April 1st, 2005, 10:10 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,720
|
Same table reviews
couple fields over the the review itself
|
| |
April 6th, 2005, 02: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.
|
| |
April 6th, 2005, 09:03 AM
|
#18 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
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. |
| |
April 7th, 2005, 06:27 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: Northern California
Posts: 383
|
Thanks Michael
|
| |
April 7th, 2005, 11:42 AM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 109
|
Cool. Thanks.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 05:53 AM. | |