- Please add '[module / theme name]' along with specific subject in the title of your topic
- What information is required when asking for help in the forums?
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.
- For development specific discussions, please use the forums in the Tech Zone
Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.4.2 apache
Webserver = Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635.SR1.2
Database = mysql 4.1.21-standard, lock.system=database
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux pluto.hostingthing.us 2.6.17.6 #1 SMP Fri Jul 21 13:17:50 CDT 2006 i686
Default theme = PGtheme
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Hey guys, I was wondering if anyone had try to use the lightbox effect with the PGtheme? Specifically, when the full size option is picked for a photo, instead of a new page opening, the lightbox effect would take place?
Posts: 1023
what do you mean with lightbox effect? I have no idea... any example?
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 61
Oops, sorry about that, here's an example --
http://www.huddletogether.com/projects/lightbox/
Another using CS2 photo gallery -
http://www.photoshoplab.com/examples/lightbox_web_gallery/index.html
Posts: 1023
I see -- cool effect. Should be implementable - but - where would you like to see it? On the album pages instead opening the photo page? On the photo page only for the full size button? I have difficulties to see where it could fit in (with very big full sizes, the screen width and full size the theme offers, the original solution might be sufficient).
I would more see it on the lbum page to be able to show the standard resize as popup. Hmmm, ... let me see if I have some time ;)
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 61
hehe, not too sure, but I was thinking for the photo full size button in the photo page.
Sweet! Glad you're willing to work on it!
Posts: 1023
Something like this?
http://localmail.dynip.com/GALLERY2/v/trips/Rega/?g2_enterAlbum=1
Click on the Lightbox Icon in the album view.
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 44
I was thinking about this also. I would like to have it on item view page when I click on photo it will open full size of photo in lightbox instead in popup.
Posts: 1023
that's easy - the more time consuming part will be to make that customizable from theme admin. Let's look ...
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
OK, you can click the PopUp Icon now on the Photo Page too - it will open the FullSize (havn't found a quick way to use a resize).
The PopUp flag is currently set to 'ShowLightBox'
CU,
Lutz
EDIT Oops, I've added a check.permission for the full sizes - you need probably to go to the guest album to test it http://localmail.dynip.com/GALLERY2/v/Guest+Album/ (but I think I've opened the Events album for guests...)
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Hello !
If this helps in any ways, I have this working for the siriux theme embeded in WP: http://perso.mine.nu/photos.php?g2_itemId=7406&language=en
Wait for the page to be fully loaded (it seems lightbox only initiate on page load), then click on the first pic and navigate from the lightbox deal
Let me know if that helps and you have some questions
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
Hi Termite,
these Squirrels (?) are cute
I like the idea to link to the photopage from the description - how did you manage to get this?
Is there a way to put it on preload? I read something about a lightbox_init() on the authors homepage...
You support my idea to have it on the album page. Seems I've got it now quite working.
Thanks,
Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Lol, yeah they are
To link to the photo page I have added this to the <a> tag:
title='{$child.title|markup}<br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a>'
The title tag alows to customize the caption underneath and you can add pretty much whatever you like. I'm going to add the EXIF information when I get a chance so it'll be nice
For the preload thing I'm not sure in fact. I know there is a lightbox_init() that can be added to the body onload event but I'm not sure if it will allow for the lightbox plugin to work while the page is still bein loaded... I would have to look around for this, coz it sure is a bit anoying at times
Yeah the album page is pobably the best spot for it . I can't seem to get it to work on your site, is it still working under: http://localmail.dynip.com/GALLERY2/v/Guest+Album/ ?
See you !
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
I have it currently not on clicking on the image - its the little rightmost icon below the album thumbnails which opens the lightbox.
And ... cool - the Photo Page link works Thanks!
See you!
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
I just saw one issue I encounter - the language selector suddenly appears on the bottom of the page (which is normally hidden in the dynamic sidebar (right click) - one answer, 10 questions ;)
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Ok I have found the button (i'm slow i think ...) but now when I click it it doesn't display the pic. it just says loading and then done and nothing happens
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
hmmm - strange... this happened tome once with a big resize (my Upstream is too slow).
I'll check ...
EDIT and checked from worlk - you're right... the wheel keeps spinning - but works after I opened an image first directly
EDIT-2 and after restarting Firefox even works on first click ???
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
Termite,
can you please recheck Guest Album or v/Trips - I forgot to set the resize-Permission..., implemented now a full lightbox functionality with preload of the resizes in the background and added the lightbox_init patch (no need to wait..).
If you think its worth to try (and it works for you) I'll post the files if there is interest.
Thanks,
Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Yeaaah !! it's working great. Nice work ...
I have to honest with you tho ... your internet connection is pretty darn slow, or maybe mine .... ??
Anyways, it's working nicely
See you !
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1894
Oh and to anser your other question. I'm sure it's worth it to post it ... Maybe we should start a codex page for lightbox modifcation of the themes
I'm sure other people would be glad to use those
See you !
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 44
LF Frank: What browser do you using? I was trying the lightbox on your Guest + Album page and it's working great in Firefox, but not in IE and Opera.
Posts: 1894
lescheck,
It may be related to the slow connection he has, it's working fine on my install and there should be only little difference
http://perso.mine.nu/photos.php?g2_itemId=7406&language=en
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 44
Termitenshort,
It must be reason, because on your site lightbox works in all browsers. By the way, the squirrels are cute.
Posts: 61
wow, thanks you two for pushing forward with this! I think there will definitely be people interested in this.
yeah, lfrank's site was going slow for me too.
From lfrank's site it seems like it was implement on the album level, is there anyway to do it so that it appears on the 'full size' button on the photo level?
Posts: 1894
On the album level is the nicest so you can navigate between pictures right from the lightbox. there is previous-next button built-in and it just looks great !
Now, you can always do it on the photo level, it's just a matter of modifying the link slightly.
Time permitting, tomorrow I will start creating a small codex page regarding the lightbox plusing and it's possible implementation in the gallery themes.
See you !
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
cool, Yes - Sorry - my site has a pretty limited upstream...
I'll post the files this morning (just woke up ;))
CU, Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
just for the 'brave' ones ... a version to test
Needs the latest Nightly (2.2 SVN)
and adds
- Option to load the Photo via the Lightbox from the Album Page
- Option to cache resizes on the album page
- Option to add a Lightbox Button on the Albums (will switch to normal Photo if the above is selected)
and
- Option to use full size lightbox on the Photo Page.
Lightbox will be only 'visible' if you have permission to view resizes (on album pages) or source to view the full size (on the photo page), otherwise the theme will behave as usual.
Use it on your own risk -- It's running on my server and a test server (you might probably have to change the logo
files (coded as GalleryLogo_lfon.png and GalleryLogo_lf.png in theme.tpl).
No colorpacks and extras included.
CU,
Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
whiteturtle, there is a switch to have it on photo level - but only full size (which are huge on my site - and therefore I've disabled it on my site)
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
leschek, hmm - I changed the original lightbox.js with the patch to initialize it first and not at the end of the page load...
but I assume its the preload of images with CSS function ( .hiddenPic {display:none;} )implemented in lightbox.css...
CU,
Lutz
EDIT No, it was a missing else ">" ... now it works with the albums, too
just checked with an old IE 6 - just change the album.tpl attached. The full archive is updated.
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 44
LFrank: Thank you. Lightbox seems to work and it's great. I just find one strange thing. When I open image in lightbox a close it (lightbox) it leave on the page language box (I have it normaly in sidebar). You can see it here: http://www.angrezphoto.com/gallery2/main.php?g2_itemId=117&g2_enterAlbum=1 when you click on thumb. It's happen also on Photo page.
Gallery version = 2.2-svn core 1.1.14
PHP version = 4.4.2 cgi
Webserver = Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.1.18-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, Gd, ImageMagick, LinkItemToolkit
Acceleration = none, none
Operating system = Linux server4.hostingplex.com 2.6.16.18 #5 SMP PREEMPT Tue May 23 14:29:55 EDT 2006 i686
Default theme = PGtheme
gettext = enabled
Posts: 1023
leschek, I'm justing fighting with this too - I already have it disabled from the themes options, but it sometimes is still used in the sidebar (I expect some caching issues). I experiment with layer priortities at the moment - no idea at the moment what causes this...
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
Ah yes, for those who want to test the lightbox_init at page laod time, I've atatched the modified Java-Script.
The archive contains the original distribution of Lightbox 2.02.
See you!
Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Thanks LFrank, I'll try the modified version
For the language bar problem. It may be a conflicting javascript function between PG and lightbox. Lightbox "hides" the all screen when it show it's little window over the top so I guess when it shows everything bak it uses some CSS styling and that make part of the sidebar comming back.
Did you try forcing the language bar ID, name and all to something different to see what happens ?
See you !
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
Termite,
you're right - there are some z-index set in the lightbox css, which might be conflicting. I tried a bit to stack them in order but no full success yet the language-block bleeds through. Probably its hidden in the block setup of the language selector itsself... I follow up...
See you,
Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1023
Termite, is there a way to check the image dimensions? (http://gallery.menalto.com/node/53411)
If my lightbox tries to open a resize > the full size of the image, it stalls ...
PS.: just ordered an upgrade of my upstream from 192kbit/s to 567kbit/s - that should help my Gallery a bit ...
CU,
Lutz
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Well I would put something together like this:
Because if the picture is smaller than the resized, then there is no resized item created for it which will indeed make your script fail. So with the above code, it will (in that case) fail over to the ID of the item itself which is smaller than the size you're looking for.
I haven't gotten time myself to test it out since the last time. My sirius imlpementation is still using the full size items (which isn't good for sure).
See you !
PS: Great we will enjoy your pic at a faster rate soon
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
hmm, doesn't work ... it constructs the 'download' URL but leaves "g2_itemId=" empty...
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 1894
Oo wait yeah, you're right ... my mistake
This should do it
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
cool that worked
Thanks!
Gallery version = 2.2-svn core 1.1.15
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 7
I tried using the zip pack posted above, but no luck getting it to work, it says
" Core API Required: 7.0 (available: 7.2)
Theme API Required: 2.4 (available: 2.3)"
I tried modifying an existing (working) version of PG theme, but no luck there as well.
Just curious if there are any updates, i will fight through it for now.
Thnaks
Posts: 7
ok, nevermind, got it installed by modifying theme.inc
However, it is still not quite right becuase any changes i make in the site admin to the theme do not stick. It simply revers upon reload.
Posts: 1894
You need to upgrade to the latest SVN to use the packages posted by LFrank.
I started putting togethere a tutorial to explain how to use lightbox with gallery. When it's completed I'll publish it (this week I hope)
See you !
-------------------------
The Termite - - http://perso.mine.nu/
Posts: 1023
And I started a new thread here http://gallery.menalto.com/node/54063
with a new version ... called PGlightbox ;)
In detail described at the Codex http://codex.gallery2.org/index.php/PGlightbox
Gallery version = 2.2-svn core 1.1.16
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de
Posts: 7
ah yes, using the svn, MUCH better!
However, using version 1.1.1, when clicking a link to open the lightbox, the spinner just comes up, but does not load the picture....sitting there, spinning away forever.
Posts: 1023
nik, is the image smaller than 800px? (should be fixed with the latest update), or do you have permission to view resizes? - could you dare to try the new version posted?
CU
Lutz
Gallery version = 2.2-svn core 1.1.16
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.3 (Win32) DAV/2 PHP/5.1.4 mod_ssl/2.2.2 OpenSSL/0.9.8b
Database = mysql 5.0.22-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de