All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Tips & Tricks For WP-PostRatings  (Read 55935 times)

0 Members and 1 Guest are viewing this topic.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #40 on: 03 September 2008, 03:35 »
Yes
Code: [Select]
get_most_rated_range_category($time = '1 day', $category_id = 0, $mode = '', $limit = 10, $chars = 0, $display = true)
Code: [Select]
get_highest_rated_range_category($time = '1 day', $category_id = 0, $mode = '', $limit = 10, $chars = 0, $display = true)

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline rashed

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #41 on: 04 September 2008, 03:12 »
Thanks a lot. ;D

Offline rashed

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #42 on: 04 September 2008, 03:20 »
I used the code like below. Its not working. :(


Code: [Select]
<?php if (function_exists('get_most_rated_range_category($time = '1 day', $category_id = 0, $mode = '', $limit = 

10, $chars = 0, $display = true)'
)): ?>

   <ul>
      <?php et_most_rated_range_category(); ?>
   </ul>
<?php endif; ?>

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #43 on: 04 September 2008, 04:45 »
Code: [Select]
<?php if (function_exists('get_most_rated_range_category')): ?>
   <ul>
      <?php get_most_rated_range_category('1 day'0'both'10); ?>
   </ul>
<?php endif; ?>

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline rashed

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #44 on: 04 September 2008, 10:07 »
Great! Thanks a lot. I am gonna check it and let u know about the outcome.

Thanks again. :)

Offline rashed

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #45 on: 04 September 2008, 20:02 »
Ya! It works. Thanks again. :D

Offline PhotobucketWhores

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #46 on: 08 October 2008, 06:48 »
How would we get these to work as direct links off the domain

For example, I currently have [domain]/?sortby=highest_rated&amp;orderby=desc

How can I change that to the other options I'm looking for, specificially; lowest rated first, oldest, newest, most rated, least rated, and then IN ADDITION to sorting all posts, I was hoping to have the ability to sort by all those options ONLY in the specific category, which might be tricky cause I have a function where you can select multiple categories at once.

Thanks in advance, and great work on the plug-in!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #47 on: 08 October 2008, 09:23 »
Lowest Rated
?sortby=highest_rated&amp;orderby=asc
Highest Rated
?sortby=highest_rated&amp;orderby=desc

Most Rated
?sortby=most_rated&amp;orderby=desc
Least Rated
?sortby=most_rated&amp;orderby=asc

Category sorting is not possible, unless your link is a category page by default like [domain]/category/test/?sortby=most_rated&amp;orderby=desc

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline PhotobucketWhores

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #48 on: 08 October 2008, 19:24 »
I assumed all those links would work, the sort by DESCENDING works for me, but not ASCENDING. Any reason why that reverse order wouldnt work? Am I possibly missing a line of code in the wp-postratings.php?

/\ SCRATCH THAT

I figured out the problem I guess... IF you want to use the ASC, at least with my page, you need to use: ?sortby=most_rated&orderby=asc&paged=1

The paged=1 must be put there or for some reason it will display descending all over again.
Thanks so much for the help!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #49 on: 09 October 2008, 01:14 »
Ops my bad, in WP-PostRatings 1.31, it should be "r_sortby" and "r_orderby"

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline superann

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #50 on: 20 October 2008, 16:05 »
hmm not at the moment, why would user reset their own vote? Normally ratings system seldom have that feature.


Hi Lester, thanks for the great plugin! Best of the post ratings plugins I've investigated by far. I'd also like to throw in my vote to allow users to change/reset their own vote/rating. I'd like to use your plugin to provide a rating system for a review site of sorts, and since a user's opinion may change over time, it would only make sense to allow a user to update his/her rating. This would allow it to work in the same way as the bbpress ratings plugin which wordpress.org also uses to allow users to rate (and re-rate) plugins.

If you think you might (or already do) have plans to place this functionality into the plugin but it's sort of far off your schedule, I'd also be happy to help out with the implementation. Maybe if you already know how exactly what you'd like to modify you can point me in the right direction, or I can also just figure it out. Just don't want to duplicate any work or make the effort if this feature might be coming soon in your official release...

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #51 on: 20 October 2008, 16:11 »
But that would be too much of a hassle, besides the rating at WP requires you to login first before rating, whereas for this there can be a possibility of a guest user rating as well and there is no way to keep track of it.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline doug102938

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #52 on: 23 October 2008, 13:37 »
I am trying to use this code here

<?php if(function_exists('the_ratings')) {
                  /* Little PostRatings Mod */
/* Replaces all <div> tags with <span> tags to fix display problems on some themes */
ob_start();
the_ratings();
$remove_divs = ob_get_contents();
ob_end_clean();
echo str_replace('div', 'span', $remove_divs);

?>

and it works and fixes the issue it is intended to fix ( the ratings system going to its own line.)  I have this code placed above my excerpt and now it creates an annoying space between to 2 and i can't seem to get ride of it. any ideas?

Lastest version of this plugin and its wordpress 2.6.1

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #53 on: 23 October 2008, 13:39 »
You can just use <?php the_ratings('span'); ?> to call the ratings function.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline trig338

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #54 on: 02 June 2009, 09:43 »
Hi,
Is there a way to insert multiple ratings in one post/page? We want readers to vote for different pieces in an article (ie a music review with 15 songs).

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #55 on: 02 June 2009, 15:07 »
nope

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline duplosion

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #56 on: 10 June 2009, 00:59 »
Is there a way to paginate a list of the 100 highest rated posts?

The posts I found on the subject are a couple years old and no longer seem relevant.

PS: I'm using your pagenavi plugin.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Tips & Tricks For WP-PostRatings
« Reply #57 on: 10 June 2009, 01:08 »
Nope not possible, unless you create a page template of it and use query_post() function to display it and then use PageNavi. I have not tested this method yet, so it is just theory only

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline nv1962

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #58 on: 12 June 2009, 22:23 »
Here's a tip, for those using star ratings, so that the displayed row of stars shows properly, at the same height of line as the text that follows it (i.e. "x votes, average x.xx") as such tiny images often end up slightly higher than the text on the same line:

In postratings-css.css find and change the CSS for images in the post-ratings class as follows:

Code: [Select]
.post-ratings img, .post-ratings-loading img, .post-ratings-image img {
border:0 none;
margin:0 0 -3px !important;
padding:0;
}

It's the negative bottom margin of -3px that'll do the trick.

For stars shown in a widget (i.e. with "highest rated"), you should modify the CSS for the post-ratings-image class as follows:

Code: [Select]
.post-ratings-image {
border: 0px;
margin:0 0 -3px !important;
padding:0;
}

That way, the stars line up with the text!

Note: in either of these two, the vertical (bottom) margin may need adjusting, depending on the font type and size you use, so it could be -5px for large fonts, or -2px for smaller ones.

Hope that's useful.

Offline duplosion

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Tips & Tricks For WP-PostRatings
« Reply #59 on: 25 June 2009, 16:57 »
Nope not possible, unless you create a page template of it and use query_post() function to display it and then use PageNavi. I have not tested this method yet, so it is just theory only


Just wanted to let you know I finally got motivated to study up on query_post() and how pagination really works. Anyway, I got it working. I'd be glad to contribute my solution to a help doc -- let me know if that would be worthwhile.