Quote:
|
Originally Posted by Chuck S You misunderstood what I am saying
Post a url to your install and a test login please. |
Dear Chuck thank you but no need because i just find a fix with the file uploadphoto.tmpl
extract of uploadphoto.tmpl before :
<?php
echo<<<PPPRINT
<script type="text/javascript">
function checkForm(theform){
if (theform.category.value == "notcat" && theform.albumsel.value == "0") {
alert( "{$Globals['pp_lang']['topcat']}" );
theform.category.focus();
return false;
}
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=true
}
}
}
</script>
<form method="post" action="{$Globals['maindir']}/uploadphoto.php" enctype="multipart/form-data" onsubmit="return checkForm(this);">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td colspan="2">
$ppopen
i just moved the tag $ppopen just after the java script
extract of uploadphoto.tmpl after :
<?php
echo<<<PPPRINT
<script type="text/javascript">
function checkForm(theform){
if (theform.category.value == "notcat" && theform.albumsel.value == "0") {
alert( "{$Globals['pp_lang']['topcat']}" );
theform.category.focus();
return false;
}
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=true
}
}
}
</script>
$ppopen
<form method="post" action="{$Globals['maindir']}/uploadphoto.php" enctype="multipart/form-data" onsubmit="return checkForm(this);">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td colspan="2">
<tr>