Page 1 of 1
Lightbox update 2.7.0
Posted: Sun Jun 01, 2025 12:22 am
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.
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 12:01 am
by onli
Is it on a public page? If yes, could you link it?
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 2:20 pm
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
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 4:29 pm
by onli
You might want to lower the cloudflare protection a bit ;)

- Screenshot 2025-06-02 at 16-26-15 Attention Required! Cloudflare.png (106.08 KiB) Viewed 970 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"?
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 10:22 pm
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.
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 10:49 pm
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?
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 11:22 pm
by jmglastetter
Yes, I could try it if you point me on where to find it, and the directory to install it.
Re: Lightbox update 2.7.0
Posted: Mon Jun 02, 2025 11:30 pm
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>
Re: Lightbox update 2.7.0
Posted: Tue Jun 03, 2025 5:22 am
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?
Re: Lightbox update 2.7.0
Posted: Tue Jun 03, 2025 9:04 am
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.