Removing "description" Custom Field Name

Psych

Joined: 2005-03-27
Posts: 1
Posted: Sun, 2005-03-27 23:53

Hi there,

Looking to remove the "Description" or whatever name you end up giving it, when clicking on a photo and where one would enter a description. It's a "Custom Field".

I can get rid of the custom field entirely, but I want to enter a description on all my shots, I just don't want to have a big "Description" sitting there in the same font, looks real messy.

On the older version of Gallery I used to run, it never showed at all, now on this install (Gallery v1.4.4-pl6) I can't seem to get rid of just that aspect of the photo viewing process.

Any ideas? Searching has given me the ever-so-helpful 250 some odd pages of results, none of which used the word "Description" that I searched for...argh.

Thanks!

Mike

 
jallinder
jallinder's picture

Joined: 2003-09-21
Posts: 3
Posted: Fri, 2007-10-26 14:26

I'm using Gallery 1.5.6. Since all of the other solutions posted to this forum did not resolve the ability to remove the word "Description", I finally found where it (code) resides.

Open the file /lib/content.php and find the following around line 447:
-----------------------------
foreach ($fields as $key => $value) {
$customFieldsTable->addElement(array('content' => $key));
$customFieldsTable->addElement(array('content' => ':'));
$customFieldsTable->addElement(array('content' => $value));

}
-------------------
Replace with:
foreach ($fields as $key => $value) {
$customFieldsTable->addElement(array('content' => $value));

}
-------------------

Jan
Lucid Images Wildlife Photography