changing keyword input to textarea changing keyword input to textarea
 

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

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!