Hide file title field on editpics.php Hide file title field on editpics.php
 

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]

Main Menu

Hide file title field on editpics.php

Started by St. Anger, August 25, 2012, 09:27:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

St. Anger

Is there a way to hide the "file title" form field on the editpics.php page? I don't want my users to be able to use the file title field when uploading images (mainly because they fill it with useless nonsense that I have to delete). I was hoping there would be a quick fix, like just commenting a line out or something.

St. Anger

Well, I didn't find a way to actually hide the field, but I found a way to set titles to empty strings. In case anyone else ever wants to do the same, I simply changed line 222 from

$title = get_post_var('title', $pid);

to

$title = "";

Αndré

To hide the title field, open editpics.php, find
array($icon_array['title'] . $lang_common['title'], 'title', 0, 255),
and replace with
//array($icon_array['title'] . $lang_common['title'], 'title', 0, 255),

St. Anger

If that line is commented out, this error is displayed when you try to edit file info:

QuoteCritical error
Script called without the required parameter(s). (title20596)

Αndré


St. Anger