forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: St. Anger on August 25, 2012, 09:27:02 am
-
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.
-
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 = "";
-
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),
-
If that line is commented out, this error is displayed when you try to edit file info:
Critical error
Script called without the required parameter(s). (title20596)
-
You also need to apply/keep your mod.
-
Thanks, it works now. ;D