1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Conflict ?

Discussion in 'XenForo Development Discussions' started by Zephyr, Oct 20, 2012.

  1. Zephyr

    Zephyr Well-Known Member

    Hello, I installed a slideshow on my installation XenForo.
    But since the page bug when I click to change style.

    http://xencrea.com
    Clic for change style => http://puu.sh/1gNpL

    And no popup hover pseudo:
    [​IMG]

    Do you know why please ?
    Thanks.
     
  2. Zephyr

    Zephyr Well-Known Member

    Resolved, bug provenance:
    <xen:require js="/styles/XenCrea.com/Slideshow/js/jquery-1.7.1.min.js" />

    I do not know why but when I delete this prerequisite it works.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    XenForo is built using jQuery 1.5 and already includes jQuery. If you include a newer version of jQuery it will break all of XenForo's jQuery.

    Your best hope is that your slideshow works with the version of jQuery included in XF. If it doesn't, there's not a lot you can do.
     
    Insy likes this.
  4. Zephyr

    Zephyr Well-Known Member

    It works with, I'm lucky ^^.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Actually, yeah that is lucky.

    I wanted to use a jQuery plugin once. Only worked on jQuery 1.7. Broke jQuery 1.4. Had to find some other plugin which was a shame. Hopefully a future version of XenForo will be compatible with newer jQuery.
     
    Zephyr likes this.
  6. cclaerhout

    cclaerhout Well-Known Member

    You can check if inside the JS code you find some "on" instructions and try to replace them with "bind". Many breaks of the code between those two versions are coming from here.
    See here for example.
     
    Chris D likes this.
  7. Chris D

    Chris D XenForo Developer Staff Member

    Yeah good call.

    I think I fixed one plugin once by doing this but it was still all kinds of broken.

    I'm really surprised they didn't maintain compatibility between versions.
     
    cclaerhout likes this.
  8. cclaerhout

    cclaerhout Well-Known Member

    They had the 'live' (which for me didn't work well on iE) and the 'bind', may be they found a cross browser solution with this "on" command. I haven't tried yet this command (because of Xenforo ^^), but this plugin is great and easy to use.
     
  9. Zephyr

    Zephyr Well-Known Member

    Hum last bug to fix:
    When I send a message and the slideshow is enabled, the CPU goes to 50% and the browser crash or puts ~ 30 seconds for validate the send message, as if I went into an infinite loop.

    The error comes from the javascript file.
    I have no knowledge of javascript, you know where the problem can come please?

    http://xencrea.com/styles/XenCrea.com/Slideshow/js/jquery.nivo.slider.js

    Site: http://xencrea.com
    user: test
    pass: testtest

    The slideshow is initialized in PAGE_CONTAINER template, and .js load in page_container_js_head template

    Thanks :)
     

Share This Page