User Rating & Feedback Tutorial

So, here we are going to discuss about how to use User Rating & Feedback plugin easily with your classipress site.


1. Buy "user rating & feedback" plugin from our classipress products

2. Login to your site admin area and install as normal plugin

Author (Profile) page -

To add Feedback & Rating at User profile -

> Open author.php file

> Find <p><?php echo $curauth->user_description; ?></p> line , around 60 line

> After that line add these codes -


<!-- Feedback and rating -->

<h3 class="dotted"><?php _e('Feedback & Rating','appthemes'); ?></h3>

<?php echo Simple_Rating::get_rating( $curauth->ID ); ?>

<?php echo Simple_Rating::get_reviews( $curauth->ID); ?>


It will showup users current rating and all feedbacks


To add rating button:


> open sidebar-ad.php file

> find - <li><span><?php _e('Member Since:','appthemes');?></span> <?php echo date_i18n( get_option('date_format'), strtotime( get_the_author_meta('user_registered') ) ); ?></li>

> after this line add this -

<!-- Feedback and rating -->

<li><?php Simple_Rating::form( $post->post_author ); ?></li>

It will showup a rating button, so users can give rating and feedback.


More userfull Hints:

To insert the form:

<?php Simple_Rating::form( $user_id ); ?>


Display Rating:

<?php echo Simple_Rating::get_rating( $user_id ); ?>


Display Reviews:

<?php echo Simple_Rating::get_reviews( $user_id ); ?>


Get reviews as a variable without displaying it: it will return object.

<?php $reviews = Simple_Rating::get_reviews( $user_id, false ); ?>


NOTE:

$user_id is the the users ID. so if you want to show the users rating, you need to pass the actual

user id.

 

Was this answer helpful?

 Print this Article

Also Read

PM (Personal Message) feature for the classipress users

So many users were looking for this solution. Here i am using an existing plugin called...

Need Help with

Deciding?

Talk to one of our hosting specialist who will review your needs and propose a tailored hosting solution that will match your specific business reality and needs.

need help