[1.5.12] Information request: How can I turn keywords off? [1.5.12] Information request: How can I turn keywords off?
 

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

[1.5.12] Information request: How can I turn keywords off?

Started by Scraps, August 16, 2011, 04:22:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Scraps

www.paperwingsonline.com/gallery
v. 1.5.12

We have several customized fields that are used when uploading files, so the use of keywords is unnecessary in our situation. Even though I've requested that our members not populate the keyword field, some still do which creates a lot of work for me to get rid of them.

I would like to just prevent my users from populating the keyword field during uploads. Unfortunately, there's no way to just turn off keywords so I expect to have to change some code. I've searched this forum but can find nothing for v. 1.5+ regarding this. As the upload feature changed quite a bit for this version, I expect this will entail more than marking out code in upload.php.

Can someone tell me what code in which files I need to mark out to remove the keyword field while uploading (and editing) pics while allowing the rest of the features to work correctly?

Thanks!

Αndré

Open upload.php, find
$form_array[] = array($keywordLabel, 'keywords', 0, 255, 1);
and delete or comment out that line.


Open editpics.php, find
array($icon_array['keyword'] . $keywordLabel, 'keywords', 0, 255),
and
$keywords    = get_post_var('keywords', $pid);
and delete or comment out that lines.


Open edit_one_pic.php, find
    <tr>
        <td class="tableb" style="white-space: nowrap;">
            {$icon_array['keyword']}{$keywords_insert1}<br />
            <a href="keyword_select.php" class="greybox">{$lang_common['keywords_insert2']}</a>
        </td>
        <td width="100%" class="tableb" valign="top">
            <input type="text" style="width: 100%" name="keywords" maxlength="255" value="{$CURRENT_PIC['keywords']}" id="keywords" class="textinput" />
        </td>
    </tr>

and delete or comment out that block.

Scraps


Αndré

Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.

Scraps

Quote from: Αndré on August 16, 2011, 10:41:28 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.

Thanks - I was looking for that and couldn't find it.  :)