okey you need to change
upload.php- first of all you need to change this (under text_box_input function around line 112)
<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" />
with this
<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" onKeyUP="formcheck();" onfocus="formcheck();"/>
- Then you should change this (under text_area_input function around line 159 )
<textarea name="$name" rows="5" cols="40" class="textinput" style="width: 100%;" onKeyDown="textCounter(this, $max_length);" onKeyUp="textCounter(this, $max_length);">$default</textarea>
with this
<textarea name="$name" rows="5" cols="40" class="textinput" style="width: 100%;" onKeyDown="textCounter(this, $max_length);" onKeyUp="textCounter(this, $max_length);formcheck();" onfocus="formcheck();">$default</textarea>
- Then you should change this (under form_alb_list_box function around line 185)
<select name="$name" class="listbox">
with this
<select name="$name" class="listbox" onchange="formcheck();">
- and You need to replace the open_form function with this new function
function open_form($path) {
echo <<<EOT
<script language="javascript" type="text/javascript">
function textCounter(field, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
}
function formcheck(){ // added for fill all fields mod by b.mossavari
for(i=0;i<3;i++){
d=document.forms[i];
if(x=d.caption){
if(d.title.value!='' && d.caption.value!='' && d.keywords.value!=''){
d.sub_button.disabled=false;
}else{
d.sub_button.disabled=true;
}
}
}
}
</script>
<form method="post" action="$path" enctype="multipart/form-data" onmouseover="formcheck();">
EOT;
}
and then replace (under close_form function around line 354 )
<input type="submit" value="{$button_value}" class="button" />
with this
<input type="submit" value="{$button_value}" class="button" id="sub_button" name="sub_button"/>
This will disable continue button on http upload form with default setting
