Adding a gallery

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

Sat Jun 15, 2019 5:33 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: 1664
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat Jun 15, 2019 10:54 pm

Which plugin do you use for statistics?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
Renaud
Sr. Bludit
Posts: 46
Joined: Tue Feb 19, 2019 9:08 pm

Sun Jun 16, 2019 5:48 am

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

Mon Jun 17, 2019 5:07 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:

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.

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: 1664
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Thu Jul 11, 2019 11:44 pm

Which editor do you use?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
ozbod
Sr. Bludit
Posts: 35
Joined: Sat Jun 15, 2019 10:26 am
Location: Stamford, UK
Contact:

Fri Jul 12, 2019 8:32 am

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: 46
Joined: Tue Feb 19, 2019 9:08 pm

Fri Jul 12, 2019 8:47 am

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:

Fri Jul 12, 2019 8:54 am

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:

Fri Jul 12, 2019 10:41 am

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