janjonas
Forum Replies Created
-
Hi,
I’m sorry, but I can’t reproduce the outerHeight problems; see http://jsfiddle.net/9EsHg/.
Could you send me a link to the WordPress page where all the reported problems occur?
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Plugin slow performanceUnfortunately, I do not find the WordPress comment form on your page.
The WP-Ajaxify-Comments does not affect the performance of the WordPress site. Technically, the comments are posted the same way as the are posted without the plugin. The only difference is, that the data is transfered in the background from the client (browser) to the server and not by reloading the complete page.
Have you also done some performance tests before activating the plugin? IMHO, you have to find out, what happened when the comment data is sent to the server and what slows down you system (like spam detection).
Hope this helps…
Hi dedepress,
thanks for your comment. could you provide an example, where
jQuery("#wpadminbar").outerHeight();
returns an object?As far as I know outerHeight() accepts one optional (boolean) parameter that defines whether the element’s margin should be included when calculating the “outer height” (see http://api.jquery.com/outerHeight/).
Could you please send me a link to your WordPress page?
Hi,
thanks for your comment. I think this should be possible and “ajaxify the comments pager” is already on my todo list.
I will try to add the feature in the next release…Thanks for your feedback 🙂
Please think about supporting the plugin by making a small donation (http://blog.janjonas.net/donate) or write a short review (http://wordpress.org/support/view/plugin-reviews/wp-ajaxify-comments#postform)…
Mark this topic as resolved …
You need to add some JavaScript client side code to your page. You can use for example the JavaScript code to refresh the comments every 5 seconds 5:
window.setInterval('WPAC.RefreshComments();', 5000);Hope this helps…
0.12.1 was released yesterday. I think the topic is resolved.
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] my site broke on 0.12.0Seems to be fixed in 0.12.1…
Hi,
I think you have to add the (response) status code 500 in your own error handler. Please try to add the following code after the line “$r = wp_parse_args($args, $defaults);”:
if ( !headers_sent() ) { status_header( $r['response'] ); nocache_headers(); header( 'Content-Type: text/html; charset=utf-8' ); }Hope this helps…
Hi,
the problem is, that the script http://www.nicksotiriadis.gr/wp-comments-post.php does not return a HTTP status code 500 when sending invalid data (like an empty comment), but a HTTP status code 200 which indicates, that the comment was posted successfully.
Did the plugin work before updating to 0.12.x? If yes: Have you also updated other plugins or do you use any other plugins that could change the HTTP status code?Hope this helps…
Hi scooterlord,
please try upgrading to 0.12.1.
If this does not fix the problems, please send me a link where I can reproduce the problem…Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] my site broke on 0.12.0Thank you very much for the feedback.
Please upgrade to 0.12.1. This should fix the problems.
Sorry for the inconveniences…
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] my site broke on 0.12.0Thanks for your comment.
As a quick fix, please add the following code in the file “wp-ajaxify-comments.php” after the first line:
if (!function_exists('getallheaders')) { function getallheaders() { $headers = ''; foreach ($_SERVER as $name => $value) { if (substr($name, 0, 5) == 'HTTP_') { $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; } } return $headers; } }Hope this helps …