Support » Plugin: Rate my Post - WP Rating System » Display self voted posts, with stars?

  • Hi Blaz,
    first, it’s a great plugin! Is it possible to create a widget or shortcode that allows me to show only the posts I have rated and the stars I have given? (More rating, to more post, in one page it possible?)
    Best regards,
    koikaam

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Blaz K.

    (@blazk)

    Hi @koikaam,

    I’m happy you like the plugin. You mean something like the top rated posts widget but that only takes into account your/admin ratings?

    Blaz

    🙂 Thank you for a quick reply.

    1. Display rate my post after the_content. This work perfectly!
    2. I would like display the [ratemypost] after posts, if on one page is more posts.
    3. I added the shortcode after (“Read more”) button in my theme, but [ratemypost] display only by first post. (for example with this plugin: Display Posts – Easy lists, grids, navigation, and more)

    Can you help me, how can i add [ratemypost] shortcode if is would like multipe post (multipe row) display on one page site?

    Thank you! 🙂

    Plugin Author Blaz K.

    (@blazk)

    Hi @koikaam,

    this is a bit tricky because the current design of the plugin allows only one rating widget on a single web page. It’s in my plan to redesign the plugin so that it will be possible to have more than one rating widget on a single web page but I don’t have an ETA yet 🙂 Nevertheless, in one of the future versions.

    Regards,
    Blaz

    Hi Blaz,

    Thank you so much! 🙂

    Maybe there is a way to have at least one message (String) if the user are voted? Or is it the same problem asto “have more than one rating widget”?

    So:
    1. post on one page:
    First post Title
    First post Content
    Rate my post string: “You already voted!”;
    2. post on one page:
    Second post Title
    Second post Content
    Rate my post string: “You already voted!”;
    3. post on one page:
    Third post Title
    Third post Content
    Rate my post string: “You have not voted this post yet!”;

    Thank you! 🙂

    Regards,
    koikaam

    Plugin Author Blaz K.

    (@blazk)

    @koikaam,

    it’s unfortunately the same problem :/ I mean you could check for cookies with custom js, but I guess it would require quite some work to handle it properly 🙂

    Thanks for your understanding.

    Blaz

    Hi Blaz,

    thank you! 🙂

    I’m understand. So I write custom js check for cookies, and display self voted posts to one page rate my post. If i have solution, publish here. 😉

    Refards,
    koikaam

    Hi Blaz,

    with my custom function work perfectly. 🙂

    I have a make shortcode, and pasted to my theme after “Read More” button.

    function get_cookies()
    {
    global $post;
    $found = false;
    if (isset($_COOKIE[‘rmp-rate’])) {
    $found = in_array($post->ID . ”, explode(‘,’, urldecode($_COOKIE[‘rmp-rate’])));
    }
    if ($found) {
    echo ‘<div class=”rated”>This post is rated.</div>’;
    } else {
    echo ‘<div class=”not_rated”>This post is not rated yet.</div>’;
    }
    }
    add_shortcode( ‘cookies’, ‘get_cookies’ );

    Regards,
    koikaam

    Plugin Author Blaz K.

    (@blazk)

    Great to hear that and thanks for sharing! 🙂

    Regards,
    Blaz

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display self voted posts, with stars?’ is closed to new replies.