Results 1 to 2 of 2

Thread: Disable review rating

  1. #1
    Expired Customer gonesmith's Avatar
    Join Date
    Jun 2012
    Posts
    764
    Thanks
    50
    Thanked 202 Times in 137 Posts

    Disable review rating

    I want to disable the review rating but keep the reviews on my site. I tried using a filter hook in my child theme function.php
    Code:
    function noReviewRating() {
    	if ( jQuery('input[name="review_rating"]').val().length < 6 ) {
    		form.submit();
    	} else {
    		jQuery('#review-rating').after('<label for="review_rating" generated="true" class="error rating-error" style="display: block; ">The rating is required.</label>');
    		return false;
    	}		
    }
    
    add_filter('ensureReviewRating','noReviewRating');
    This didn't seem to have any effect. When I put that code in it is exactly the same as when it isn't in the functions.php. When I change the original function in Vantage I get a different message on a new page that says "You forgot to choose a rating." So it seems as thought the filter hook isn't actually filtering the function + there is obviously something else I need to change to make it work.
    Has anybody else managed this?

  2. #2
    Expired Customer gonesmith's Avatar
    Join Date
    Jun 2012
    Posts
    764
    Thanks
    50
    Thanked 202 Times in 137 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dimitris if review is disabled on listing, how to make add a review go away?
    By blueribbonnews in forum Report Vantage Bugs (Legacy)
    Replies: 4
    Last Post: August 10th, 2013, 02:52 AM
  2. How to add a 5 star rating to every ads?
    By harry0013 in forum ClassiPress General Discussion
    Replies: 2
    Last Post: May 7th, 2012, 04:12 PM
  3. Can not review uploaded photos in "review your listing"
    By ejewelrysource in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 7th, 2011, 03:27 PM
  4. Rating widget
    By nieuwbouwprojecten in forum Report JobRoller Bugs
    Replies: 3
    Last Post: July 4th, 2011, 11:02 AM