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: Display full text of highest rated post  (Read 1810 times)

0 Members and 1 Guest are viewing this topic.

Offline xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Display full text of highest rated post
« on: 07 May 2009, 12:33 »
Hello !

First, I'm an happy user of your different scripts !! Thanks you very much.

But this time i'd like to do something else for a future website. I want to display the top rated post on a page. I managed to display the excerpt for each one (playing with ratings template) but I'd like the full post ! And if possible I'd like to keep the presentation for this top of the index page (ie with meta and stuff)
How can I do that ??

Other question : I use tickcross_crystal with -1 and +1 as value, it seems that it sum everything, right ? but can we display how many people has voted for and how many people has voted against instead of the average?? something like >>>   "V I agree with the post (322 votes), X I'm against this post (32 votes)" where X and V are the image. or if too complicate : "I agree with the post (322 votes), I'm against this post (32 votes)"

Thanks

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Display full text of highest rated post
« Reply #1 on: 07 May 2009, 13:29 »
1. That is not possible. You have to use query_post instead, take a look at the readme.html under Usage Tab
2. Nope that is not possible.

++ 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 xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Re: Display full text of highest rated post
« Reply #2 on: 07 May 2009, 13:58 »
Arf ! So I can't have the full post nor display how many people has voted for and how many people has voted against instead of the average, I'm sad... :'(

But for 1., by using query_post it would possible ?? I look into this then.
For 2. I tried to do xx% of YY people voted for it, but the numbers displayed are wrong or is this me ? I used :
%RATINGS_PERCENTAGE% % of %RATINGS_USERS% peoples are for, and you? %RATINGS_IMAGES_VOTE% <br />%RATINGS_TEXT%
My percentage is wrong... is it the wrong variable ?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Display full text of highest rated post
« Reply #3 on: 07 May 2009, 14:26 »
The percentage is the total score divided by the number of users who voted not the number of users voted for.

++ 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 xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Re: Display full text of highest rated post
« Reply #4 on: 12 May 2009, 00:23 »
Hello I'm back.
I tried the query_post in my template but it's bugging, I'm getting an error :
Not Found
Sorry, but you are looking for something that isn't here.

code I used :
<?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?> 
 <?php if (have_posts()) : ?>
  <?php while (have_posts()) : the_post(); ?>
...

I also tried to pass the variable in my url (?r_sortby=highest_rated&r_orderby=desc) with no result

What am I doing wrong there ??

And I need to mix this query with
<?php query_posts(array("post__not_in" => array('1'))) ?> 
how to do this ? I tried
<?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc'&array("post__not_in" => array('1'))) ?> 
but obviously it's not working! What's the good one ? help me pleaase ! I'm lost

Thanks !

Offline xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Re: Display full text of highest rated post
« Reply #5 on: 12 May 2009, 10:29 »
I tried <?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?> 
on the index page, it works... So why not on the other page ??

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Display full text of highest rated post
« Reply #6 on: 12 May 2009, 10:51 »
I think your argument passed in maybe wrong. Are you sure array("post__not_in" => array('1')) is a valid argument? It is better for you to post in http://wordpress.org/support as this has nothing to do with the plugin.

++ 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 xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Re: Display full text of highest rated post
« Reply #7 on: 13 May 2009, 09:53 »
I think your argument passed in maybe wrong. Are you sure array("post__not_in" => array('1')) is a valid argument?

sure. taken in the codex and already at work ;)
It is better for you to post in http://wordpress.org/support as this has nothing to do with the plugin.

I'm doing that...

Thanks !

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Display full text of highest rated post
« Reply #8 on: 13 May 2009, 10:19 »
Thank you =)

++ 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 xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Re: Display full text of highest rated post
« Reply #9 on: 14 May 2009, 23:22 »
FOUND!! \o/
It works with :
<?php query_posts(array("post__not_in" => array('1'))) ?>
<?php query_posts('r_sortby=highest_rated&r_orderby=asc') ?>

All those search for this... damn

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Display full text of highest rated post
« Reply #10 on: 15 May 2009, 00:47 »
Hmm wouldn't the second query_post overwrite the first:?

++ 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 xtaz

  • Newbie
  • *
  • Posts: 12
  • robotbuzz.fr - L'actualité de nos amis les robots
    • View Profile
Re: Display full text of highest rated post
« Reply #11 on: 15 May 2009, 08:49 »
nope !  ;) it works fine