rabbitseffort Posted July 2, 2006 Posted July 2, 2006 how can I set a maximum value on the reviews text? Maybe I need to add something to the config table in mysql? "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
Guest Posted July 3, 2006 Posted July 3, 2006 yes you could limit it. Try the catalog\product_review_write.php $rating = tep_db_prepare_input($HTTP_POST_VARS['rating']); $review = tep_db_prepare_input($HTTP_POST_VARS['review']); $error = false; if (strlen($review) < REVIEW_TEXT_MIN_LENGTH) { $error = true; $messageStack->add('review', JS_REVIEW_TEXT); } Just below add if (strlen($review) > 50) { $error = true; $messageStack->add('review', 'Too Many Characters); } Once it works you could also setup a configuration switch.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.