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.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kilowatt

Pages: [1]
1
Thank you so much Lester, it works now! A little change in order or a missing ' mark and it won't work, He he.

2
The examples in the read me explains how to limit the number of posts when displaying the most rated in a category and also when displaying the most rated within a given period but not Both (which is what I want to do).

According to the read me I can use the following to custom display most rated within a category:

<?php get_most_rated_category(CATEGORY_ID, 'both', 0, 10); ?>

And this to custom display most rated within a given period:

<?php get_most_rated_range('1 day', 'both', 10); ?>

But the read me doesn't explain how to set the number of posts to display when showing the most rated from a category within a given period of time.

Right now the code I'm using is this (23 is the cat id):

<?php get_most_rated_range_category('1 month', 23); ?>

If I add another number in the parenthesis like so (to show 25 posts only):

<?php get_most_rated_range_category('1 month', 23, 25); ?>

I get a fatal error.

Please advice.

3
Hi Lester,

A while back I started this thread asking you how to get the most rated posts from a given category within a given period:

http://forums.lesterchan.net/index.php/topic,4026.msg27732.html#msg27732

And you told me to use this:

<?php get_highest_rated_range_category('1 day', CATEGORY_ID); ?>

Which works great, but can you please tell me if/how I can also limit the number of posts that displays? I would like only 25 posts to show and not an indefinite number.

4
WP-PostRatings / Re: Does wp-post ratings work with supercache
« on: 20 September 2009, 05:19 »
Oh okay,

Thanks. Commentnavi works I tested it as does pagenavi. I kind of thought that was the case with post ratings. I think the post views also records the results, it shows the updated view count immediately but once the page is refreshed it reverts back to the old count. If the post ratings results get recorded then I assume the same is true for post views. Will have to do some more checks.

Thanks again.

5
WP-PostRatings / Does wp-post ratings work with supercache
« on: 19 September 2009, 20:42 »
Hi Lester,

I am thinking about installing wp super cache on my site. Would post ratings, post views, page and comment navi still work with that plugin in. I'm pretty sure the latter two will but just to be sure I'm asking.

Thanks

6
Wow, in-frekin-credible. Thank you so much Lester, your plugins and your support are the BEST!

7
I didn't know jquery couldn't be moved outside the head, I guess that's why the solution you have doesn't work. It moved both pieces of code to the footer and not just the external file.

Anyway, is there anyway to make the files load just for posts and not for pages?

Thanks.

8
Hi Lester,

For optimization purposes, is there any way to move the :

<script type='text/javascript' src='http://www.mysite.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>

and:

<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://www.mysite.com/wp-content/plugins/wp-postviews/wp-postviews.php',data:'postviews_id=555',cache:false});/* ]]> */
</script>


scripts to the bottom of the page instead of the head where they are now?



Also is it possible to make these scripts load only for posts and not for pages?


Thanks for your help :)

9
Thanks but I figured it out somehow:

I took this:

               if(!empty($pages_text)) {
                  echo '<span class="pages">'.$pages_text.'</span>';
               }
               if ($start_page >= 2 && $pages_to_show < $max_page) {
                  if(!empty($pagenavi_options['dotleft_text'])) {
                     echo '<span class="extend">'.$pagenavi_options['dotleft_text'].'</span>';
                  }
               }


and moved it between:



               previous_posts_link($pagenavi_options['prev_text']);



                     ~~~~~RIGHT HERE~~~~~


               for($i = $start_page; $i  <= $end_page; $i++) {




Then I took this:


               if ($end_page < $max_page) {
               if(!empty($pagenavi_options['dotright_text'])) {
                  echo '<span class="extend">'.$pagenavi_options['dotright_text'].'</span>';



and put it after the line:


next_posts_link($pagenavi_options['next_text'], $max_page);

10
How much?

11
Hi Lester,

I really want to have the Text for next ...'s after Previous and the Text for previous ...'s before the Next. in other words like this:

< Previous ... 11 12 13 14 15 16 17 18 19 20 ... Next >

What do I have to do in the wp-pagenavi.php to achieve this?

They are doing it using your plugin on mashable:

http://mashable.com/page/9/

12
 :'( that's too bad. Thanks for letting me know.

13
Hi,

I use the "Display Most rated" template to show the top 100 posts on my site. But I would like to break this 100 list in to pages of 10.

How can I incorporate this:

<?php get_most_rated_range('1 month', 'both', 100); ?>

with pagenavi? Is it possible?

Many thanks for your help.

14
Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You,

oh and did I mention....Thank You!

15
In the readme it shows how to display the highest rated post in a category:

<?php if (function_exists('get_highest_rated_category')): ?>
   <ul>
      <?php get_highest_rated_category(CATEGORY_ID); ?>
   </ul>
<?php endif; ?>

and the highest rated post within a given period:

<?php if (function_exists('get_highest_rated_range')): ?>
   <ul>
      <?php get_highest_rated_range('1 day'); ?>
   </ul>
<?php endif; ?>


I was wondering if it is possible to display the highest rated post within a category within a given period?

Thank you for the help.




16
Hi Lester,

How can I exclude a page or post from being displayed in the most viewed template? I know it has to be done with page/post id's but I don't know the proper syntax.

17
 :)Thanks Gamerz it works now. I was just hoping this would display the most viewed tags on my site but I guess anther plugin needs to be used for that.

18
Hi Guys,

I tried to use this (as suggested in the wp-postviews readme):

<?php if (function_exists('get_most_viewed_tag')): ?>
   <ul>
      <?php get_most_viewed_tag(); ?>
   </ul>
<?php endif; ?>

to display the most viewed posts by tag on my homepage. But it simply doesn't work, I even tried it on the default kubrick theme with all plguins deactivated. I just get a N/A in the area where the tags are to show up.

I had the same (N/A) problem trying to display the most viewed posts in a category using this:

<?php if (function_exists('get_most_viewed_category')): ?>
   <ul>
      <?php get_most_viewed_category(); ?>
   </ul>
<?php endif; ?>

Then I found a forum topic where Lester Chan Sugested using this:

<?php if (function_exists('get_most_viewed_category') && intval(get_query_var("cat")) > 0): ?>
<?php get_most_viewed_category(get_query_var("cat"),'both',10); ?>
<?php endif; ?>


Which Worked. So I was hoping there is some sort of modification that can be made to the "Most Viewed Posts by Tag" code to make that work as well.

Thank you for your help.

Pages: [1]