WordPress.org

Ready to get started?Download WordPress

Forums

Image Zoom
[resolved] Solution for some problems - Soluciones (9 posts)

  1. t3sla
    Member
    Posted 6 months ago #

    <English>
    First, congratulations for this plugin, helped me a lot.
    Second, sorry for my English, I'm still studying.
    The first problem we find is that for the plugin to work properly, we have to wrap pictures tagged with <a class="gallery_colorbox cboxElement" href=" your image "><img src=”thumb”/></ a>, that should fix the problem.
    Wait, still not working.
    Ok, then the problem is your version of JQuery.
    This plugin uses function .live () to stop the instance href and use the content of this (our image) in the zoom. If you are using a current version of jQuery, you should replace it by the function .on()
    Specifically in:
    Content/plugins/image-zoom/js/js_front.js
    Change this:
    ..G.click()))}),a("."+g,b).live("click",function(a){a.which>1||..
    By this:
    ..G.click()))}),a("."+g,b).on("click",function(a){a.which>1||..
    I hope to solve the problem
    </English>

    <Español>
    Primero, felicitaciones por este plugin, me ayudo bastante.

    El primer problema que encontraremos es que para que el plugin funcione correctamente, tenemos que envolver las imágenes con una etiqueta <a class="gallery_colorbox cboxElement" href=" tu imagen " ></a>, eso debería solucionar el problema.

    Un momento, sigue sin funcionar.

    Ok, entonces el problema es tu versión de JQuery.

    este plugin usa la propiedad .live() para detener la instancia href y usar el contenido de este (nuestra imagen) para crear el zoom. si usas una versión actual de JQuery, es recomendable remplazarla .live() por la funcion .on().

    específicamente en:
    content/plugins/image-zoom/js/js_front.js

    cambiar esto:
    ..G.click()))}),a("."+g,b).live("click",function(a){a.which>1||..
    por esto:
    ..G.click()))}),a("."+g,b).on("click",function(a){a.which>1||..

    Espero resuelva el problema
    </Español>

    https://wordpress.org/plugins/image-zoom/

  2. Sed Lex
    Member
    Plugin Author

    Posted 6 months ago #

    I will change it on the next version I hope

  3. Sed Lex
    Member
    Plugin Author

    Posted 6 months ago #

    Just to be sure : the version of jquery is too old or too recent ? Because I cannot do anything regarding the version as it is the version of wordpress I use

  4. spkane
    Member
    Posted 6 months ago #

    I just followed t3sla's directions and it worked perfectly with WP 3.8.1 and //ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js

    Thanks!

  5. t3sla
    Member
    Posted 6 months ago #

    Hello Sed Lex, JQuery use .live() function to version 1.3, and change to .on() since version 1.7 .live() documentation
    I think could create a select with jquery versions in the plugin settings or use:

    $.fn.jquery
    //or if you're using .noConflict():
    jQuery.fn.jquery

    ...and the script print: .on(), .live() or .delegate() in the javascript

  6. Sed Lex
    Member
    Plugin Author

    Posted 6 months ago #

    Hi tesla ...

    I understand your point but colorbox is a code that I do not develop
    I upgrade this part to be sure that the last version of color box and jquery is used

    The last version of this plugin does not solved your issue ?

    I am confused

  7. Sed Lex
    Member
    Plugin Author

    Posted 6 months ago #

    For clarity sake, a version 1.7.0 has been issue for your specific point discused here ... I have hope that would be nice

  8. t3sla
    Member
    Posted 6 months ago #

    My JQuery version is:
    //cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js

    ...Jquery did not recognize .live() function, so the change to .on() in the scritp [js_front.js].

    Colorbox author says in the website:
    "Compatible with: jQuery 1.3.2+ in Firefox, Safari, Chrome, Opera, Internet Explorer 7+".

    But, Some users choose different JQuery versions and encounter this problem.

    Moreover, Jquery API documentation says:
    "As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live()."
    Link to documentation

    I hope to clarify the doubt. And as a community to solve the problem, Greetings from Peru

  9. t3sla
    Member
    Posted 6 months ago #

    Obviously the previous post.
    1. Colorbox solved the problem in actual version .
    2. My version of the Plugin is old, But I use WordPress internal plugin search.
    3. WordPress notice me recently 1.7.0 update 1 week later -_- of the plugin install, sorry for the confusion.

Reply

You must log in to post.

About this Plugin

About this Topic