[SOLVED] Gallery - lightbox does not work

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

[SOLVED] Gallery - lightbox does not work

Post by frankmanl »

see http://buikdansenutrecht.nl/gallery/Had ... n-Vuur/117
I use Gallery 2.0.2 and Lightbox template.
The site's page template calls for jQuery, so I removed jQuery from the Gallery template to prevent a double call.
When I click an image it is opened as jpg, not in Lightbox.
As far as I can see jQuery is called, Lightbox's js file is called ... Why does it not work?

Frank

site info:


----------------------------------------------

Cms Version: 1.12

Installed Modules:

CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
ModuleManager: 1.5.8
News: 2.15.1
Printing: 1.1.2
Search: 1.7.12
ThemeManager: 1.1.8
TinyMCE: 2.9.12
Captcha: 0.5.2
Gallery: 2.0.2
CMSPrinting: 1.0.5
MicroTiny: 1.2.9
CGExtensions: 1.46.4
CGSimpleSmarty: 1.8


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 50000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.5.18
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 50M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.36
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found


----------------------------------------------
Last edited by frankmanl on Tue Jun 23, 2015 2:35 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery - lightbox does not work

Post by velden »

According to this page you need to set the data-lightbox attribute.

It seems you're using the rel attribute.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: Gallery - lightbox does not work

Post by frankmanl »

Thanks, but that does not solve the issue. I'm wondering if uninstalling and then reinstalling Gallery could solve my problem? My main concern: I'd lose my images and descriptions.
Would it be save to uninstall and then reinstall?
faglork

Re: Gallery - lightbox does not work

Post by faglork »

You are using jquery 1.9.1 ... lightbox 2.7.1 ships with jquery 1.11.0 ...

this might be the problem. Try to call jquery 1.11.0

Cheers,
Alex
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery - lightbox does not work

Post by velden »

You have a few problems:

rel="lytebox.." won't work as the plugin searches for rel="lightbox..." (or the data-lightbox as I stated before)

If you change that you'll see that the images aren't opened anymore on click so plugin does something.

I think you need to add some stylesheet somewhere, because the lightbox div isn't styled properly.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: Gallery - lightbox does not work

Post by frankmanl »

Thanks for your replies. I'll have a look at it this weekend.

Frank
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: Gallery - lightbox does not work

Post by frankmanl »

After making a back up of all essential stuff I uninstalled and removed Gallery.
Then I installed Gallery again - problem solved.
Post Reply

Return to “Modules/Add-Ons”