Advanced search  

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]

Pages: [1]   Go Down

Author Topic: changing keyword input to textarea  (Read 1787 times)

0 Members and 1 Guest are viewing this topic.

taraAthan

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
changing keyword input to textarea
« on: January 04, 2008, 11:42:34 pm »

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!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.