Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reviews - Show all text on reviews.php page


donna_h

Recommended Posts

I want to show the whole text of a review on the reviews.php page.

 

I have found the code in that file which breaks the lines into 60 char each, and then appends the .. at char[100]

 

I also reviewed the product_reviews_info.php file which does display the whole text. Copying the relevant line

 

<?php echo tep_break_string(nl2br(tep_output_string_protected($review['reviews_text'])), 60, '-<br>') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $review['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])) . '</i>'; ?>

 

 

at line 94 into the reviews.php page just removes ALL the text.

 

:blink:

 

TIA.

Link to comment
Share on other sites

OK, I figured it out. Wasn't a PHP function doing the limitation of the reviews_text, but a SQL one instead. Fixed the SELECT statement near the top of the file...

 

 

So What did you do? I need to show the whole reviews also, and it seems to only show the first part... very annoying...

Link to comment
Share on other sites

  • 5 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...