Please open up the file:
modules/boonex/groups/classes/BxGroupsFormAdd.php
FIND:
'header_videos' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_videos'),
'collapsable' => true,
'collapsed' => false,
),
'videos_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['videos']['choice'],
'name' => 'videos_choice[]',
'caption' => _t('_bx_groups_form_caption_videos_choice'),
'info' => _t('_bx_groups_form_info_videos_choice'),
'required' => false,
),
'videos_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['videos']['upload'],
'name' => 'videos_upload[]',
'caption' => _t('_bx_groups_form_caption_videos_upload'),
'info' => _t('_bx_groups_form_info_videos_upload'),
'required' => false,
),
// sounds
'header_sounds' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_sounds'),
'collapsable' => true,
'collapsed' => false,
),
'sounds_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['sounds']['choice'],
'name' => 'sounds_choice[]',
'caption' => _t('_bx_groups_form_caption_sounds_choice'),
'info' => _t('_bx_groups_form_info_sounds_choice'),
'required' => false,
),
'sounds_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['sounds']['upload'],
'name' => 'sounds_upload[]',
'caption' => _t('_bx_groups_form_caption_sounds_upload'),
'info' => _t('_bx_groups_form_info_sounds_upload'),
'required' => false,
),
// files
'header_files' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_files'),
'collapsable' => true,
'collapsed' => false,
),
'files_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['files']['choice'],
'name' => 'files_choice[]',
'caption' => _t('_bx_groups_form_caption_files_choice'),
'info' => _t('_bx_groups_form_info_files_choice'),
'required' => false,
),
'files_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['files']['upload'],
'name' => 'files_upload[]',
'caption' => _t('_bx_groups_form_caption_files_upload'),
'info' => _t('_bx_groups_form_info_files_upload'),
'required' => false,
),
REPLACE WITH:
/*
'header_videos' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_videos'),
'collapsable' => true,
'collapsed' => false,
),
'videos_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['videos']['choice'],
'name' => 'videos_choice[]',
'caption' => _t('_bx_groups_form_caption_videos_choice'),
'info' => _t('_bx_groups_form_info_videos_choice'),
'required' => false,
),
'videos_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['videos']['upload'],
'name' => 'videos_upload[]',
'caption' => _t('_bx_groups_form_caption_videos_upload'),
'info' => _t('_bx_groups_form_info_videos_upload'),
'required' => false,
),
// sounds
'header_sounds' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_sounds'),
'collapsable' => true,
'collapsed' => false,
),
'sounds_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['sounds']['choice'],
'name' => 'sounds_choice[]',
'caption' => _t('_bx_groups_form_caption_sounds_choice'),
'info' => _t('_bx_groups_form_info_sounds_choice'),
'required' => false,
),
'sounds_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['sounds']['upload'],
'name' => 'sounds_upload[]',
'caption' => _t('_bx_groups_form_caption_sounds_upload'),
'info' => _t('_bx_groups_form_info_sounds_upload'),
'required' => false,
),
// files
'header_files' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_files'),
'collapsable' => true,
'collapsed' => false,
),
'files_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['files']['choice'],
'name' => 'files_choice[]',
'caption' => _t('_bx_groups_form_caption_files_choice'),
'info' => _t('_bx_groups_form_info_files_choice'),
'required' => false,
),
'files_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['files']['upload'],
'name' => 'files_upload[]',
'caption' => _t('_bx_groups_form_caption_files_upload'),
'info' => _t('_bx_groups_form_info_files_upload'),
'required' => false,
),
*/
THIS WILL NULL VIDEOS, SOUNDS AND FILES
Do you need to null images too?
If yes FIND:
// images
'header_images' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_images'),
'collapsable' => true,
'collapsed' => false,
),
'thumb' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['images']['thumb_choice'],
'name' => 'thumb',
'caption' => _t('_bx_groups_form_caption_thumb_choice'),
'info' => _t('_bx_groups_form_info_thumb_choice'),
'required' => false,
'db' => array (
'pass' => 'Int',
),
),
'images_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['images']['choice'],
'name' => 'images_choice[]',
'caption' => _t('_bx_groups_form_caption_images_choice'),
'info' => _t('_bx_groups_form_info_images_choice'),
'required' => false,
),
'images_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['images']['upload'],
'name' => 'images_upload[]',
'caption' => _t('_bx_groups_form_caption_images_upload'),
'info' => _t('_bx_groups_form_info_images_upload'),
'required' => false,
),
REPLACE WITH:
/*
// images
'header_images' => array(
'type' => 'block_header',
'caption' => _t('_bx_groups_form_header_images'),
'collapsable' => true,
'collapsed' => false,
),
'thumb' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['images']['thumb_choice'],
'name' => 'thumb',
'caption' => _t('_bx_groups_form_caption_thumb_choice'),
'info' => _t('_bx_groups_form_info_thumb_choice'),
'required' => false,
'db' => array (
'pass' => 'Int',
),
),
'images_choice' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['images']['choice'],
'name' => 'images_choice[]',
'caption' => _t('_bx_groups_form_caption_images_choice'),
'info' => _t('_bx_groups_form_info_images_choice'),
'required' => false,
),
'images_upload' => array(
'type' => 'custom',
'content' => $aCustomMediaTemplates['images']['upload'],
'name' => 'images_upload[]',
'caption' => _t('_bx_groups_form_caption_images_upload'),
'info' => _t('_bx_groups_form_info_images_upload'),
'required' => false,
),
*/
I HAVE JUST COMMMENTED THE CODE OUT, YOU CAN REMOVE ANY OTHER FUNCTION BY COMMENTING THE CODE.
YOU CAN USE /* AT THE BEGIN OF THE FUNCTION AND */ AT THE END OF THE FUNCTION.
Please iof you liked my help, would be great if you can add a good review on my profile =D, but this is not necessary, I'll be just pleased if you will add one.
Let me know if you need further assistance.
Web Development, Multimedia Design and Social Media.