WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Page Promoter Lightbox
[resolved] Conflict with Internet Explorer (6 posts)

  1. LionLK
    Member
    Posted 1 year ago #

    Hello Developers,

    I'm experiencing an error with Facebook Page Promoter Lightbox.
    On IE, lightbox popups and showing the website again instead of loading Facebook like box.
    I disabled all the other plugins and checked. But the result was same.
    Im using W3 Total Chache without minifying.

    Here is a screenshot of the problem. - http://lionlk.com/images/ie_error.jpg
    And this is my site - http://lionlk.com/

    Any help would be appreciate.
    Regards.

    http://wordpress.org/extend/plugins/facebook-page-promoter-lightbox/

  2. Arevico
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, i see some severe problems with the theme you are using. This can cause this problem. Please try to
    - remove the code before <html> (script type="text/javascript">

    script type="text/javascript">
        // <![CDATA[
            var disqus_shortname = 'lionlk';
            (function () {
                var nodes = document.getElementsByTagName('span');
                for (var i = 0, url; i < nodes.length; i++) {
                    if (nodes[i].className.indexOf('dsq-postid') != -1) {
                        nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('rel'));
                        url = nodes[i].parentNode.href.split('#', 1);
                        if (url.length == 1) { url = url[0]; }
                        else { url = url[1]; }
                        nodes[i].parentNode.href = url + '#disqus_thread';
                    }
                }
                var s = document.createElement('script'); s.async = true;
                s.type = 'text/javascript';
                            s.src = 'http' + '://' + 'disqus.com/forums/' + disqus_shortname + '/count.js';
                (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
            }());
        //]]>
        </script>

    This code doesnt belong there.

    - specify a correct doctype if not done so allready.`

    Please also be aware that fancybox might not work with very old versions of IE.

    Please let me know if it works

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin]

  3. LionLK
    Member
    Posted 1 year ago #

    Hello Arevico,

    That code was generated by Disqus plugin. By checking Output JavaScript in footer option, I have managed to remove that.

    But that wasn't the only problem. I had to remove some other unnecessary php codings that I had done before which was affecting to the head section.

    Now it is running perfectly.

    Thank you for pointing me to the head section and for this great plugin.

    Regards.

  4. zepafonso
    Member
    Posted 1 year ago #

    Hi Arevico,

    I have had a similar problem on my site,
    after installing the plugin page is blank in Internet Explorer and the popup does not appear.

    This is my site: http://dicasparaconstrucao.com/

    I appreciate if you can help me!

  5. Arevico
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Your html in the theme starts directly with:
    <head profile="http://gmpg.org/xfn/11">
    ... etc

    You should specify a valid doctype, since the lightbox needs one to be displayed correctly in ie followed by the <html> tag.

  6. zepafonso
    Member
    Posted 1 year ago #

    Hi Arevico,

    I think the problem is not in this line,
    because I found a site that uses the same plugin and contains the code "..." and usually works in IE!

    this is the site: http://criarblogsite.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.