Moshe Harush
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] shortcode does not open@peterfeatherstone-1 Do you have a git repository of the plugin?
Maybe I can find some time to help you upgrade the plugin for more fixability 🙂Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] shortcode does not openUse a new sticky position CSS option.
Like this:#header { position: sticky; top: 0; z-index: 999999; }Forum: Plugins
In reply to: [Comments - wpDiscuz] Comments on wrong postI fix that with assign the wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id var on post toggle in loop view.
And in the function getAjaxObj I change wpdiscuzPostId var to full source refernce var wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id
Its work.
If u have a github repo I can send a commit as pull request.
Please let me know.Forum: Plugins
In reply to: [Comments - wpDiscuz] Comments on wrong postThe problem is here:
/** * @param {type} action the action key * @param {type} data the request properties * @returns {jqXHR} */ function getAjaxObj(data) { if (data.action !== 'liveUpdate') { $('.wpdiscuz-loading-bar').show(); } data.append('postId', wpdiscuzPostId); return $.ajax({ type: 'POST', url: wpdiscuzAjaxObj.url, data: data, contentType: false, processData: false, }); }The var wpdiscuzPostId set in like this:
var wpdiscuzPostId = wpdiscuzAjaxObj.wpdiscuz_options.wc_post_id;But if I use on one page more then one post with comments the global object wpdiscuzAjaxObj can be used.
All case this way is bad practice, why not add a input hidden name=post_id in the comment form?
why use base on js var?Forum: Plugins
In reply to: [Comments - wpDiscuz] Comments on wrong postThe post id its of another post on page,
Not the post I will commented on him.So This is your github repo?
https://github.com/wp-plugins/wpdiscuzCan you show me the appropriate line in the code that pulls out the post id?
Forum: Plugins
In reply to: [Comments - wpDiscuz] Comments on wrong postThe plugin will work without the ajax.
But the problem its on how your plugin work.
He take post id for the comment from some where and not use the form of comments.Forum: Plugins
In reply to: [Comments - wpDiscuz] Comments on wrong postHi,
Thank you for replay.I am not use Jetpack comments.
I have many posts on one page with ajax.
Per post I have ajax button “Show comments”,
On click its call to admin ajax and return this:function getPostComments() { $ID = $_POST["post_id"]; query_posts( array( 'p' => $ID ) ); if ( have_posts() ) { while( have_posts() ) { the_post(); comments_template(); echo '<script> FB.XFBML.parse(); </script>'; // For parse facebook comments xfbml to html die(); } } exit; }The problem is when user leave a comment its commented on another posts.
Forum: Plugins
In reply to: [ShareThis Dashboard for Google Analytics] Why old GA code?you can use in my option:
https://ww.wp.xz.cn/support/topic/update-for-universal-analytics-tracking-code?replies=5