Some more .. I have refined the checking in the modifytimeslip template..
Here's the new code for the javascript at the top ..
Code:
<script language="javascript">
<!--
function validate(theform) {
if ((theform.ctb_field55.value<=$vboptions[tdsliprequired]) && (theform.ctb_field55.value>0)) {
if ((theform.upload.value=="") && (theform.timeslipdateline.value=="") && (theform.ctb_field57.value=="")) {
alert("An uploaded copy of or a link to your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
return false;
} else if ((theform.upload.value=="") && (theform.timeslipdateline.value=="")) {
if ((theform.ctb_field57.value.search(/^http\:\/\/[a-zA-Z]...*\.[a-zA-Z]..\.[jJ][pP][gG]$/) == -1) && (theform.ctb_field57.value.search(/^http\:\/\/[a-zA-Z]...*\.[a-zA-Z]..\.[gG][iI][fF]$/) == -1)) {
alert("Incorrect Link Supplied for Timeslip Image.");
return false;
}
}
}
}
//-->
</script>
<else />
<script language="javascript">
<!--
function validate(theform) {
if ((theform.ctb_field55.value<=$vboptions[tdsliprequired]) && (theform.ctb_field55.value>0)) {
if (theform.ctb_field57.value=="") {
alert("A link to your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
return false;
} else if ((theform.ctb_field57.value.search(/^http\:\/\/[a-zA-Z]...*\.[a-zA-Z]..\.[jJ][pP][gG]$/) == -1) && (theform.ctb_field57.value.search(/^http\:\/\/[a-zA-Z]...*\.[a-zA-Z]..\.[gG][iI][fF]$/) == -1)) {
alert("Incorrect Link Supplied for Timeslip Image.");
return false;
}
}
}
//-->
</script>
This will ensure that if there are no timeslip uploads are allowed then the url for the slip image is something that resembles a url to an image.
If timeslip uploads are allowed it will accept wither an uploaded image or a valid url to an image.
If anyone wants the fixed xml installer PM me

or I can attach it here if ok with deathemperor or I can send it to him