WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Reload Code for Disqus (5 posts)

  1. mikegajda
    Member
    Posted 2 years ago #

    Hi there,
    Any idea how what the reload code for disqus comments would be, it appears that this plugin has broken the comments from load.
    Thanks!

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

  2. mikegajda
    Member
    Posted 2 years ago #

    Just fixed it. For reference, I put used the following as reload code:

    (function() {
              var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
              dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
              })();
  3. Dean Williams
    Member
    Plugin Author

    Posted 2 years ago #

    I have added this snippet to the site. Thank you very much for sharing it!!

    http://software.resplace.net/WordPress/AjaxPageLoader.php

  4. Cernan Daniel
    Member
    Posted 1 year ago #

    Hi Dean, please help me with my issue...

    I am using your great script "Advanced AJAX Page Loader", but combination with "Fullscreen Galleria" By Petri Damstén [http://torturedmind.org/] makes a problem, i was added code below to "Data Ajax Loaded Code" frame:

    (function() {
              var dsqp = document.createElement('script'); dsqp.type = 'text/javascript'; dsqp.async = true;
              dsqp.src = 'http://haky-nabytok.sk/wp-content/plugins/fullscreen-galleria/galleria-fs.php';
              (document.getElementsByTagName('head')[0] || document.getElementsById('galleria')[0]).appendChild(dsqp);
              })();

    it reloading the Galleria script well, but php file "galleria-fs.php" /or something else/ dont reset the image switching. Please visit my site: haky-nabytok.sk to see this prob.

    I am new to prog.

    Thank you so much and sorry for my english")

    Daniel

  5. Cernan Daniel
    Member
    Posted 1 year ago #

    sorry, this code:

    (function() {
              var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
              dsq.src = 'http://haky-nabytok.sk/wp-content/plugins/fullscreen-galleria/galleria-fs.js';
              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
              })();

    above code is wrong

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags