Mel VIP
Total posts: 126
22 Нояб 2013 21:15

1/

In image field parameters - view, submission and edit access are all set to ‘public’. Also “Allow lightbox to show original” = **‘yes’ **for both list and full view.

For logged out or logged in users, when thumbnails or full image is clicked the screen turns dark but no image shows.

2/

In image field parameters view, submission and edit access are all set to ‘public’. Also “Allow lightbox to show original” = ‘no’ for list and full view.

For logged out users or visitors who click the thumbnail they get a message saying they need to log in first.

I’m using the calendar mod and the article can be seen by ‘public’ when the link in the calendar is clicked.

How can I fix this?

Последние изменения: 02 Март 2014


Jeff VIP
Total posts: 745
22 Нояб 2013 22:15

Mel

For logged out or logged in users, when thumbnails or full image is clicked the screen turns dark but no image shows.

Same problem here :(


pepperstreet VIP
Total posts: 3,837
23 Нояб 2013 00:06

Yep, confirmed. Although, no visible script errors in console etc.

Workaround:

Download LATEST version here.

Rename folder to "lightbox" and replace whole folder in media/mint/js/

Cobalt installed 2 years old version. That one seems to conflict with J!3.2 latest jQuery update!

Fortunately, Lightbox 2.6+ is made for the newer jQuery.

Just replaced it. Works!


pepperstreet VIP
Total posts: 3,837
23 Нояб 2013 00:23

But where light is... is also shadow ;-)

There is a visible and known bug with Bootstrap! Image/Container height is wrong :-(

There was a fix mentioned, but it does not apply to J! and Bootstrap.

I remember, I have mentioned this in another topic before. So, it might be time to get rid of Lightbox2 !?

What is the lightbox standard in J!3.2++ anyway? - Bootstrap2 modal window? (why not) - Modal.JS and SqeezeBox? (Mootools!!!)

Other alternatives:

I think bootstrap is not wrong for simple stuff like single images. There are also some 3rd-party "add-ons" for bootstrap modals. One even includes Swipe.js for gestures)

But why not use 1 solution for all: image field AND also usable in gallery field etc.

  • FancyBox (favorite of many other projects)
  • Colorbox (funnily, old image based rounded corners?)
  • Galleria.io (already used in gallery field, but not located in mint-media library. Maybe better to put it there?)
  • ShadowBox (older, but very stable and compatible)

pepperstreet VIP
Total posts: 3,837
23 Нояб 2013 00:36

There is a visible and known bug with Bootstrap! Image/Container height is wrong

There was a fix mentioned, but it does not apply to J! and Bootstrap.

There was another issue with height.

Please, try general CSS fix:

.lb-image{

max-width: inherit;

}

Specific issue and fix regarding "Bootstrap conflict":

.lightbox .lb-image{

max-width: none;

}

Maybe included in latest build/master download?

PS: The issue list is very long and fresh, IMHO ;-)


pepperstreet VIP
Total posts: 3,837
23 Нояб 2013 00:41

Maybe included in latest build/master download?

Yep, CSS fix works in my quick test with J3.2 Protostar.

DOWNLOAD latest build


pepperstreet VIP
Total posts: 3,837
25 Нояб 2013 11:32

@Mel

Please, turn this topic into a "bug-report". So, it might get higher priority for the next media library update on Thursday. Thanks in advance.


Mel VIP
Total posts: 126
26 Нояб 2013 05:57

Ok I made it a bug report...


pepperstreet VIP
Total posts: 3,837
28 Нояб 2013 22:19

Yep, CSS fix works in my quick test with J3.2 Protostar.

DOWNLOAD latest build

Mmh... Lightbox update did not make it into the last thursday update!? :S


pepperstreet VIP
Total posts: 3,837
05 Дек 2013 12:31

Workaround:

Download LATEST version here.

Rename folder to "lightbox" and replace whole folder in media/mint/js/

Cobalt installed 2 years old version. That one seems to conflict with J!3.2 latest jQuery update!

Fortunately, Lightbox 2.6+ is made for the newer jQuery.

Second week... Mint Media Library is still v.8.71

No updated lightbox script update, yet!?

Работает на Cobalt