![]() |
|
JS conflict - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: JS conflict (/thread-11809.html) |
JS conflict - ClicClac - 2014-05-27 Hello, Is it possible to load a plug-in everywhere except the slideshow page ? JS conflict - acrylian - 2014-05-27 Yes, you can check via the global JS conflict - ClicClac - 2014-05-30 Ok, but I need to modify the plug-in ? JS conflict - fretzl - 2014-05-30 No need to modify plugins. ...as much info as possible please ;-) JS conflict - acrylian - 2014-05-30 If you want to exclude loading your script on a specific page you have to modify where you load it to included a check for the page. Where that is only you know as you haven't told if it is a custom plugin or the theme (which) itself loads it. JS conflict - ClicClac - 2014-06-03 As the slideshow plugin does not yet support zp_picturefill, I've created my own slideshow plug-in. I have a JS function for substitute x1 or x2 picture but there is a conflict with picturefill. And yes, the slideshow.php plugin is enabled (for the slideshowlink function). Sorry for the delay in response, there are lot's of photos to do these days... JS conflict - acrylian - 2014-06-03 The cycle/cycle2 script lets you create slideshows for any HTML element it is possible to use picturefill as well. Of course JS within JS is always a bit complicated at time with rebinding. It may take time until it will support zp_picturefill at all being no included plugin. We'll see. You can remove functions attached to filters using It is generally not recommended to disable the theme_head filter loading plugins uses it and it also includes the main jQuery file Zenphoto uses for everything. The slideshow.php page is separate so you can disable loading there of course. JS conflict - ClicClac - 2014-06-04
So I just need to use in the slideshow.php page ?
JS conflict - acrylian - 2014-06-04 Yes, that should work but you should remove the filter before it is used |