Can you point me to an example page?
Thread Starter
wjm
(@wjm)
do you have an email address so i can email you the files?
the site is not live yet.
Shadowbox is displaying the
#sb-overlay
div,
Thread Starter
wjm
(@wjm)
update: the problem occurs even if you are not using shadowbox in that page, as the shadowbox files are loaded in every page.
Shadowbox works as a drop in replacement for lightbox. SO if it sees rel=”shadowbox” or rel=”lightbox” it is going to try and shadowbox it. The smart loading feature checks to see if there are links that contain either of those rel attributes and if so places shadowbox on the page.
There is no real way to fix this other than not using 2 plugins that do the same thing.
Thread Starter
wjm
(@wjm)
hi sivel.
i have modified
cache.js
changed
var relAttr=/^(light|shadow)box/i
for
var relAttr=/^(shadow)box/i
and in core.js
changed
galleryName=/^(light|shadow)box\[(.*?)\]/i,
for
galleryName=/^(shadow)box\[(.*?)\]/i,
clicked “update” in the settings page, and it worked!
i think this could be added as an option in the settings page.
something like.
* Make Shadowbox-js a drop in replacement for lightbox? [checkbox}
thanks sivel for mentioning that, great plugin as well as lightbox-plus.
Thread Starter
wjm
(@wjm)
and to avoid loading unnecessary files, make the following changes in inc/frontend.php
//$box_rel_pattern = '/\ rel=(\'|")(.*?)(shadow|light|no)box(.*?)(\'|")/i';
$box_rel_pattern = '/\ rel=(\'|")(.*?)(shadow|no)box(.*?)(\'|")/i';
//$slbox_rel_pattern = '/\ rel=(\'|")(.*?)(shadow|light)box(.*?)(\'|")/i';
$slbox_rel_pattern = '/\ rel=(\'|")(.*?)(shadow)box(.*?)(\'|")/i';
still the css files are loaded when not needed.
Hi Wjm, did you find a answer ou solution for your question? Can’t figure out what to do. I have the same issue here. Shadowbox loading at the same time of lightbox when trying to load images. But working fine shadowbox with video. Any hints? thanks
The lingering question is why? Why would you want to do this? It doesn’t make sense to use 2 different plugins that do the exact same things. Actually shadowbox does more.
My template has built-in lightbox/prettybox that I can’t figure out how to turn off. I would love use only shadowbox. Until there would be nice be able to disable the function. Seems silly but it’s the solution I can think now.