changing keyword input to textarea changing keyword input to textarea
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

changing keyword input to textarea

Started by taraAthan, January 04, 2008, 11:42:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

taraAthan

I changed the keyword input field to a textarea so I can add more keywords
as I use a faceted search structure and it takes more characters to indicate
the facet that the keyword belongs to as well as the keyword itself.
It was really easy!!!
1. First, I modified the database (using phpMyAdmin) so that the keywords field is of type text)

2.  Then I changed one line in editpics.php (in the main gallery directory)

I put in this line
        array($lang_editpics_php['keywords'], 'keywords', 2, $CONFIG['max_img_desc_length']),
to replace the current line number 70
//        array($lang_editpics_php['keywords'], 'keywords', 0, 255),

3. I use keywords like this
event.Ludwigia_field_tour species.Ludwigia_hexapetala

and so on: the part in front of the . is the "facet" name.
I tried it first with a : instead of a ., but everything after the : was stripped away
so that didn't work.

Thanks for a well-written and documented application!