WordPress.org

Ready to get started?Download WordPress

Forums

New Plugin: WP-PostRatings (74 posts)

  1. Lester Chan
    Member
    Posted 8 years ago #

    This plugin will enabke you to have a ratings system for your post. No multiple ratings are allowed (checking is done against IP and Cookie). It makes use of WP post mata data.

    Download: http://www.lesterchan.net/others/downloads.php?id=20
    Demo: http://www.lesterchan.net/wordpress

  2. katie1
    Member
    Posted 8 years ago #

    Happy to test.

  3. sandie
    Member
    Posted 8 years ago #

    looks great

  4. Lester Chan
    Member
    Posted 8 years ago #

    updated with dl URL.

  5. Kahil
    Member
    Posted 8 years ago #

    just a suggestion...

    it'd be so much better if it were an easier install, i.e. where you just have to upload to plugins folder and activate.

    otherwise its good

  6. Lester Chan
    Member
    Posted 8 years ago #

    point noted, all feedbacks are welcome, this is not the final one. Next release shall fix that.

  7. Lester Chan
    Member
    Posted 8 years ago #

    I forgot to include in the install on how to use it. Will do it when I get home.

    To display the ratings in index.php:
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>

    To display the ratings voting image in single.php or page.php:
    <?php if(function_exists('the_ratings')) { the_ratings_vote(); } ?>

  8. Kahil
    Member
    Posted 8 years ago #

    something i've seen on other websites is a rating system using actual stars. now, on my site on a page i am using a star based plugin, but it requires you to manually put the code in for it and its based on a half a star equals one point on a base ten scale...so that a rating of 7 will give you three and a half stars out of five. it'd be great if there were a combo of your plugin and that one where its automatic... and even if it still did base ten/half star point system, at lease it'd be automatic... i love how your plugin can be used for ratings like that, but the bar just isn't graphically/easy noticable like a star system would be...

    the plugin for polls that i'm using is the democracy one. i like the option page for all the polls, but you can only use it in the sidebar...which kinda sucks...

    so with an easier install and a combo or option of bar or stars would be perfect. it would make it very user friendly and flexible enough for almost any usage...

    thanks

  9. Lester Chan
    Member
    Posted 8 years ago #

    okie, so I replace it with stars. Maybe I should include both stars and bars options inside it.

  10. Kahil
    Member
    Posted 8 years ago #

    yup!!

    the bars are perfect for polls, a star or some other graphic would be better for a rating system.

    the star plugin i'm using on my site review page is the PulsStern plugin. it lets you customize the stars with the code you enter. i guess the new version even lets you change the base number and have as many stars as you want and it also lets you make the stars any color you want. maybe taking a look at that plugin might help?

    thanks

  11. raasm007
    Member
    Posted 8 years ago #

    Thanks ...I was looking for something similar

  12. Lester Chan
    Member
    Posted 8 years ago #

    Kahil: I was thinking of something lighter as in no need to use the options database at all, just modify the plugin itself.

  13. cranker
    Member
    Posted 8 years ago #

    Lester, how about adding to your wp-email plugin some type of way to display "most emailed" in the sidebar?

  14. The_ROb
    Member
    Posted 8 years ago #

    Yes, a 5 point rating system w/ stars would be cool. I like the plug-in, nice job.

  15. Lester Chan
    Member
    Posted 8 years ago #

    cranker: it is possible. Nice idea, currently youc an use it with wp-stats to show the most emailed post. Later on I will add most rated post, most viewed post.

    the_rob: thanks

  16. Lester Chan
    Member
    Posted 8 years ago #

    Ops, sorry for double posting, damn internet here lag

  17. cranker
    Member
    Posted 8 years ago #

    I had no idea wp-stats had most emailed in it! Awesome job, Lester.

    I broke out the most emailed code into a separate plugin

    <?php
    /*
    Plugin Name: Get Most Emailed
    Plugin URI: http://www.lesterchan.net/
    Description: Get most emailed post using Lester Chan's wp-email plugin.
    Author: Lester Chan
    Version: 1.0
    Author URI: http://www.lesterchan.net/
    */

    ### Function: Get Most Emailed Post
    function get_mostemailed($limit = 5) {
    global $wpdb, $post;
    if(function_exists('wp_email')) {
    $mostemailed= $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_date, COUNT($wpdb-

    >email.email_postid) AS 'email_total' FROM $wpdb->email LEFT JOIN $wpdb->posts ON $wpdb->email.email_postid = $wpdb->posts.ID

    WHERE post_date < '".current_time('mysql')."' AND (post_status = 'publish' OR post_status = 'static') AND post_password = ''

    GROUP BY $wpdb->email.email_postid ORDER BY email_total DESC LIMIT $limit");
    if($mostemailed) {
    foreach ($mostemailed as $post) {
    $post_title = htmlspecialchars(stripslashes($post->post_title));
    $email_total = intval($post->email_total);
    echo "

  18. $post_title ($email_total) "."
  19. ";
    }
    } else {
    echo '
  20. '.__('N/A').'
  21. ';
    }
    }
    } ; ?>

    Call it in the sidebar using

    <?php get_mostemailed(); ?>

  • Lester Chan
    Member
    Posted 8 years ago #

    I will include this in email.php of the plugin =)

  • tanster
    Member
    Posted 8 years ago #

    Hi Kahil, I am using a star rating system at my site Office Tally to rate episodes of the TV show "The Office." The summary page is at http://www.officetally.com/?page_id=33.

    Hi Lester, I am looking forward to also trying out your plugin as well -- I'm interested in your IP checking functionality. :) Thanks!

  • Kahil
    Member
    Posted 8 years ago #

    hmmm...

    its ok...

    it'd be better if it would output the results (the stars) in a fractional view. by that i mean if the overal votes give something an 8.5, then it will show eight and a half stars, etc...

    also, i'm not sure if it does or not, i like to be able to call the results (in graphical form) on other sections/pages/etc...

    does it let you change the number of stars to something like, five stars total?

    sorry for all the questions...

    and i too look forward to the new version of your plugins GamerZ

    Thank you!!!

  • tanster
    Member
    Posted 8 years ago #

    Hi Kahil,

    Yes, I agree with you; I would also like to see a fractional view of the stars.

    Yes, you can specify how many stars you want. The plugin's default is 5; I changed it to 10.

    Yes, you can include the stars on other pages. I have it on index.php, search.php, single.php, and archive.php.

    This is the Votio plugin, by the way.

  • Lester Chan
    Member
    Posted 8 years ago #

    The default is 5 stars, okie, Maybe I can set to use how many stars. Regarding the fractional, will it be rounded off? 0.5 is not a problem.

  • Kahil
    Member
    Posted 8 years ago #

    good question GamerZ!

    maybe < .25 rounds down to the nearest whole star?

    and .75 < rounds up? and then between that is for the half star value?

    did that make sense? lol

  • Lester Chan
    Member
    Posted 8 years ago #

    yap, regarding the number of stars, max is 10, is it okie? And there will be 2 options in the plugin which u need to edit manually if u want to change, or u prefer the options way which requires extra load. I want to make this as light as possible.

    Options
    -------
    1. You can choose bar, squares or stars
    2. Specify the number of stars, from 1 to 10?

  • Kahil
    Member
    Posted 8 years ago #

    yeah, i think that most things like this are done with either five or ten.

    i love the idea of bar, square or stars...

    what about their color? could it be made so that we all can choose the color? also, would the options make it so that when you choose bar, square or star that all of the rating things are that option? or could it be individually based so that we could have one that was bars and then somewhere else have one that is stars or squares? also, like the plugin that tanster mentioned, i like how it also gives a small text readout of the exact rating, etc.

    i was thinking that all these little options would be configurable in the code we enter to make it visible... something like <php> star,5,blue </php>
    (or whatever the right sintax is...lol...no expert here...sorry)

    sorry for all the questions...

    thank you

  • tanster
    Member
    Posted 8 years ago #

    10 stars is perfect. Editing manually is fine. Thank you!

  • Lester Chan
    Member
    Posted 8 years ago #

    colour? it will be image, you can create your own rating image as use it. For example, if you create a set call 'test' you can just change the rating image to test'.

    WHat kind of text output would be good? any examples?

  • Kahil
    Member
    Posted 8 years ago #

    did you look at that PulsSterne plugin? the way you enter the code for different colors? that way we could have them any color we want without having to make new images?

    just an idea... maybe an option? where it uses images by default, but if you enter in a specific color code it uses that?

    as for the text output thing... similar to what that plugin that tanster mentioned? where in small text under the stars it gives you the exact rating (i.e. 9.47) and the total number of votes?

    thank you

  • Lester Chan
    Member
    Posted 8 years ago #

    Kahil: point noted. I try making custom individual post, but it is too heavy on the core itself. The best I can go is to make the image individual/globally but not the max rating.

  • Kahil
    Member
    Posted 8 years ago #

    what do you mean by "individual/globally but not the max rating."?

    sorry...

  • 123

    Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags