But if you want the whole thing try :
Code:<div class="content"><?php echo nl2br(zen_output_string_protected(stripslashes($reviews->fields['reviews_text'])))?></div>
But if you want the whole thing try :
Code:<div class="content"><?php echo nl2br(zen_output_string_protected(stripslashes($reviews->fields['reviews_text'])))?></div>
Nick
iszent.com
I'd need to add something to the code that allows the review to take up multiple lines... increasing the 100 to 10000 seems to get rid of the '...' but still doesn't allow the full review to display.
Sorry. It seems to be done in the sql query as well. So, stick to my final version and have a look at:
includes/modules/pages/reviews/header_php.php
Have a look at line 17which truncates the reviews_text to 100. Works for me....Code:$reviews_query_raw = "SELECT r.reviews_id, left(rd.reviews_text, 100) AS reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, p.products_image, r.customers_name
Nick
iszent.com
And now that I have actually looked at what zen_break_string actually does I will take back what I originally said.
I made an assumption that it truncated the string after a certain number of characters. It doesn't. Ah, assumptions, mother of all ####-ups.
What it does is split up very long words to allow for word wrap and so that they don't break the layout. So, if a word is longer than 60 characters in the review it will break it up.
So, go back to the original version of the tpl_reviews_default file and make the edits I have suggested to the header_php.php file. You will want to put some limit in on this file (let's say 2000).
All that means is that in the tpl_reviews_default file you would want to change the 100 to 2000.
Sorry for messing you around. There is some phrase that involves assumptions making an ###### of u but I can't remember it now.
Nick
iszent.com
Hi Niccol,
You got it though....header_php.php........ line 17, changed rd.reviews_text, from 100 to 10000 and now thef full review text shows :-) Thank you for helping me out, I owe you one.......![]()
I have changed the number from 100 to 10000 in
includes/modules/pages/reviews/header_php.php
and in
includes/templates/yourtemplate/templates/tpl_reviews_default.php
but still the reviews are truncated
Im using Zen Cart 1.3.8a. Anybody got this working? or knows how to get it working? Any help is much appreciated.