2 column layout mod
jag0
Joined: 2002-08-20
Posts: 3 |
Posted: Tue, 2002-08-20 10:21 |
this mod lays out the photo and its caption in 2 columns. photo goes on the left. caption on the right. lets me write more about the photo than the default multi-column, multi-row layout. see http://www.poojyum.com/pics/2columnmod.zip Unzip and replace the files in the original distribution with the new ones. Was tested with Gallery 1.3 ONLY so I dont know if it works with newer versions and I am unfortunately not responsible (nor available for bug fixes) if anything goes wrong. Just posted this link because I am receiving many emails asking me for the mod. One word: Backup! --jag0 PS: updated with new link on october 4, 2005. |
|
Posts: 1
I am interested in that mod... If you have time to post it... I would like it!
Anne-Claire
Posts: 23
It took me a couple of hours to fine tune, but I figured out the right code to get you 2 columns when viewing a particular photo- the left hand side column for the picture, the right hand side column to display the caption and comments.
For demonstration, view a picture at
http://www.andystoys.net/html/gallery.catalog/
Since I screwed around so much with the about 1/3 of the code of view_photo.php and don't know exactly what's changed, I'll offer the entire modified file. Rename the file and overwrite your current view_photo.php (don't forget to make a backup of the original first). It's in your base Gallery directory.
http://www.andystoys.net/html/gallery/view_photo.removethisphp
Posts: 11
Hi, I went and made a back-up of the mod and put yours in my gallery folder. Nothing changed. I would love to use it. Any ideas? What should the properties be set at for columns and rows? Is this a mod for the actual photos or for the album selection index page?
Posts: 1301
Hi Sara,
I didn't know you were using Gallery too. Nice, isn't it?
Did you put his page in place of your view_photo.php or did you take the changes and insert them where necessary?
I opted for just removing the comments from under the thumbnails - you don't see the comments until you view the actual photo. Let me know if you can't figure out how to do it and I can post it here - since I'd already figured it out with the script I was using before Gallery it was an easy mod for me.
Regards,
Posts: 11
Wow, hiya Gaile! That would be cool, thankie! I just found this program last week and have been fooling with it some. I have 2 albums up on our home site: http://www.gregnsara.com that you can see anyway. :wink:
In the newest album ..
what I'm trying to do is have one picture on each of the internal pages of the album. I would love to have a blurb underneath the picture, it's too long and wide. Maybe someone can just tell me where to tweak the width and height?
I think I can figure it out, but, pointing me in the right direction keeps the gray hair away.
Thanks in advance!
Posts: 11
I found it on the style sheet. :smile: Now, on to the next thing!
Posts: 1301
I'll bite...found what on the style sheet? You mean you figured out the 2 column mod? If so - great!
To remove the comments from thumbnails but not the main photo - look in view_album.php. Comment out these two lines (they are about 20 lines apart - I'm just referring to my notes at the moment):
$myDescription = $myAlbum->fields[description]; (put a // in front to disable)
and
echo($gallery->album->getCaption($i)); (same thing - use // in front to disable)
Have fun!
Posts: 11
Thanks for that Gaile!
I found on the .css where to make the width for the blurb. :wink:
I'm still trying to figure out the "book" thing though. Thanks for the email. I did see on the inline template how it calls for it to look like a book.
I will keep on messing with it until I get it the way I want.
:smile:
Posts: 3
heres the zip file for the two column mod. replace the view_album.php and view_photo.php with the files in this zip file.
make sure u back up ur original files, so that u can replace them if something goes wrong.
http://www.poojyum.com/gallery/2columnmod.zip
cheers
Posts: 8
:eek: I was looking for something EXACTLY like this several months ago.. Thank You so much!!!
I have two questions though..
A) will your modification allow me to have more than 10 images on each page?
B) And (although not DIRECTLY related to this) is there any way I can change it so that the thumbnail size only applies to width (but still proportionate) eg: having thumbnails which are never wider than 100 pixels but CAN be more than 100 pixels tall.
Posts: 3
Does anyone still have this mod? It is no longer on the website posted.
Posts: 3
main gallery : http://www.poojyum.com/pics/
the mod : http://www.poojyum.com/pics/2columnmod.zip
sorry for url change.
Posts: 3
Thank you very much! :smile: I really appreciate this.
Posts: 5
This is a great mod but how do I make the text spread out horizontally rather than bunching into a thin column?
Posts: 39
Hi all. I was looking for the exact mod but when I applied both the view_album.php and view_photo.php to my existing one, it gave me an error--
Fatal error: Call to undefined function: pluralize() in /home/mrtoon/public_html/gallery/view_album.php on line 200
Please help..
Posts: 27300
the_menace,
This mod is OLD and was not built with the version you are using. All is not lost though; find pluralize() in the file and replace with pluralize_n()
Worth a try anyway....
Then there will no doubt be more functions that have changed much like the next version.
Dave
Posts: 39
It didn't work but thanks anyways. Is there anybody working on a newer update or something similar to this? I'm thinking of a few re-arrangements in html but not exactly sure how to accomplish that. Thanks for the support.
Posts: 3
Hi,
sorry, but if i try to download this zip file, i have to enter a username
Torsten
Posts: 10
I'd also love to see a 1.4.x version of the 2 column mod. I wonder if G2 allows more control of the layout. Guess there's only one way to see.....
Posts: 24
HI I am using 1.4.4
I tried the 2column mod and got this error in the album view
Fatal error: Call to undefined function: isalbumname() in /home/cepa/public_html/catalog/view_album.php on line 361
Any idea on how to fix it please?
Thanks
Posts: 10
It won't work for the current version(s). I was looking for the same thing but finally ended up hackin away to get what I wanted.
Dunno if G2 will provide this type of layout.
HD
Posts: 110
Hopefully someone can post a new version
Posts: 1301
G2 will allow for a lot of layout flexibility, even more than the 2 column mod you are thinking of at this point.
Who did the original 2 column mod for G1? If they are still around, perhaps you could email and ask if they could update? (never hurts to ask)!
Good luck!
Gaile