Forgot?

conflict with BK-Thumb ?

Reply Topic
Link to this post 22 Mar 10

I installed both BK-Thumb plugin and Ninjashadowbox module on my Joomla 1.5.15 website.

I want to use BK-thumb to generate thumbnail automatically and to use Ninjashadowbox for shadowbox effect on some links.

Today I found something strange:

I inserted an external image in the article, without ANY link for the image.

Because that image is bigger than the thumbnail size I had set in Bk-thumb parameters, so Bk-thumb generated thumb image for it. Then, when I click on that thumb image, the full-size image will be open with Slimbox (selected in BK-thumb parameters) overlay effect. Then, I click the Close cross, but there still one layer remain. I have to click another Close cross to return to the page.

I am sure the two layers are different, one from Bk-thumb, one from Shadowbox.

I just wonder: why shadowbox took effect in such a situation? I did NOT set rel="shadowbox" for anything when writing that article.

I think, shadowbox should ONLY be triggered when there is rel="shadowbox" in a Hyperlink A tag. If no such an attribute, then shadowbox should stay quiet.

Maybe this is a bug? Hope you can solve this.

Thanks.


Edit:

Ok, when I check the source code of that page, I noticed that the Bk-thumb had set rel="lightbox" to that link to the full-size image. And this is the reason why Shadowbox was triggered.

Now, I think you can add a new feature to avoid this dual-layer problem: add "shadowbox trigger: rel=shadowbox only / rel=lightbox only / both ".

Thanks.

Link to this post 22 Mar 10

Hi,

Can you tell me what slimbox uses? If it is rel="lightbox", that would be the cause. Ninja Shadowbox has that built in for backward compatibility so that users who switch to shadowbox from lightbox don't have to recode all their html to include rel="shadowbox".

-M

Link to this post 22 Mar 10

Yes, slimbox uses rel="lightbox".

My suggestion is: can you make a new feature to limit shadowbox to be triggered ONLY by rel="shadowbox"?

Thanks.

Link to this post 22 Mar 10

Unfortunately not. It's built into Shadowbox, and we don't maintain/modify the shadowbox js *at all*.

Shouldn't be too hard to stop the slimbox js loading... that way you can just let shadowbox open it.

Link to this post 22 Mar 10

Ok, understand now, I will try to contact shadowbox-js author for such a switcher option.

Thanks.

Link to this post 22 Mar 10

Unfortunately that won't help us. The Shadowbox-js author no longer supports this version of Shadowbox. We use an old version that has a liberal license. The latest version of Shadowbox requires a payment to use on commercial sites.

Even then, why would you use two separate scripts on your site? This only increases page load times.

If I were you I would install Ninja Site Styler and tell it to remove the slimbox js.
That would prevent slimbox from loading and solve your problem.
Just my two cents.

Cheers
Mark

Link to this post 22 Mar 10

I have to use both Bk-thumb and Ninajashadowbox, I use former to handle images, and the latter to handle media files.

I don't know Ninja Site Styler, thanks for your recommendation. I will try it soon.

And now I have a new idea, I will try to suggest the author of Bk-thumb to add new options to use the shadowbox script provided by Ninjashadowbox, instead of the slimbox script of itself.

Thanks.

Link to this post 23 Mar 10

Great!
All he needs to do is provide the option:

Load slimbox js? : Yes / No

Link to this post 23 Mar 10

Yes, I had posted on BK-thumb's official forum about this idea.

Hope he will agree with me.

BTW, I think you can update your Ninjashadowbox module to use the latest shadowbox js, and warn the user not to use it on commercial site. Does this violate the Shadowbox-JS license?

Thanks.

Link to this post 23 Mar 10

Then our users would have to pay to use it on commercial sites. We'd prefer it to be available for use on any site :)

In any case, most of our members are web developers, and it would mean they can't use Ninja Shadowbox anymore.

Link to this post 23 Mar 10

Understand.

Then, is it easy to replace the current files in your module with latest shadowbox js? For example, I download the latest js form shadowbox home, and upload and overwrite files in your folder naina_shadowbox, then I finished the upgrading. No need to modify any code.

Is it possible?

This feature will make the module more flexible.

Thanks.

Link to this post 23 Mar 10

Is it possible?

It is definitely possible, but I have no idea how well it will work and we will not support it.

Home Forum Joomla Extension Support Ninja Shadowbox & Ninja ShadowPanel conflict with BK-Thumb ?