WordPress.org

Forums

WP Customer Reviews
[resolved] ... Please make reviews at least a couple of sentences. (3 posts)

  1. Scott West
    Member
    Posted 3 years ago #

    I'm trying to shorten the number of required characters for the review. Any Ideas, I'm not nearly as smart as I thought I was this morning

    .

    "You must include a review. Please make reviews at least a couple of sentences."
    wp-customer-reviews.php *** `if (strlen(trim($this->p->ftext)) < 30) {
    $errors .= 'You must include a review. Please make reviews at least a couple of sentences.<br />';
    }` ***
    and

    wp-customer-reviews.js *** `if (newid === "ftext" && jQuery("#"+oldid).val().length < 30) {
    err.push("You must include a review. Please make reviews at least a couple of sentences.");` ***

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. wittmania
    Member
    Posted 3 years ago #

    Not sure if you solved this yet or not, but all you have to do is chance the number from 30 to zero and it will always validate regardless of the comment length.

  3. Scott West
    Member
    Posted 2 years ago #

    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Customer Reviews
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic