Conflict ?

  • Thread starter Thread starter Deleted member 10469
  • Start date Start date
D

Deleted member 10469

Guest
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:
1gNt7.jpg


Do you know why please ?
Thanks.
 
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.
 
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.
 
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.
 
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.

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.
 
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.
 
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.
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.
 
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 :)
 
Top Bottom