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? |
|
| Login or register to post comments |

Posts: 3232
The fact that upgrading over writes all the changes you made?
Posts: 3
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
Posts: 225
I'm curious about this as well.. I'm getting ready to upgrade to 1.5 myself.
Posts: 3232
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?
Posts: 9507
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
Posts: 9507
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
Posts: 2
Thanks, that did the trick for me.
Posts: 20
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:
Posts: 9507
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
Posts: 20
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">';Posts: 95
Hi,
Looking for these files (from the 5-11 post from Floridave). Can't seem to find them. Thanks!
Posts: 9507
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
Posts: 2
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!
Posts: 9507
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
Posts: 2
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.
Posts: 9507
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
Posts: 20
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.
Posts: 9507
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
Posts: 3
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.
Posts: 5
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
Posts: 5
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