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: Making WP-PostRatings 1.50 Work With SuperCache Properly  (Read 18177 times)

0 Members and 1 Guest are viewing this topic.

Offline AdamCapriola

  • Newbie
  • *
  • Posts: 7
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: Atahualpa
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #20 on: 05 December 2010, 04:03 »
Is there a way to make this work if you want to include it twice within your theme?

I want to show the rating option at the end of my posts, but also in my sidebar near the top.  It showed up fine in my sidebar, but then when I added the code below my posts, it wouldn't show up in the sidebar anymore.

Any ideas??

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #21 on: 05 December 2010, 06:46 »
Nope. it does not work or not mean to work with 2 places within the same page.

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

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: custom
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #22 on: 04 April 2011, 23:22 »
Hello!
If i use this code and do "Raings logging method:"Logged by cookie and ip" i get this error:

Fatal error: Call to undefined function get_ipaddress() in .../wp-content/plugins/wp-postratings/wp-postratings.php on line 312

if i only use "Logged by cookie" then it works. But its important for me to log by cookie and ip. What did i wrong?
Best regards,
Tobias

Offline tobiass

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: custom
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #23 on: 05 April 2011, 20:29 »
I downloaded the Plugin again and placed the Code from the First post. But i still got the same Error. Anyone can help me?

Offline Fask

  • Newbie
  • *
  • Posts: 18
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: streamingdb
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #24 on: 16 July 2011, 09:26 »
hi,

I got to the point 3, and I'm stuck. You say:

Quote
Replace your normal <?php the_rating() ?> function in your theme for  <?php get_rating_ajax ($post->ID) ?>

I added this, but nothing appears:

Code: [Select]
<?php if(function_exists('the_ratings')) { ?><div class="rating"><?php get_rating_ajax ($post->ID?></div><?php ?>

What's wrong can I get your help?


Offline AdamCapriola

  • Newbie
  • *
  • Posts: 7
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: Atahualpa
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #25 on: 20 September 2011, 13:36 »
Just so peeps know, I tried using this with W3 Total Cache and it kinda works, but if you use the preload then it displays "Security Check" instead of the ratings templates. If a normal viewer hits the page first then it's cached ok.

Offline infomancer

  • Newbie
  • *
  • Posts: 4
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: Grey
Re: Making WP-PostRatings 1.50 Work With SuperCache Properly
« Reply #26 on: 22 May 2012, 13:10 »
Another thing that you can do is simply tell SuperCache to clear the cache for that specific post after a rating is made. Works for me... Just add this code after "$rate_userid = intval($user_ID);"

Code: [Select]
if (function_exists ('wp_cache_post_change')) {
$GLOBALS["super_cache_enabled"]=1;
wp_cache_post_change($post_id);
}