• Resolved ivan98589

    (@ivan98589)


    Hi! I`d like to have two independent review form for every post ([1] is it possible?).

    To do so I created this code below and inserted it through widget area (<a href=”https://www.ads-software.com/plugins/add-widget-after-content/&#8221; rel=”noopener” target=”_blank”>Add Widget After Content</a>):

    <hr class="wp-block-separator"/>
    
    <p class="has-text-color has-regular-font-size" style="color:#e5a800">Below you can see what our users think about the difficulty of this movie and the quality of its word set.</p>
    
    <div class="wp-block-columns">
    <div class="wp-block-column">
    <p>How is it difficult to get this movie on English? (higher is harder)</p>
    
    [site_reviews_summary assigned_to="post_id" category="743" hide="rating,bars" schema="true"]
    
    	<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
    
    [site_reviews_form assign_to="post_id" category="743" hide="content,name,email,terms,title"]
    </div>
    
    <div class="wp-block-column">
    <p>A rating of the quality of this word set (higher is more accurate):</p>
    
    [site_reviews_summary assigned_to="post_id" category="742" hide="rating,bars" schema="false"]
    
    <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
    
    [site_reviews_form assign_to="post_id" category="742" hide="content,name,email,terms,title"]
    	</div></div>

    Everything looks good, but an user can not submit reviews for both forms. Only one form is submitted, when an user fill both forms. If one form is submitted, another isn`t accessible, because “You have already submitted a review.”.

    I supposed [1] question can be resolved due to categories (I created and used one for each form), but it didn`t work out. [2] What can be a reason?

    p.s.
    I dont think it is Widget Area issue, because the straight insert to a post doesnt help.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    This is how the “Limit Reviews” feature works:

    When a review is submitted, Site Reviews checks if there are existing reviews by either username, ip address, or email (depending on which option you have chosen). If one or more reviews exist, then the review will not be submitted.

    If you are assigning reviews to either a category or a post_type, Site Reviews will do the same check as above, but only for reviews assigned to the selected post_type or category.

    However, if you are assigning reviews to both a category and post_type, this will not work as Site Reviews does a loose check meaning “look for this OR this” instead of “look for this AND this”.

    In other words it does this:

    Has this person submitted a review assigned to EITHER this post OR this category?

    Instead of this:

    Has this person submitted a review assigned to BOTH this post AND this category?

    For this reason, it’s not currently possible to do what you are trying to do.

    Plugin Author Gemini Labs

    (@geminilabs)

    I will add this to the list for possible inclusion in v5.0

    Thread Starter ivan98589

    (@ivan98589)

    It will be a huge improvement

    Hello,

    Im also looking forward for this implementation in next version.

    For now, is there a way (maybe a function) that we can use to check if the logged in user already submitted a review in a specific category?

    Thanks

    Plugin Author Gemini Labs

    (@geminilabs)

    Site Reviews v5.0 will do strict checking for review limits, i.e.

    Has this person submitted a review assigned to BOTH this post AND this category?

    It should be released in about a week.

    That’s great to here. Looking forward to it. Great work!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple reviews per post (category)’ is closed to new replies.