+ Reply to Thread
Results 1 to 6 of 6

Thread: [FIXED] v1.0.1 and prior - Rich text editor should NOT appear on Reviews field

  1. #1
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2

    [FIXED] v1.0.1 and prior - Rich text editor should NOT appear on Reviews field

    It appears that <p> HTML code messes with the formatting of the review when it's displayed on the screen. Below are 2 examples from my site. The first is a single line review created by a customer...displays just fine. The second is a review that I "added to" using the rich text editor in the control panel. The editor added <p> tags and those now show up in the review and screw up the display. Any way to fix this???

    http://www.itpdiesel.com/store.php?c...on=show_detail

    http://www.itpdiesel.com/store.php?c...on=show_detail

    Also, would it be possible to get the reviews to display in the shaded "talk box" like the testimonials do?

  2. #2
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    For some reason the rich text editor is saving <P> as &lt;P&gt; in the database...so the browser isn't interpreting it correctly when it displays the review. Hope that helps track it down.

    FYI...I was able to duplicate this on your DEMO2 site by editing the review of the iPod, going to the end of the review, pressing enter, entering a line of text and saving the updated review.

  3. #3
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    Anything on this one yet Jamie?

  4. #4
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    I went back to your DEMO2 site and found an example of the odd behavior.

    http://www.squirrelcart.com/demo2/re...n-options/117/

    That review is 2 "paragraphs", but when you view it in the admin control panel it's one big long paragraph with NO apparent carriage return or breaks (same when looking at rich text editor or code). What the heck is splitting the 2 paragraphs?

    If I edit a review like the one on my site that's giving me problems, the editor inserts <p></p> code. If I take that out, it's all one paragraph. I'm at a loss.

    For what it's worth, this problem doesn't exist in testimonials as you can see here: http://www.itpdiesel.com/store.php?testimonials[action]=read

  5. #5
    Client
    Join Date
    Dec 2004
    Location
    Phoenix, AZ
    Posts
    337
    Squirrelcart version
    v3.3.2
    BTW...I've already got the reviews working in the "talk bubble" so ignore that part of the post.

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    This is a bug. The problem is that you are not supposed to see the rich text editor for this field. It was added to it in error. Reviews are submitted by customers, and by design are supposed to contain no HTML whatsoever as a security measure.

    The storefront does not allow you to submit a review with any HTML in it, and the control panel is supposed to do the same thing.

    This is resolved in the next release. You can fix this in v1.0.0 and 1.0.1 by running the following query in the MySQL query tool in your control panel:
    Code:
    UPDATE `Field_Definition` SET `Width` = '640',`Use_Rich_Text` = '0',`Last_Modified` = '2008-07-09 09:21:00' WHERE `record_number` = 959;
    UPDATE `Field_Set` SET `Field_Set_Class` = '',`Last_Modified` = '2008-07-09 09:03:00' WHERE `record_number` = 187;

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts