I found an option; but before I begin, let me explain why I'm using this option, in case you wish to do the same. The default photo handling is a chore for users. I've decided to make the process easier for my site. The user is locked to the default album so, most of the fields in the form are not needed. *note* my members do not upload any other type of files... Just photos. This works well with the (Profile Pic Switcher) instead of standard (profile pic)
To remove the form fields You will have to edit inc/classes/BxDolFilesUploader.php
1. For the background color edit <div style="background-color:#ffdada;" id="accepted_files_block"></div>
2. to remove fields
find :
// processing of possible default values
$aInputValues = array('title', 'tags', 'description', 'type', $this->sUploadTypeLC);
foreach ($aInputValues as $sField) {
$sEmpty = $sField == 'type' ? 'upload' : '';
$sTemp = isset($aDefaultValues[$sField]) ? strip_tags($aDefaultValues[$sField]) : $sEmpty;
$aDefaultValues[$sField] = $sTemp;
}
$aForm = array(
'form_attrs' => array(
'id' => $this->sUploadTypeLC . '_file_info_form',
'method' => 'post',
'action' => $this->sWorkingFile,
'target' => 'upload_file_info_frame_' . $iFileID
),
'inputs' => array(
'header2' => array(
'type' => 'block_header',
'caption' => $sCaptionVal,
'collapsable' => true
),
'title' => array(
'type' => 'text',
'name' => 'title',
'caption' => _t('_Title'),
'required' => true,
'value' => $aDefaultValues['title']
),
'tags' => array(
'type' => 'text',
'name' => 'tags',
'caption' => _t('_Tags'),
'info' => _t('_Tags_desc'),
'value' => $aDefaultValues['tags']
),
'description' => array(
'type' => 'textarea',
'name' => 'description',
'caption' => _t('_Description'),
'value' => $aDefaultValues['description']
),
'media_id' => array(
'type' => 'hidden',
'name' => 'file_id',
'value' => $iFileID,
),
'hidden_action' => array(
'type' => 'hidden',
'name' => 'action',
'value' => 'accept_file_info'
),
$this->sUploadTypeLC => array(
'type' => 'hidden',
'name' => $this->sUploadTypeLC,
'value' => $aDefaultValues[$this->sUploadTypeLC]
),
'type' => array(
'type' => 'hidden',
'name' => 'type',
'value' => $aDefaultValues['type']
)
),
);
//--- Process Extras ---//
foreach($this->_aExtras as $sKey => $mixedValue)
$aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array (
'type' => 'hidden',
'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey,
'value' => $mixedValue
);
// merging categories
$aForm['inputs'] = $this->getUploadFormArray($aForm['inputs'], array($aFormCategories, $aAlbums));
and replace with or edit out what you need:
// processing of possible default values
$aInputValues = array('title', 'tags', 'description', 'type', $this->sUploadTypeLC);
foreach ($aInputValues as $sField) {
$sEmpty = $sField == 'type' ? 'upload' : '';
$sTemp = isset($aDefaultValues[$sField]) ? strip_tags($aDefaultValues[$sField]) : $sEmpty;
$aDefaultValues[$sField] = $sTemp;
}
$aForm = array(
'form_attrs' => array(
'id' => $this->sUploadTypeLC . '_file_info_form',
'method' => 'post',
'action' => $this->sWorkingFile,
'target' => 'upload_file_info_frame_' . $iFileID
),
'inputs' => array(
'header2' => array(
'type' => 'block_header',
'caption' => $sCaptionVal,
'collapsable' => true
),
'title' => array(
'type' => 'hidden',
'name' => '',
'caption' => _t(''),
'required' => true,
'value' => $aDefaultValues['']
),
'tags' => array(
'type' => 'hidden',
'name' => '',
'caption' => _t(''),
'info' => _t(''),
'value' => $aDefaultValues['']
),
'description' => array(
'type' => 'hidden',
'name' => '',
'caption' => _t(''),
'value' => $aDefaultValues['']
),
'media_id' => array(
'type' => 'hidden',
'name' => 'file_id',
'value' => $iFileID,
),
'hidden_action' => array(
'type' => 'hidden',
'name' => 'action',
'value' => 'accept_file_info'
),
$this->sUploadTypeLC => array(
'type' => 'hidden',
'name' => $this->sUploadTypeLC,
'value' => $aDefaultValues[$this->sUploadTypeLC]
),
'type' => array(
'type' => 'hidden',
'name' => 'type',
'value' => $aDefaultValues['type']
)
),
);
//--- Process Extras ---//
foreach($this->_aExtras as $sKey => $mixedValue)
$aForm['inputs'][BX_DOL_UPLOADER_EP_PREFIX . $sKey] = array (
'type' => 'hidden',
'name' => BX_DOL_UPLOADER_EP_PREFIX . $sKey,
'value' => $mixedValue
);
// merging categories
$aForm[''] = $this->getUploadFormArray($aForm['inputs'], array($aAlbums));