Can't get Lightbox to work with customized Matrix, Gallery 2
|
afterdark
Joined: 2008-09-10
Posts: 30 |
Posted: Mon, 2009-10-19 20:13
|
|
Quote:
Gallery version = 2.2.5 core 1.2.0.7 I'm trying to make my embedded gallery page work with lightbox. I'm following this tutorial but am hitting 2 problems. 1. When I add the stylesheet and js lines (point 8 on the tutorial) it totally screws my final page (big black square over top half of screen and a permanent empty lightbox box at the bottom). It's like the lightbox stylesheet and my own stylesheet are clashing. I tried including the lightbox stylesheet contents at the bottom of my own stylesheet but the same thing happened. I'm really in the dark on what I'm doing here. You can see the mess I've made here (it should be a 3x3 thumb grid!) 2. Even with the above page-wrecking lightbox stylesheet in place, the actual functionality isn't working. When you click thumbnails it still loads the gallery HTML page of that image, not the lightbox version. In the tutorial (point 10 and 11) the 2 lines of code it advises to replace seems a little out of date: <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"> the code in my Matrix theme is: {capture assign=linkUrl}{g->url arg1="view=core.ShowItem" I changed it to: and for the second link: {g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" rel="Lightbox[gallery]"} But it didn't work. I've no idea if the syntax is right, I was just using my best guess. Any help on this would be muchly appreciated. |
|
| Login or register to post comments |

Posts: 30
bump - anyone, please?
I'm kinda really stuck with this one.
Posts: 16315
Perhaps the tutorial was not written for your version:
Either way you should upgrade as there is security and other bug fixes sine then.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
OK, am about to brave an upgrade - just a bit puzzled on doing backups.
I've backed up the database via phpMyAdmin and have an sql file and a zip of the sql file.
Do I need to back anything else up - eg the photos and themes?
Is this just a case of downloading my 'gallery' folder from my webserver to my local drive via ftp?
Posts: 16315
Yes
That will work but might take some time. Don't forget the g2data folder and all the hidden files ( they start with a dot ).
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
What would be a quicker way?
I'm on a Mac. If there's some line I can type into Terminal to zip the whole site up, I imagine that'd be better than downloading as OSX will just hide all the hidden files as soon as they hit my HD.
Posts: 16315
http://codex.gallery2.org/Gallery2:FAQ#How_do_I_backup_G2.3F
Yes if you have some utility to zip up the data it will go faster.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
Think I've got it all backed up - are there likely to be any other hidden files other than .htaccess I should check for?
Posts: 16315
Not that I can remember. Some people miss the versions.dat file int eh g2data direcotry.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
I've copied the unzipped gallery 2.3 onto my server ready to run the installer.
I'm currently using a custom theme (a duplicate of Carbon, renamed) in my gallery 2.2.5 version - should I copy that renamed theme folder over to the new 2.3 folder before running the installer?
Posts: 16315
If your DB on the old install was using a theme then the new location needs it as well.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 30
Ok, I'm at step 4 of the installation. It's saying to pick a g2data folder with a random string appended.
Do I point it to my old g2data folder which includes a random string (currently sitting in my original gallery directory, now called 'gallery_old'), or do I need to copy that g2data folder to the new 2.3 folder?
Or do I need to let it create a whole new g2data folder with a completely different string?
...oh, and regarding the modules installed, I additionally had things like watermark and imageframe installed with custom graphics - should I just copy those folders over to the new 2.3 modules folder, or do i need to reinstall them via the site admin?