Based on the comments here, I implemented a similar solution at http://mikeage.net/content/gallery/updates/ . I also added a lightbox based resizing for vertical images, with a zoom to allow one to see (in the lightbox frame) the full resized image. I posted the steps I used on my site at http://mikeage.net/2006/09/03/gallery-2-lightbox/, which is probably easier than retyping everything here.
Unlike most of the posts here, my theme is based on classic, not matrix/siriux -- maybe this might help someone.
Thanks to all those who commented here, I couldn't've done it without you!
Fatal error: Smarty error: [in gallery:themes/opticalpork/templates/album.tpl line 87]: syntax error: unrecognized tag: $child.title|markup|wordwrap:10:" ":true (Smarty_Compiler.class.php, line 436)
JohnEvans
Joined: 2006-11-03
Posts: 2
Posted: Fri, 2006-11-03 23:07
Hah, that was just what I needed. About to set it up on my new Therabreath site
Thanks
gumnaam1
Joined: 2006-05-04
Posts: 4
Posted: Thu, 2007-02-22 22:38
I am confused by this.
PeerList block will fetch peers of $Item. In this case since we are at the album (album.tpl).
it fetches peers of the album, but what I need is the peers of the Album's child photos.
I am trying this with Gallery 2.2 rc1.
Any pointers guys ?
lvthunder
Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-02-22 22:48
Feed the PeerList with the first item of the album. That will give you all the items in the album.
gumnaam1
Joined: 2006-05-04
Posts: 4
Posted: Fri, 2007-02-23 02:16
thanks lv,
but how do i feed the first item of the album. I checked the code here, it doesn't seem to do so
,
Also an album can have sub albums, which I don't want in the peer list, I want only photos, I guess
I can use canContainChildren , to filter those out, but I still need to know how to feed the first item
in the album to the peer list block
thanks
lvthunder
Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-02-23 02:45
Take a look at how I did it in the greypop theme. Look in albumlight.tpl and the tpl files in the module.
Posts: 138
Based on the comments here, I implemented a similar solution at http://mikeage.net/content/gallery/updates/ . I also added a lightbox based resizing for vertical images, with a zoom to allow one to see (in the lightbox frame) the full resized image. I posted the steps I used on my site at http://mikeage.net/2006/09/03/gallery-2-lightbox/, which is probably easier than retyping everything here.
Unlike most of the posts here, my theme is based on classic, not matrix/siriux -- maybe this might help someone.
Thanks to all those who commented here, I couldn't've done it without you!
Posts: 9
Hey take a look at this: http://rbya.org/beta/gallery/main.php?g2_itemId=1138
why doesnt the lightbox show the image when it clicked?
Posts: 808
When you look at the link it says http://rbya.org/beta/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=
The itemId needs to have a number after it like the link you posted.
Posts: 3
I switched over to litebox.
http://www.mattder.com/wp-gallery2.php?g2_itemId=10.
Works the same and less bloat.
Posts: 12
Is the opticalpork theme finished already? Where can I find it?
I just LOVE that theme, and I would like to try it out on my site!!
Posts: 13451
It's not finished, nor guaranteed to work on newer G2 installs. The code has been submitted to gallery-contrib on sf.net ( http://gallery-contrib.svn.sourceforge.net/viewvc/gallery-contrib/trunk/gallery2/themes/opticalpork/ ) and I see bharat has done some cleanup on it. Try it out.
h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org
Posts: 12
I will, thank you very much Hobbel
Posts: 12
Fatal error: Smarty error: [in gallery:themes/opticalpork/templates/album.tpl line 87]: syntax error: unrecognized tag: $child.title|markup|wordwrap:10:" ":true (Smarty_Compiler.class.php, line 436)
Posts: 2
Hah, that was just what I needed. About to set it up on my new Therabreath site
Thanks
Posts: 4
I am confused by this.
PeerList block will fetch peers of $Item. In this case since we are at the album (album.tpl).
it fetches peers of the album, but what I need is the peers of the Album's child photos.
I am trying this with Gallery 2.2 rc1.
Any pointers guys ?
Posts: 808
Feed the PeerList with the first item of the album. That will give you all the items in the album.
Posts: 4
thanks lv,
but how do i feed the first item of the album. I checked the code here, it doesn't seem to do so
,
Also an album can have sub albums, which I don't want in the peer list, I want only photos, I guess
I can use canContainChildren , to filter those out, but I still need to know how to feed the first item
in the album to the peer list block
thanks
Posts: 808
Take a look at how I did it in the greypop theme. Look in albumlight.tpl and the tpl files in the module.