forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Scraps on August 16, 2011, 04:22:32 pm

Title: [1.5.12] Information request: How can I turn keywords off?
Post by: Scraps on August 16, 2011, 04:22:32 pm
www.paperwingsonline.com/gallery (http://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!
Title: Re: [1.5.12] Information request: How can I turn keywords off?
Post by: Αndré on August 16, 2011, 05:10:13 pm
Open upload.php, find
Code: [Select]
$form_array[] = array($keywordLabel, 'keywords', 0, 255, 1);and delete or comment out that line.


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


Open edit_one_pic.php, find
Code: [Select]
    <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.
Title: Re: [1.5.12] Information request: How can I turn keywords off?
Post by: Scraps on August 16, 2011, 10:16:53 pm
Thank you so much!

That fixed me.  :D
Title: Re: [1.5.12] Information request: How can I turn keywords off?
Post by: Α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.
Title: Re: Re: [1.5.12] Information request: How can I turn keywords off?
Post by: Scraps on August 16, 2011, 10:47:04 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.  :)