Title still stretches the template

SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Sat, 2009-01-10 06:18

Gallery URL (optional but very useful): http://fredericksburgchamber.org/gallery/index.php
Gallery version: 1.5.10
Apache version: 1.3.41 (Unix)
PHP version 4.4.9
Graphics Toolkit:
Operating system: Linux
Web browser/version (if applicable): FF3 and IE6

Ok, I have searched, tweaked, upgraded and still can't get the title to behave. I tried the content at http://gallery.menalto.com/node/25862. I know that I can add a <br> manually, but the people who own the site, keep forgetting and it looks like crap if they don't please help me with this problem.

 
SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Sun, 2009-01-11 23:06

Ok, no comments. Did I say something wrong?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-01-12 02:20

post a url to the behavior you are talking about.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Mon, 2009-01-12 04:45

Ahhh, it's the very first thing in the original post http://fredericksburgchamber.org/gallery/index.php

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-01-12 05:09

So this post:
http://gallery.menalto.com/node/25862#comment-90729
did not work?
It is hard to tell what you mean when you say "stretches the template"
If you did make the change does it work for new albums?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sean Baden

Joined: 2009-01-12
Posts: 14
Posted: Mon, 2009-01-12 08:50

Can you be more specific? I'll do my best to help.

Irgendwie bekommt keiner antwort
Sean Baden

 
SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Mon, 2009-01-12 23:25

Ok, the title of the album, when it is long will cause the template to run on. In the past I have been putting in a <br> to force a return. Take a look at http://fredericksburgchamber.org/gallery/albums.php?set_albumListPage=3 to see it in more graphic nature. Notice how the title causes the page to stretch.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-01-13 02:52

SimplyFburg,

Quote:
So this post:
http://gallery.menalto.com/node/25862#comment-90729
did not work?

I guess the answer to my question is ?
So I fixed the thread if you are using 1.5.7

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Wed, 2009-01-14 00:51

Dave,

I already discovered that the file name changed. I made that change before I posted, however I wonder if I'm not thinking clearly. I get that it will not reformat existing album title, but new one will work, I have to try that and I will post the results here.

 
SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Wed, 2009-01-14 00:56

Interesting. I made the change in 1.5.7 before I upgraded to 1.5.10 (the problem existed in both, but the upgrade, hoping to resolve the problem. The

Quote:
Quote:

So this post:
http://gallery.menalto.com/node/25862#comment-90729
did not work?

I guess the answer to my question is ?
So I fixed the thread if you are using 1.5.7

upgrade is not in 1.5.10 at all, that string is not there. Hmmmm.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-01-14 06:33
Quote:
I made the change in 1.5.7

So you have 1.5.10 and I have 1.5.7?
You will have to look for that function and edit that file, then edit existing items.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
SimplyFburg

Joined: 2008-01-12
Posts: 11
Posted: Thu, 2009-01-15 01:44

Dave,

I located it, well, sorta, it is the same, but different.

see below:

Quote:
function editField($album, $field, $url = null) {
global $gallery;

if($url) {
$html = galleryLink($url, $album->fields[$field], array(), '', false, false);
}
else {
$html = nl2br($album->fields[$field]);
}

if ($gallery->user->canChangeTextOfAlbum($album)) {
if (empty($album->fields[$field])) {
$html = "<i>&lt;". gTranslate('common', "Empty") . "&gt;</i>";
}
// should replace with &amp; for validatation
$url = "edit_field.php?set_albumName={$album->fields['name']}&field=$field";

$html .= ' '. popup_link(sprintf(gTranslate('common', "edit %s"), _($field)), $url, 0, true, 500, 500, 'g-small');
}

return $html;

adding $html = wordwrap($html, 50, '<br>'); after $html = nl2br($album->fields[$field]); has no effect.

Any other clues?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-01-15 03:40

What if you add new albums that have long titles?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team