1.Edit themes/smf_1-1_rc2/template.html and put this
{UPLOAD}
where ever you want upload box to show
2.Edit themes/smf_1-1_rc2/theme.php and put this code just before php end tag (?>)
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
user_save_profile();
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),
'{CHARSET}' => $charset,
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{UPLOAD}' => theme_upload(),
'{SYS_MENU}' => theme_main_menu('sys_menu'),
'{SUB_MENU}' => theme_main_menu('sub_menu'),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
);
echo template_eval($template_header, $template_vars);
}
function theme_upload(){
if(USER_ID){
$upload = <<<EOT
<form method="post" action="upload.php" enctype="multipart/form-data">
<input type="file" name="file_upload_array[]" size="40" class="listbox" />
<input type="hidden" name="control" value="phase_1" />
<input type="submit" value="UPLOAD" class="button" />
</form>
EOT;
}else{
$upload = '';
}
return $upload;
}
You're done