WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Easy Fancybox] Not working in Opera and Firefox (10 posts)

  1. robertjakobson
    Member
    Posted 3 years ago #

    Fancybox works in IE and Chrome, but does not in Opera and Firefox. I happen to get an error just like this in Firebug that might be the cause of the malfunction:

    Firebug's log limit has been reached. 0 entries not shown.		Preferences
    $("a.fancybox").fancybox is not a function
    [Break On This Error] $('a.fancybox').fancybox( $.extend({}, fb_opts, { }) );

    Thanks for the help!

  2. robertjakobson
    Member
    Posted 3 years ago #

    $('a.fancybox').fancybox( $.extend({}, fb_opts, { }) );

    Just to be precise, the faulty line is quoted as code above!

  3. RavanH
    Member
    Posted 3 years ago #

    The problem is that you are loading this script TWICE and in the WRONG location:

    <script type="text/javascript" src="http://www.viking.ee/veeb/wp-content/plugins/scripts-gzip/gzip.php?js=wp-includes%2Fjs%2Fl10n.js%3Fver%3D20101110%2Cwp-includes%2Fjs%2Fjquery%2Fjquery.js%3Fver%3D1.4.4%2Cwp-content%2Fplugins%2Feasy-fancybox%2Ffancybox%2Fjquery.fancybox-1.3.4.pack.js%3Fver%3D1.3.4%2Cwp-content%2Fplugins%2Feasy-fancybox%2Ffancybox%2Fjquery.easing-1.3.pack.js%3Fver%3D1.3%2Cwp-content%2Fplugins%2Feasy-fancybox%2Ffancybox%2Fjquery.mousewheel-3.0.4.pack.js%3Fver%3D3.0.4"></script>

    I see it once completely at the top right after <head> and once in the body section right after <header id="branding" role="banner"> ...

    Remove that last one and move the first one to right AFTER the part

    <script type="text/javascript">
    head.js("http://www.viking.ee/uusleht/js/jquery-1.4.4.min.js","http://www.viking.ee/wp-content/themes/veeb/js/jquery-ui-1.8.7.custom.min.js","http://www.viking.ee/wp-content/themes/veeb/js/jquery.jBrowserBookmark.min.js");
    </script>
  4. robertjakobson
    Member
    Posted 3 years ago #

    Yes, that is exactly what I thought as well, did not go that route because another issue popped up - thanks a ton!

  5. robertjakobson
    Member
    Posted 3 years ago #

    The only problem is that I am not capable of moving the files since they come straight from wp_head, which should be placed just before </head>

    Should I delete head.js and just try to this naturally?

    I swear, wp_head is moving the files to the wrong place and loading the script twice - not me!

  6. RavanH
    Member
    Posted 3 years ago #

    It's probably not so much WP (or wp_head) that decides the order here but that scripts-gzip plugin thing... Try deactivating it.

    I have no idea why it would throw these compressed script files right at the top there or even how it gets away with placing them a second time outside the head section -- which cannot possible be via the wp_head() call unless you have more than one in your theme. You might ask the scripts-gzip plugin developer for some clearer tips on how to set it up.

    What I quickly (without much further reading) understand is that it hooks right into the template function get_header() ... I suspect it reads and messes with the complete header.php file before it is used in the template. So there might be some theme incompatibility going on there, causing this weird result.

  7. robertjakobson
    Member
    Posted 3 years ago #

    Yes, you are correct, I have used this plugin elsewhere as well with the same problem occurring. however it is the only gzip plugin that I have found that really works.

  8. robertjakobson
    Member
    Posted 3 years ago #

    RavanH, do you have a PayPal donation link going on for you? I started to think that you generously pushed me on the right track, even though I knew the solution, but I was too focused on other things, and so deserve some credit.

    I am also wondering is it possible to add FLV file support for Easy Fancybox? I will start a new thread requesting it, if it is appropriate.

  9. RavanH
    Member
    Posted 3 years ago #

    Did you ever try W3 Total Cache? It provides maybe more than you need but it does have some pretty good script and css packing stuff available. It depends on your provider which part you can use but you may be able to take advantage of the DB object and page caches too :)

    About the FLV support: It's an interesting thought but I'll have to investigate it. Any participation by others would be appreciated so, yes please, if you could start a new thread on the subject via http://wordpress.org/tags/easy-fancybox?forum_id=10#postform ?

    And do I have a PayPal donate button? Well... yeah! You can find it on http://wordpress.org/extend/plugins/easy-fancybox/ or look on your admin Settings > Media page (right side in the FancyBox section) ... Thanks! :)

  10. robertjakobson
    Member
    Posted 3 years ago #

    I am already using W3 Total Cache basically to the max I can (no CDN right now for development/test site) and I have used it once or twice previously to the absolute maximum it offers, however it´s gzipping functionality is some what manual, if I remember correctly and depends on the templates - while developing it is hard to to define the files to be gzipped manually since they change quite regularly.

    I got Scripts Gzip working BTW, unfortunately it does keep the javascript files in the head - but there is another plugin that might move them for me, or I will move them myself

Topic Closed

This topic has been closed to new replies.

About this Topic