If you want to add a setting to remove the Upload File box:
Replace in ext.publish_tweeks.php
(in the fix above)
return $html;
with
// Remove upload box?
if( isset( $this->settings['other_settings_remove_upload_box'] ) AND ( $this->settings['other_settings_remove_upload_box'] === 'y' ) )
{
$new = '';
$find = "#<div class='uploadBox'.+?</div>#is";
$temp_html = preg_replace($find, $new, $html);
$html = ($temp_html === NULL ) ? $html : $temp_html;
}
return $html;
and
// Close Form
With
// Other Settings
$DSP->body .= $DSP->table_open(
array(
'class' => 'tableBorder',
'border' => '0',
'style' => 'margin-top:18px; width:100%'
)
);
$DSP->body .= $DSP->tr()
. $DSP->td('tableHeading', '', '2')
. $LANG->line("other_settings_title")
. $DSP->td_c()
. $DSP->tr_c();
$DSP->body .= $DSP->tr()
. $DSP->td('tableCellOne', '60%')
. $DSP->qdiv('defaultBold', $LANG->line("other_settings_remove_upload_box_label"))
. $DSP->td_c();
$DSP->body .= $DSP->td('tableCellOne')
. '<select name="other_settings_remove_upload_box">'
. $DSP->input_select_option('y', $LANG->line('yes'), ($current['other_settings_remove_upload_box'] == 'y' ? 'y' : ''))
. $DSP->input_select_option('n', $LANG->line('no'), ($current['other_settings_remove_upload_box'] != 'y' ? 'y' : ''))
. $DSP->input_select_footer()
. $DSP->td_c()
. $DSP->tr_c();
$DSP->body .= $DSP->table_c();
// Close Form
in language/english/lang.publish_tweeks.php:
replace
/* END */
with
// -- Other settings
'other_settings_title' =>
'Other Settings',
'other_settings_remove_upload_box_label' =>
'Remove "Upload File" box?',
/* END */