janjonas
Forum Replies Created
-
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] load moreThanks a lot for your donation.
I will close this topic. Please feel free to reopen the thread if you need further assistance.
Hi ZherGut,
thanks for your comment. The plugin’s callbacks (like “OnBeforeSubmitComment”) are JavaScript callbacks, i.e. they are executed on the client side.
To execute some custom PHP code/function you need to use the WordPress API that offers various hook points (see here and here). I try to make the more clear in one of the next releases.Hope this helps. Please free to reopen this thread if you need further assistance.
Jan
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] load moreHi vip3rb,
I will take your suggestion on my todo list. In the meantime if you are familiar with JavaScript and PHP you may can use the plugin’s client side to implement a “load more”-functionality. The API offers the
WAPC.LoadComments(url, options)
to load comments from the server and replaces the comment list. This approach is not ideal since the server needs to return more and more comments and its not a real “load next” comments feature, but it would work.Hope this helps…
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] load moreHi vip3rb,
I will take your suggestion on my todo list. In the meantime if you are familiar with JavaScript and PHP you may can use the plugin’s client side to implement a “load more”-functionality. The API offers the
WAPC.LoadComments(url, options)
to load comments from the server and replaces the comment list. This approach is not ideal since the server needs to return more and more comments and its not a real “load next” comments feature, but it would work.Hope this helps…
Hi Dave,
thanks for your comment.
The plugin loads the page with the WPACRandom query string if something went wrong and the plugin is not able to load/post comments with AJAX. You need to find out a way to reproduce the issue and we can fix it. Most likely, you have to change the plugin’s selector settings.
Regarding your second question: The pluing does not add any noticeable overhead on the server side. With or without the plugin the web-server has to process the same requests/data and the same code is executed.
Hope this helps…
The Auto-Update feature is now supported out-of-the-box in the current developer version 0.16.0 (http://downloads.wordpress.org/plugin/wp-ajaxify-comments.zip).
The Auto-Update feature is now supported out-of-the-box in the current developer version 0.16.0 (http://downloads.wordpress.org/plugin/wp-ajaxify-comments.zip).
Hi vnuchaev,
in the other support thread I just gave a rough idea of how to implement a “auto refresh functionality”. I think you have to add some more logic to the client-side code, like detecting activity (keypress, mousemove, scrolling events) and pausing the auto refresh.
At the moment the WPAC.RefreshComments() is “stupid”: It just reloads the comments and does not take care of the user that is just typing in a comment.
Maybe I will add a “Auto refresh comments” feature in one of the next versions that takes care of all these things…
Hope this helps.
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] Centre messageHi
you can try to add the following styles to your theme:
div.blockUI { top: 50% !important; height:20px !important; margin-top:-15px !important; }This centers the message popup vertically. Please note that you have to set the correct calculated value for margin-top. It needs to be (the height + the bottom padding + the top padding) / 2 and bottom/top padding is 5px by default.
Maybe I will add built-in support for vertical alignment in one of the next versions.Hope this helps…
Hi,
thanks for your comment. With the current version 0.14.x you can use the JavaScript functions WPAC._ShowMessage as follows:
WPAC._ShowMessage("Your error message...", "error") WPAC._ShowMessage("Your error message...", "success") WPAC._ShowMessage("Your error message...", "info")to show/open the message popup. Please note that the API WPAC._ShowMessage might change in the future versions.
Moreover you have to implement the other validation and/or AJAX (JavaScript) functionality. Unfortunately, at the moment there no way to the WP-Ajaxify-Comments’ form handling code.
Hope this helps…
Please try to set the “Comment paging links selector” to:
#comment-nav-below aHope this helps…
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] jQuery Object blockUICould you provide me login credentials to reproduce the problem?
You can send me a private message here: http://blog.janjonas.net/contactYou may have to update the “Comment paging links selector” according to your custom theme. Could you please send me a link to a page where I can reproduce the problem?
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] jQuery Object blockUIYes, but the red border is not caused by my plugin. This functionality is part of your theme or any other plugin. When I typed in all information I was able to submit a comment which was handled/ajaxified by the WP-Ajaxify-Comments plugin.
Forum: Plugins
In reply to: [Ajaxify Comments - Ajax and Lazy Loading Comments] jQuery Object blockUIHi,
you have to use jQuery instead of $ because jQuery by default WordPress includes jQuery in the “no config mode” (see http://blog.janjonas.net/2012-04-15/wordpress-jquery-fix-javascript-error-is-not-a-function).
As far as I’ve tested your page the WP-Ajaxify-Comments plugin is working…