donna_h Posted February 19, 2009 Share Posted February 19, 2009 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 More sharing options...
donna_h Posted February 20, 2009 Author Share Posted February 20, 2009 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... Link to comment Share on other sites More sharing options...
noitalever Posted February 26, 2009 Share Posted February 26, 2009 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 More sharing options...
jdw814 Posted July 29, 2009 Share Posted July 29, 2009 I found this was helpful with this same problem.... http://www.oscommerce.com/forums/index.php?showtopic=323670&st=0 ~Julie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.