• Hi! Is it possible, to show the single Rating from one specific User ( The Topic creator ). I use this shortcode wihch work great….but I want to show only the Rating that are make from User with the ID 23

    [ratingwidget_toprated type=”pages” created_in=”all_time” direction=”ltr” max_items=”10″ min_votes=”1″ order=”DESC” order_by=”avgrate”]

    Is it possible to seperate the Vote from one Single User to alle Votings?

    Thank you

    https://www.ads-software.com/plugins/rating-widget/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Tribun

    (@3task)

    Please delete this topic, I have uninstall this Plugin. thx

    Thread Starter Tribun

    (@3task)

    All problems with the payment are resolved ( thx to Vova ) and I install this cool Plugin again.

    Please help me with this question.
    Thank you!

    Plugin Author Leo Fajardo

    (@leorw)

    Hi @3task,

    Sorry, it is currently not supported. You can modify this file /ratingwidget2/wp-content/plugins/rating-widget/view/site/top-rated.php to suit your own needs. Just search for this line: “$post_id = RatingWidgetPlugin::Urid2PostId($urid);” and you can check the post’s author from there.

    Please don’t forget to create a backup of your own version of toprated.php file before upgrading RatingWidget to the latest version.

    Thanks

    Thread Starter Tribun

    (@3task)

    Hi Leo! Thank you again!

    Can you make me a example how this line must look?
    For a List from the Top Rated Votes make my User ID 23 ?

    Thank you!

    Plugin Author Leo Fajardo

    (@leorw)

    Hi @3task,

    Just to clarify, you want to show only the pages created by user 23, right?

    Thread Starter Tribun

    (@3task)

    Yes.
    I want to make some Top Rated Chart Site.

    For example…we have a team with 6 Members.
    I want to show a Profil Site from each of this Member.
    On this a have a Tab with “Top Rated Moviecharts”.

    Member ID 23, Member ID 1, Member ID 8…..
    from all this Members I want to show his own make Ratings on the Movies.

    Plugin Author Leo Fajardo

    (@leorw)

    To show only the pages created by user 23, you can try the following code:

    $post_id = RatingWidgetPlugin::Urid2PostId($urid);
    $wp_object = get_post($post_id);
    
    if ( 23 == $wp_object->post_author ) {
    	$title = get_the_title($post_id);
    	$excerpt = ratingwidget()->GetPostExcerpt($wp_object, 15);
    	$permalink = get_permalink($post_id);
    	$thumbnail = ratingwidget()->GetPostImage($wp_object);
    } else {
    	$wp_object = null;
    }

    Let me know if that works.

    EDIT: added screenshot
    https://prntscr.com/7li2yb

    Thread Starter Tribun

    (@3task)

    Is it possible to add this as a new code?

    Becaus if i do so what you write I overwrite the code from yesterday you give me.

    It looks and works on that:
    with this code: https://www.cineglobe.de/charts/filmarchiv-charts/

    } else {
    $exclude_parent_ids = array(
    	69043,
    	74,
    	69874
    );
    
    $post_id = RatingWidgetPlugin::Urid2PostId($urid);
    $parent_post_id = wp_get_post_parent_id($post_id);
    if ( !in_array($parent_post_id, $exclude_parent_ids) && !in_array($post_id, $exclude_parent_ids) ) {
    	$wp_object = get_post($post_id);
    	$title = get_the_title($post_id);
    	$excerpt = ratingwidget()->GetPostExcerpt($wp_object, 30);
    	$permalink = get_permalink($post_id);
    	$thumbnail = ratingwidget()->GetPostImage($wp_object);
    }
    
    				}

    If I use now this:

    $post_id = RatingWidgetPlugin::Urid2PostId($urid);
    $wp_object = get_post($post_id);
    
    if ( 23 == $wp_object->post_author ) {
    	$title = get_the_title($post_id);
    	$excerpt = ratingwidget()->GetPostExcerpt($wp_object, 15);
    	$permalink = get_permalink($post_id);
    	$thumbnail = ratingwidget()->GetPostImage($wp_object);
    } else {
    	$wp_object = null;
    }

    dont work the things from yesterday?
    Is it possible to make this as a new function that both work the Top Rating from one Category AND the Top Rating from specific Users?

    Plugin Author Leo Fajardo

    (@leorw)

    Hi @3task,

    How about the following code?

    $exclude_parent_ids = array(
    	69043,
    	74,
    	69874
    );
    
    $post_id = RatingWidgetPlugin::Urid2PostId($urid);
    $parent_post_id = wp_get_post_parent_id($post_id);
    if ( !in_array($parent_post_id, $exclude_parent_ids) && !in_array($post_id, $exclude_parent_ids) ) {
    	$wp_object = get_post($post_id);
    	if ( 23 == $wp_object->post_author ) {
    		$title = get_the_title($post_id);
    		$excerpt = ratingwidget()->GetPostExcerpt($wp_object, 15);
    		$permalink = get_permalink($post_id);
    		$thumbnail = ratingwidget()->GetPostImage($wp_object);
    	} else {
    		$wp_object = null;
    	}
    }

    Screenshot: https://prntscr.com/7liez9

    If you need more customization options, please contact us using the form here: https://rating-widget.com/contact/

    Thanks

    Thread Starter Tribun

    (@3task)

    Dont work yet. My code:

    } else {
    $exclude_parent_ids = array(
    	69043,
    	74,
    	69874
    );
    
    $post_id = RatingWidgetPlugin::Urid2PostId($urid);
    $parent_post_id = wp_get_post_parent_id($post_id);
    if ( !in_array($parent_post_id, $exclude_parent_ids) && !in_array($post_id, $exclude_parent_ids) ) {
    	$wp_object = get_post($post_id);
    	if ( 1 == $wp_object->post_author ) {
    	$title = get_the_title($post_id);
    	$excerpt = ratingwidget()->GetPostExcerpt($wp_object, 30);
    	$permalink = get_permalink($post_id);
    	$thumbnail = ratingwidget()->GetPostImage($wp_object);
    }
    
    				}
    
    				if ($wp_object) { // Skip null object

    I take ID 1 ( this is my own ID ) for test it:
    https://www.cineglobe.de/team/tribun/meine-votings/

    and the “normal” Top Rate List also dont work with this code now:
    https://www.cineglobe.de/charts/filmarchiv-charts/

    Plugin Author Leo Fajardo

    (@leorw)

    Hi @3task,

    Sorry about that. Please revert to the previous version of the code. Since it is beyond the scope of our support and it requires our customization team to look at it, if you are interested, you can contact us using the form here: https://rating-widget.com/contact/. But there’s a cover charge for the work.

    Thanks

    Thread Starter Tribun

    (@3task)

    Hi Leo!
    You have help me a lot with the other Topic….can you please try again tu help me here? It is a non profit site, and I have pay for 3 month prof. Plan. I dont want to pay more for this….but maybe you can help me again, please?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Show Rating only from one User ID’ is closed to new replies.