Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

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

0 Members and 2 Guests 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.016 seconds with 16 queries.