![]() |
Limit Customer Review Length with Character Limit Indicator
Simple mod to limit the length of customer reviews. It shows an indication of how many characters are left. Made for v4.0.1.3
Adapted from http://www.dynamicdrive.com/dynamicindex16/limitinput.htm 1) Make a new file, skin1/reviewlimit.js Code:
/* 2) Add this code at the top of skin1/customer/product.tpl Code:
<script language=JavaScript1.3 src="{$SkinDir}/reviewlimit.js"></script> 3) In skin1/modules/Customer_Reviews/reviews.tpl Change Code:
<TEXTAREA cols="40" rows="4" name="review_message"></TEXTAREA> to Code:
<TEXTAREA cols="40" rows="4" name="review_message"></TEXTAREA> 255 being the character limit. Change to whatever length you want. :) |
awesome mod!!
looks & works great! - shannon |
BTW, if you want to allow reviews longer than 255 characters, you'll need to apply this SQL patch.
Code:
ALTER TABLE `xcart_product_reviews` CHANGE `message` `message` TEXT NOT NULL |
Quote:
I was looking for how to change reviews length. Know this is an older message, but it seems to still work on 4.0.17. Thanks for that! |
All times are GMT -8. The time now is 04:47 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.