Jump to content
Sign in to follow this  

Review in products display

Recommended Posts

Hi All,

I've installed the Review in products display V1.0 and on the product_info.php page its not displaying line breaks and doesn't interpret html...


Has anyone else had this problem, or does anyone know how to fix it?


Appreciate your assitance


Share this post

Link to post
Share on other sites

I just installed Review in products display.. it works fine..



The problem is if the lengh of the written review text goes over 60 aphabets,

it extends the default box width which doesn't look good.


The orginal code source from catalog/product_reviews_info.php

<?php echo tep_break_string(nl2br(tep_output_string_protected($review['reviews_text'])), 60, '-<br>')


But, the code writer used htmlspecialchars($reviews_values['reviews_text'],)

<?php echo sprintf(tep_image(DIR_WS_IMAGES . 'stars_' . $reviews_values['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews_values['reviews_rating']))) . ' – <i>' . $reviews_values['customers_name'] . ', ' . $date_added . '</i><br>' . htmlspecialchars($reviews_values['reviews_text']) ?>


Macromedia Dreamweaver MX2004 says that the way of using html specialchars is used like this.

htmlspecialchars(string string, [int quote_style], [string charset])



Can anyone help me on this matter?

I'd like to limit the number of text to 60 aphabets.


I'll appreciate for any help.

Share this post

Link to post
Share on other sites
please help here..

i'm messing with this myself. If you lower it from 60 say 10 for poops and giggles it lowers the letter count per line. But it won't go higher than 60. So i'm thinking it's a limit you must raise in the myphpadmin section (dbase)


I'll let ya know later....

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this