Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] Atahualpa, WP Super Cache and WP Post-ratings


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 19, 2011, 04:21 AM
seboush
 
13 posts · Jul 2009
Hello,

I am trying to get Wp Super Cache & WP Post-ratings to work together. I have found a thread on WP post-ratings (http://forums.lesterchan.net/index.p...ic,4281.0.html) saying:

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

I cannot find <?php the_rating() ?> in Atahualpa's files. The only thing I have found is in bfa_postinfo.php:

// For the "WP-PostRatings" plugin
if ( strpos($postinfo_string,'%wp-postratings%') !== FALSE ) {
$wp_postratings = ( function_exists('the_ratings') ?
the_ratings($start_tag = 'span', $custom_id = 0, $display = FALSE) : "" );
$postinfo = str_replace("%wp-postratings%", $wp_postratings, $postinfo);
}

But I cannot figure how to insert the above modification.

Many thanks in advance for your help.
  #2  
Old Jan 19, 2011, 05:24 AM
juggledad's Avatar
juggledad
 
22,269 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
As you can see from his page, WP Post-ratings is no longer supported or being updated. The instructions are almost a year and a half old. My suggestion would be to look for another rating plugin that is being actively being developed.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 19, 2011, 06:54 AM
seboush
 
13 posts · Jul 2009
Hi,

Thanks for your answer.

Actually, changing the plugin would also erase all the history of all votes... So I would like to keep the same plugin even if it's not updated. Also it's been working fine so far with a nice config screen in Wordpress admin.

If you could help me about where to insert this line of code, I would be more than happy!

Thanks,
  #4  
Old Jan 19, 2011, 10:39 AM
juggledad's Avatar
juggledad
 
22,269 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
well that's where you would insert it. the WordPress function 'the_ratings()' has several variables that can be passed to it. Since the plugin is changing that function for another, you are going to have to play with it or examine the plugins code to see what it is doing.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 20, 2011, 07:52 AM
seboush
 
13 posts · Jul 2009
If someone is interested, in file bfa_postinfo.php, I have replaced:

$wp_postratings = ( function_exists('the_ratings') ?

by

$wp_postratings = ( function_exists('get_rating_ajax') ?

and now WP Post-ratings works fine with WP Super Cache.

Bookmarks

Tags
wp super cache, wp-postratings

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin : WP Print & WP Post Ratings do not work sns Plugins & Atahualpa 8 Feb 17, 2011 08:03 PM
Have problem with custom query template with wp-super-cache codefinder Plugins & Atahualpa 1 Jul 29, 2010 05:41 AM
Caching WordPress with WP-Cache 2, WP Super Cache & PHP Speedy Flynn Installing & running WordPress 9 Dec 3, 2009 04:15 PM
Loading Atahualpa css/js from browser cache leer Atahualpa 3 Wordpress theme 5 Sep 16, 2009 04:31 AM
Contact Form 7 & Super Cache SCLove Forum How-To 0 May 20, 2009 11:33 AM


All times are GMT -6. The time now is 03:48 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.