Lightbox update 2.7.0

Creating and modifying plugins.
Post Reply
jmglastetter
Regular
Posts: 21
Joined: Fri Dec 14, 2018 6:27 am

Lightbox update 2.7.0

Post by jmglastetter »

Hi!

I just updated from Lightbox 2.5.7 to 2.7.0 and the page images no longer open in a lightbox or have the left/right arrows once full size.
onli
Regular
Posts: 2934
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox update 2.7.0

Post by onli »

Is it on a public page? If yes, could you link it?
jmglastetter
Regular
Posts: 21
Joined: Fri Dec 14, 2018 6:27 am

Re: Lightbox update 2.7.0

Post by jmglastetter »

Sure thing! For me the thumbnails are now just maximizing, isolated as individual photos, instead of the lightbox slideshow.

https://preciseassemblies.com/driveway- ... ng-service
onli
Regular
Posts: 2934
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox update 2.7.0

Post by onli »

You might want to lower the cloudflare protection a bit ;)
Screenshot 2025-06-02 at 16-26-15 Attention Required! Cloudflare.png
Screenshot 2025-06-02 at 16-26-15 Attention Required! Cloudflare.png (106.08 KiB) Viewed 176 times
The lightbox plugin offers several types of lightboxes though. Do you remember which one was active, or which one is active now? Also, "Create Gallery" is set to "Gallery with photos of the entry"?
jmglastetter
Regular
Posts: 21
Joined: Fri Dec 14, 2018 6:27 am

Re: Lightbox update 2.7.0

Post by jmglastetter »

Are you outside the US by chance? If so, I have disabled that protection to see if it allows you access.

For my lightbox settings, I've attached a screen shot.
Attachments
Screenshot 2025-06-02 151324.png
Screenshot 2025-06-02 151324.png (61.28 KiB) Viewed 169 times
onli
Regular
Posts: 2934
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox update 2.7.0

Post by onli »

Yes, I'm in Europe, and thanks, the new setting worked.

The problem is in all likelihood caused by a change I did to 2.7.0. I removed the bundled jQuery version, being under the impression that all serendipity blogs have jQuery in their frontend. Your blog proves that assumption wrong.

Not sure how to continue now. Are you okay with adding jQuery manually to your site?
jmglastetter
Regular
Posts: 21
Joined: Fri Dec 14, 2018 6:27 am

Re: Lightbox update 2.7.0

Post by jmglastetter »

Yes, I could try it if you point me on where to find it, and the directory to install it.
onli
Regular
Posts: 2934
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox update 2.7.0

Post by onli »

You do not need to download it, Serendipity bundles it :) But you would need to add the code that activates it, that the current template seems to not have.

Add this html code to either the head section in the index.tpl of your theme, or you install a serendipity_event_head_nugget plugin (maybe you use one already?) and add it there:

Code: Select all

<script src="/templates/jquery.js"></script>
<script>jQuery.noConflict();</script>
jmglastetter
Regular
Posts: 21
Joined: Fri Dec 14, 2018 6:27 am

Re: Lightbox update 2.7.0

Post by jmglastetter »

Yay! That worked on my end. See if it works on your end.

This is how I inserted it into my index.tpl file so when I see it years from now, I won't forget why it's there.

Code: Select all

<!-- Activates the jQuery file in the Templates folder. Needed for the Lightbox plugin -->
<script src="/templates/jquery.js"></script>
<script>jQuery.noConflict();</script>
I now see the jQuery file in my template folder. It is listed as version 1.12.4.
Are there any other plugins that may be affected if jQuery's not activated in the template?
onli
Regular
Posts: 2934
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox update 2.7.0

Post by onli »

Yes, that works for me as well!

The jQuery version will be updated with the next s9y release.

I thought I removed the bundled (old) jQuery file from a couple of plugins, but right now I only see livecomment as another one.
Post Reply