I have updated the following plugins:
Now all AJAX requests are handled by /wp-admin/admin-ajax.php. Previously it is handled via the plugin PHP file itself by assuming that wp-load.php is always 2 levels down from the plugin file. But since you can have your WordPress in any folders, custom loading of wp-load.php is not possible as the path to wp-load.php varies from server to server.
While I am at it, I added nonce check for AJAX calls to WP-Polls, WP-PostRatings and WP-Email. Let me know if you run into problems via WordPress Support Forums, My Forums (if you are already registered) or via email (lesterchan AT gmail).
PS: Kindly refer to https://lesterchan.net/wordpress/2012/06/05/ajax-not-working-for-wp-email-wp-polls-wp-postratings-or-wp-postviews/ if you ran into problems.
hi,
I have a bug, the link to pollarchive is always display, rather if I change the poll_archive_show option…
No parameter when you call display_polls_archive_link(); , it’s always true…
My solution:
$show_poll = get_option(‘poll_archive_show’);
display_polls_archive_link($show_poll);
Thanks for this plugin 😉
wp-polls.php:
1522 $title = apply_filters(‘widget_title’, esc_attr($instance[‘title’]));
1523 $poll_id = intval($instance[‘poll_id’]);
1524 $display_pollarchive = intval($instance[‘display_pollarchive’]);
1525 echo $before_widget;
1526 if(!empty($title)) {
1527 echo $before_title.$title.$after_title;
1528 }
1529 get_poll($poll_id);
1530 if($display_pollarchive) {
1531 display_polls_archive_link();
1532 }
The widget is for individual poll, you can choose whether or not to show the link to poll archive for the individual poll widget.
hi, i am using your tricky widget, and want to translate some of them into Chinese, can i start with DBManager and DownloadManager? alex
Hi,
I know you are busy, but the rich snippest for wp-postrating is not generated for pages, it’s working fine for posts but not PAGES. Could you please look into this ?
Thanks
Done! http://plugins.trac.wordpress.org/changeset/554618, just redownload the plugin and overwrite the files.
I had a problem with the referrer error (poll results wouldn’t load) when I was using W3TotalCache, so I tried a fix that saaraan recommended at
http://wordpress.org/support/topic/plugin-wp-polls-failed-to-verify-referrer
…wrapping this php code with comment /* — */in wp-polls.php, solved in my case.
/*
if(!check_ajax_referer(‘poll_’.$poll_id.’-nonce’, ‘poll_’.$poll_id.’_nonce’, false))
{
_e(‘Failed To Verify Referrer’, ‘wp-polls’);
exit();
}
*/
If you run into problems, refer to https://lesterchan.net/wordpress/2012/06/05/ajax-not-working-for-wp-email-wp-polls-wp-postratings-or-wp-postviews/
I tried the clearing-JS-css-cache tip and that did not help, and I disabled the JS-CSS caching in W3TotalCache also and that didn’t help either.
Can you try the default twentyeleven theme? Or you have a site URL, I would want to see the problem (not your fixed version)
Hi,
your Plugins are great, I really love them. I used the wp-polls and wp-postratings ones. My question is: If it would possible to show the highest rating post in some way on a page or in a widget?
Keep up the great work!
Cheers
Erni