Form Fields on cms_galleries Page

Post

Posted
Rating:
#5868 (In Topic #1215)

Not allow inputs on specific fields on page

When a member is uploading a video (cms_galleries.php), I do not want the member to be able to enter data into the form fields: Video length, and Dimensions (width/height).  I always want this data to be auto-detected (as when the fields are left blank).

How would I do this?  Nothing I have tried works properly.

Thanks so much for your help!

Post

Posted
Rating:
#5872
It'd require code changes.

You'd need to copy cms/pages/modules/cms_galleries.php to cms/pages/modules_custom/ then remove these lines:

Code

        $fields->attach(form_input_integer(do_lang_tempcode('VIDEO_LENGTH'), do_lang_tempcode('DESCRIPTION_VIDEO_LENGTH'), 'video_length', $video_length, false));
        $fields->attach(form_input_dimensions(do_lang_tempcode('DIMENSIONS'), do_lang_tempcode('DESCRIPTION_VIDEO_DIMENSIONS'), 'video_width', 'video_height', $video_width, $video_height, false));
I haven't tested, but what I can see from the code is that if these fields are not present it will just pick defaults / do autodetection.

Post

Posted
Rating:
#5873
Thank you Chris!!!  It works perfectly!!!
0 guests and 0 members have recently viewed this.