Support » Plugin: WP Ajaxify Comments » Submit in modal?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author janjonas

    (@janjonas)

    Could you please send me a link to your blog so that I can reproduce the problem?

    Thanks
    Jan

    OK~
    this is my site~
    http://www.domoidea.com/sale/?product=hdfgh#?product_article=adf-f-sad

    I disable the comment of ?product=hdfgh ,so when i enter this page
    ‘ Abort initialization (comments are not enabled on current page)’

    can i initialize when i start loading content?

    thank you very much for your help!

    Plugin Author janjonas

    (@janjonas)

    Hi,

    what you can do with the current version of the plugin is executing the following JavaScript code when opening the modal comment popup:

    WPAC._Options.commentsEnabled = true; WPAC._Initialized = false; WPAC.Init();

    This is not very comfortable and it’s kind of a hack. I’m trying to find a better way in one of the next versions.
    You also need to change/increase the z-index of the WP-Ajaxify-Comments popup because the popup is hidden behind your modal comment window.

    Hope this helps,
    Jan

    OK~
    Thank you for your reply~
    I put the code in my script~

    $('.modal-body').load(post_url,function(result){
    
       WPAC._Options.commentsEnabled = true;
       WPAC._Initialized = false;
       WPAC.Init();
    
    }

    Initialization is succeed,all object been found.
    but Unsupported server response, unable to extract body (data: '
    ‘Something went wrong. Reloading page’

    Problem solved…
    Just add <body>…</body> in target page.
    thanks a a lot~

    another Problem ….
    when i load other post in the same page,and leave reply.
    it will send previous post comment again, and show duplicate comment error…..

    Problem solved again~
    Don’t call WPAC.Init() twice.

    thanks again~

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Submit in modal?’ is closed to new replies.