gallery 1.5 and 2 or 3 column front page

sylvie58

Joined: 2003-11-12
Posts: 3
Posted: Tue, 2005-04-19 02:30

Had previous version of gallery with the mod for the 2 or 3 columns on the front page. When I upgraded to 1.5 latest version this does not work anymore am I missing something?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-04-19 02:39

The fact that upgrading over writes all the changes you made?

 
sylvie58

Joined: 2003-11-12
Posts: 3
Posted: Tue, 2005-04-19 02:45
fryfrog wrote:
The fact that upgrading over writes all the changes you made?

I am sorry I wasn't very clear. I did overwrite the albums.php but than after that applied the colums mod but that didn't work for me this time. Could I use the old albums.php file from 1.4.2 or isn't that going to work with the rest of the gallery

 
justchil
justchil's picture

Joined: 2003-02-07
Posts: 225
Posted: Tue, 2005-05-10 16:11

I'm curious about this as well.. I'm getting ready to upgrade to 1.5 myself.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-05-10 23:12

I'm sorry, but your description of "that didn't work for me" is very lacking. It doesn't convey any information about what aspect didn't work. Did you get a code error that causes the page to not load? Does the page load but with none of the changes you made? What about a link to your site?

I would not use an albums.php from 1.4.2 with any other version of gallery, just like I wouldn't want to try and use system files from windows 98 with windows 2000 or something like that.

Maybe you could post to the columns thread where you found the mod?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2005-05-11 14:26
sylvie58 wrote:
...... but than after that applied the colums mod but that didn't work for me this time. .....

Whwn you applied the mod did you just overwrite the files? OR id you compare the modded version with the new albums.php?
If you just overwrote the new version with the old version then that is your problem. You have to find out what code changed in the old version and apply it to the new version.

Dave

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-05-12 06:42

Attached are 2 files (version 1.5) depending on how you want the layout.

If you want to change the number of columns then look for <?php if (round($i/2,0) <= ($i/2)) { ?> and change to<?php if ((round($i/3,0) > (($i/3)-0.01)) and (round($i/3,0) <= ($i/3))) { ?> or changing the 3's to 4's of you want.

With the title and text under the image the image height has to be consistant accross all heighlights. This might not be the case so you will have to crop accordingly or it will not look right.

Rename to albums.php

Dave

 
iliam

Joined: 2005-06-26
Posts: 2
Posted: Sun, 2005-06-26 22:29

Thanks, that did the trick for me.

 
rioguia

Joined: 2003-12-20
Posts: 22
Posted: Tue, 2005-08-02 01:57

Floridave: Your work is amazing and I am sorry to trouble you with a question. I used the albums files (descriptions on the left version) from above. On www.lubuto.org/gallery it worked great using the black skin. On www.dexter1976.com/gallery , using the bred skin, I get the error: "Error: Problem including file ml_pulldown.inc". Both are Gallery.1.5-RC1 versions. The only modification to the dexter1976 gallery is to the screen.css file which I have attached. My error logs seem to be giving error messages like:

Quote:
[client 68.142.251.100] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/vh07/templates/dexter/template.htm:19) in /var/www/html/vh07/gallery/lib/lang.php on line 364

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-08-02 03:04

I doubt that the error you get is from the css.
look to see if you have ml_pulldown.inc on the site you are having trouble.
/gallery/layout/ml_pulldown.inc you have on one site but not the other.

Another note: http://www.lubuto.org/gallery/ the search text box is not visable. Perhaps a html_wrap issue.

Dave

 
rioguia

Joined: 2003-12-20
Posts: 22
Posted: Wed, 2005-08-03 02:26

Thank you. Right on both counts Floridave! The fix for the error message simply required copying the missing file (not sure how I clobbered that file). The search field was fixed in the modified albums.php like this:

echo '<span class="search">'. _("Search") .': </span>';^M
/* We made the input style="font=10pt" because fineprint is set to display: none; */
                echo '<input style="font=10pt" type="text" name="searchstring" value="" size="25">';
 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Fri, 2005-09-23 14:52

Hi,
Looking for these files (from the 5-11 post from Floridave). Can't seem to find them. Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-09-23 17:44

The transfer of the old forums to the new forums has caused some "issues". I THINK the first post has the right files.

Dave

Gallery Frames / Mods || G1 Test Gallery

 
hnorfleet

Joined: 2006-03-21
Posts: 2
Posted: Tue, 2006-03-21 16:52

Thanks for the mod floridave! I've used it sucessfully here: http://www.placetocallmyown.com/gallery/albums.php . I would like to request the same type of mod for sub albums (for example http://www.placetocallmyown.com/gallery/sale )

Any assistance appreciated!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-03-21 18:59

Not sure what version of Gallery you are running but if you have the madmod1 skin that will get you in the right direction. If you don't have that skin the upgrade and you will find that the view_album.php page will have the layout with <div>s and not as many tables. This allows the "flow" of the title etc to go tot he right.

Dave

 
hnorfleet

Joined: 2006-03-21
Posts: 2
Posted: Tue, 2006-03-21 20:03

Thanks for the quick response. I'm running 1.5 with no template, using modified headers, footers and css. I tried using the madmod skin but I frankly don't have time to modify the skin or figure out how to edit the view_album page to display as preferred. If there hasn't been a mod created for this I would be willing to pay for such a mod.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-03-21 22:41

You should be alble to do this with the album properties and css. Change the album properties of "sale" to display one column (not 3 like you have now) and as many rows as you like. The text _should_ go to the right.

If not send me a PM with the mod requirments.

Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
rioguia

Joined: 2003-12-20
Posts: 22
Posted: Tue, 2006-05-09 03:33

When I used your recent modified albums.php I get the following error message:
PHP Fatal error: Call to undefined function pluralize_n2() in /var/www/html/vh02/gallery/albums.php on line 156

I am using gallery 1.5.3 on fedora core 4 using php5. Any thoughts you might have would be appreciated.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-05-09 03:53

The above files where for 1.5 not 1.5.3. Jens has changed a lot of things in the last 2 or 3 versions.

One could remove or comment out that line and see if it works ( no guarantee)

Dave

 
grobyak

Joined: 2006-07-07
Posts: 6
Posted: Thu, 2007-08-16 20:08

I updated my gallery to version 1.5.6 and tried to apply the above album.php instead, but it seems not to work - all you see is the gallery header, but no albums. I am a total novice in php - can someone help (or maybe someone has already customized) with a album.php file that has 3 columns on the main page? It would be very helpful!
Thanks in advance for your kind help.

 
chakotay

Joined: 2007-12-15
Posts: 5
Posted: Sat, 2007-12-15 19:41

I have a 4 x 4 front page.
If you are interrested I can post my changes?

Customised Gallery v1 ?
http://photo.terriet.eu
Gallery 1.5.7 on Windows NT4 Sp2

 
chakotay

Joined: 2007-12-15
Posts: 5
Posted: Thu, 2008-03-27 22:13

Here is my albums.php file.
The middlepart is taken out and put in the albums_admin.php
The 4 x 4 album is in the albums_normal.php
If you look in the albums.php file you notice the part were it says:

if ($gallery->user->isLoggedIn()) {
include("albums_admin.php");
} else {
include("albums_normal.php");
}

So if a user is loggedin you see the original.
If a user is not loggedin you see the 4 x 4.

Hope this helps the people that pm'ed me.

Customised Gallery v1 ?
http://photo.terriet.eu
Gallery 1.5.7 on Windows NT4 Sp2