Album description truncates long descriptions. How to remove limit + enhancement request

jtofte

Joined: 2006-02-27
Posts: 22
Posted: Mon, 2011-01-03 07:51

I noticed there is a limit to how much text you can enter in the "album description" for each album. When selecting "Album Options" -> "Edit Album" there is a "Desription" field to enter description text. If too much text is entered and submitted, the last part of the text gets cut off. Yes, I know it can look ugly with a very long description in the narrow sidebar, but I don't want to be limited.

1) Is it possible to remove this limit somewhere in the code? What will be the hack?
2) A good enhancement would be to have the description text truncated, with a "..." hyperlink at the end of the text that will open the full description text in a fancybox/greybox window.

Thanks!!

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Mon, 2011-01-03 13:44

Hi, thanks for posting.
I'm just looking into it and will come back with info a bit.

Dog Photos | Gallery2 Themes Demo

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Mon, 2011-01-03 14:36

Update: reproduced the problem and investigated a bit..
This is a bug actually, made a fix, will commit as well which occasionally gets into GIT repo, but will describe the fix for immediate use in here.

Dog Photos | Gallery2 Themes Demo

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Mon, 2011-01-03 19:35

Okay, this got filed as ticket at http://sourceforge.net/apps/trac/gallery/ticket/1568 .
The bug got fixed, and fix is live on GIT thanks to Bharat.

If you grab a snapshot ( http://github.com/gallery/gallery3/zipball/master ) and upgrade your Gallery3, you will be able to add descriptions up to 65k chars.

Dog Photos | Gallery2 Themes Demo

 
jtofte

Joined: 2006-02-27
Posts: 22
Posted: Mon, 2011-01-03 23:56

Thanks a lot for the super quick fix! I upgraded to the snapshot and it solves the issue.

 
jtofte

Joined: 2006-02-27
Posts: 22
Posted: Tue, 2011-01-04 06:31

The only problem I see is that I cannot open the full-sized photos anymore when clicking on a photo. I am not sure if this problem was introduced when upgrading to the snapshot, or at an earlier stage where I renamed my gallery folder (where I changed the base name to the new folder). I have directorypermissions to the /album folder and the full size view permissions for the albums are on. At some point the full sized photos came up when I was not logged in as a user, but now they never come up whether logged in or not. I am not sure how to debug it (nothing shows up in /var/logs/) so I probably need to go back to an older gallery directory and restore the database as well.

 
jtofte

Joined: 2006-02-27
Posts: 22
Posted: Tue, 2011-01-04 07:58

No, the inability to access full sized images is not directly related to the snapshot upgrade. It was intoduced before the snapshot upgrade because album permissions did not allow full sized images for registerred users. I did activate the permissions after the snapshot upgrade, but it did not give access (I am tried this out and I refreshed the cashe and tried in two different browsers). I had to revert to the version before the snapshot upgrade and activate the permissions there. Now it carried when upgrading to the snapshot and it works.