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.

 
Studio224

Joined: 2002-08-23
Posts: 1
Posted: Fri, 2002-08-23 14:38

I am interested in that mod... If you have time to post it... I would like it!

Anne-Claire

 
ajs279

Joined: 2002-09-01
Posts: 23
Posted: Sun, 2002-09-01 07:56

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

 
Sara

Joined: 2002-08-28
Posts: 11
Posted: Sun, 2002-09-01 13:10

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?

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Sun, 2002-09-01 20:30

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,

 
Sara

Joined: 2002-08-28
Posts: 11
Posted: Mon, 2002-09-02 00:37

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!

 
Sara

Joined: 2002-08-28
Posts: 11
Posted: Mon, 2002-09-02 13:35

I found it on the style sheet. :smile: Now, on to the next thing!

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Mon, 2002-09-02 16:32
Quote:
I found it on the style sheet. :smile: Now, on to the next thing!

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!

 
Sara

Joined: 2002-08-28
Posts: 11
Posted: Tue, 2002-09-03 11:22

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:

 
jag0

Joined: 2002-08-20
Posts: 3
Posted: Sat, 2002-09-07 06:54

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

 
tSlater

Joined: 2002-08-17
Posts: 8
Posted: Sat, 2002-09-14 20:33
Quote:
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

: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.

 
Rakuun

Joined: 2002-09-26
Posts: 3
Posted: Thu, 2002-09-26 20:01

Does anyone still have this mod? It is no longer on the website posted.

 
jag0

Joined: 2002-08-20
Posts: 3
Posted: Fri, 2002-09-27 06:30

main gallery : http://www.poojyum.com/pics/

the mod : http://www.poojyum.com/pics/2columnmod.zip

sorry for url change.

 
Rakuun

Joined: 2002-09-26
Posts: 3
Posted: Fri, 2002-09-27 18:09

Thank you very much! :smile: I really appreciate this.

 
Chimp

Joined: 2003-07-25
Posts: 5
Posted: Wed, 2003-07-30 23:18

This is a great mod but how do I make the text spread out horizontally rather than bunching into a thin column?

 
the_menace

Joined: 2004-02-16
Posts: 39
Posted: Sat, 2004-03-13 02:54

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..

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2004-03-13 04:50

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

 
the_menace

Joined: 2004-02-16
Posts: 39
Posted: Mon, 2004-03-15 05:47

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.

 
tbrumm

Joined: 2004-06-09
Posts: 3
Posted: Wed, 2004-06-09 16:50

Hi,

sorry, but if i try to download this zip file, i have to enter a username :-(

Torsten

 
hdixon
hdixon's picture

Joined: 2003-07-17
Posts: 10
Posted: Sun, 2004-06-13 12:18

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.....

 
lawrence

Joined: 2002-12-28
Posts: 24
Posted: Thu, 2004-08-05 14:56

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

 
hdixon
hdixon's picture

Joined: 2003-07-17
Posts: 10
Posted: Thu, 2004-08-05 19:44

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

 
Carl_in_Florida
Carl_in_Florida's picture

Joined: 2003-01-07
Posts: 110
Posted: Mon, 2004-08-23 03:37

Hopefully someone can post a new version

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Mon, 2004-08-23 18:36

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