Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Review in products display


bizzo

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

Biz

Link to comment
Share on other sites

  • 3 months later...

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.

Link to comment
Share on other sites

  • 5 weeks later...
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....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...