Adding a gallery

User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

So...
I downloaded the Github version and rename the folder "lightbox" and change the code "lightbox-v1.2" to "lightbox" in the plugin.php file for the css folder (please check, there is an error).

Now the plugin work, but it change the size of the Statistic graph in the admin panel (even if the plugin is not enabled) : Image
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Which plugin do you use for statistics?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

It's SIMPLE-STATS-PLUS with the feature "content stats" enabled.
User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

I fixed the issue. In the first line of the "plugin.php" file of the lightbox plugin, there is a typo : "<<?php" must be replaced by "<?php"

It's OK now.
ozbod
Sr. Bludit
Posts: 35
Joined: Sat Jun 15, 2019 10:26 am
Location: Stamford, UK
Contact:

Hi,
I have been trying to get the lightbox plugin to work as well for quite some time now but without success.
I have renamed the plugin folder to lightbox as mentioned in this thread but still not working.
I am also confused by the Settings > General > Images setting. It leads me to believe that this is where we set the size of thumbnail images but I only get full size images when I upload, I don't see any thumbnails.

My site is based on:
Bludit VERSION 3.9.2 BUILD 20190530
Theme Blekathlon 3.8.1
Lightbox 1.1
I hope you can help, I love Bludit and this now the only item stopping me from adopting it as my permanent cms solution, once this resolved I will be able to go Pro
Many thanks
Dave
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Which editor do you use?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
ozbod
Sr. Bludit
Posts: 35
Joined: Sat Jun 15, 2019 10:26 am
Location: Stamford, UK
Contact:

Hi Edi,
I use xed editor that is default in Linux Mint Cinnamon 19. I also use notepad ++
Thanks
Dave
User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

ozbod wrote: Thu Jul 11, 2019 9:55 pm Hi,
I have been trying to get the lightbox plugin to work as well for quite some time now but without success.
I have renamed the plugin folder to lightbox as mentioned in this thread but still not working.
I am also confused by the Settings > General > Images setting. It leads me to believe that this is where we set the size of thumbnail images but I only get full size images when I upload, I don't see any thumbnails.

Dave
Hi Dave,
The lightbox plugin does not provide the thumbnails, you must upload the thumbnails and the full size images.
Here is a page of my blog with the plugin : https://blog.renaudiltis.com/le-caudron-c450-epp
Here is the code of this page : http://www.renaudiltis.com/parURL/sample-caudron.txt
Here is the folder of my lightbox plugin (try it) : http://www.renaudiltis.com/parURL/lightbox.zip

As an example, here is the code for 2 pictures, with 4 files (the full size file and the "-thumb" file) :

Code: Select all

<p style="text-align: center;"><a href="https://blog.renaudiltis.com/bl-content/uploads/pages/e920ce8218642eacac642f06483fef65/filchaudnx-aile.jpg" data-lightbox="gallery2"><img src="https://blog.renaudiltis.com/bl-content/uploads/pages/e920ce8218642eacac642f06483fef65/filchaudnx-aile-thumb.jpg" alt=""></a> <a href="https://blog.renaudiltis.com/bl-content/uploads/pages/e920ce8218642eacac642f06483fef65/filchaudnx-decoupe.jpg" data-lightbox="gallery2"><img src="https://blog.renaudiltis.com/bl-content/uploads/pages/e920ce8218642eacac642f06483fef65/filchaudnx-decoupe-thumb.jpg" alt=""></a></p>
Hope this help. ;)
Renaud.
ozbod
Sr. Bludit
Posts: 35
Joined: Sat Jun 15, 2019 10:26 am
Location: Stamford, UK
Contact:

Hi Renaud,

thankyou so much for posting this help, I was kind of going round in circles and getting quite confused about the thumbnails, you have made this clear for me now.

I will let you know my results.

Have a good day
Dave
ozbod
Sr. Bludit
Posts: 35
Joined: Sat Jun 15, 2019 10:26 am
Location: Stamford, UK
Contact:

Hi Renaud,

I have used your code example modified with my paths and have also deleted the originally downloaded lightbox plugin and reloaded the copy you gave me and activated it.

I still get the feeling that the plugin is not working because I do not get a gallery and I do not see the back, forward arrows and close X.

My result is here:

https://dave.sdsa.co.uk/lightbox-test

and here is the code I have used:

Code: Select all

<p style="text-align: center;"><a href="https://dave.sdsa.co.uk/bl-content/uploads/pages/bde3641e33aabdb5f9998046f7ffaea9/router-on-sled.jpg" data-lightbox="test-gallery"><img src="https://dave.sdsa.co.uk/bl-content/uploads/pages/bde3641e33aabdb5f9998046f7ffaea9/thumbnails/router-on-sled.jpg" alt=""></a> <a href="https://dave.sdsa.co.uk/bl-content/uploads/pages/bde3641e33aabdb5f9998046f7ffaea9/log-on-sled-bed.jpg" data-lightbox="test-gallery"><img src="https://dave.sdsa.co.uk/bl-content/uploads/pages/bde3641e33aabdb5f9998046f7ffaea9/thumbnails/log-on-sled-bed.jpg" alt=""></a></p>
I have used both filezilla and cpanel file manager to load the plugin with the same results each time.

I also noticed this: "Make sure jQuery, which is required by Lightbox, is also loaded." on this page from the plugin authors site: https://lokeshdhakar.com/projects/light ... ng-started item 4 on this page. Is there a way to ensure that JQuery is loaded?

I am missing something I am sure but don't know what it is!

Thanks again for your valued help
Dave
Post Reply