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

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

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