WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Cackle reload code? Help. (3 posts)

  1. spyke113
    Member
    Posted 1 year ago #

    Please help with reload code for Cackle comments system (as Disqus).

    Plugin link: http://wordpress.org/extend/plugins/cackle/

    How to integrate Cackle widget in ajax site: http://cackle.me/faq#useOnAjax

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. spyke113
    Member
    Posted 1 year ago #

    I write reload code:

    jQuery.getScript('http://cackle.me/mc.widget-min.js');
    jQuery(window).load(function() {
        window.mcSite = 1;
        window.mcUrl = window.location.href.replace('#', '/');
        Cackle.reinit();
    });

    where replace 1 to my site id, but it's working not good.

  3. spyke113
    Member
    Posted 1 year ago #

    The code written above, displays a comment form only once. Correct option:

    jQuery.getScript('http://cackle.me/mc.widget-min.js');
    jQuery(document).ready(function() {
        window.mcSite = YOUR_SITE_ID;
        window.mcUrl = window.location.href.replace('#', '/');
        Cackle.reinit();
    });

    Аsk to add this code in Reload Codes. =)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic