Firstly, I don't see a file named ChronoForms.php. I have a file named ChronoContact.php. My coding differs slightly from the one on the FAQ, though.
The coding I am supposed to be looking for is:
if ( trim($paramsvalues->imagever) == 'Yes' ) {
$imver = '<input name="chrono_verification" type="text"
id="chrono_verification" value="">
<img src="'.$mosConfig_live_site
.'/administrator/components/com_chronocontact/chrono_verification.php">';
}
The coding I have (around line 73) is:
if ( trim($paramsvalues->imagever) == 'Yes' ) {
$imver = '<input name="chrono_verification" type="text" id="chrono_verification" value="">
<img src="'.JURI::Base()
.'components/com_chronocontact/chrono_verification.php?imtype='.$paramsvalues->imtype.'">';
}
I replaced it with:
if ( trim($paramsvalues->imagever) == 'Yes' ) {
$imver = '<script type="text/javascript">
function RefreshImageVer(imgverform) {
var randnum = Math.random();
var newverimage = ''.$mosConfig_live_site
.'/administrator/components/com_chronocontact/chrono_verification.php?\'+randnum;
imgverform.imgver.src=newverimage;
}
</script>
<input name="chrono_verification" type="text"
id="chrono_verification" value="">
<img src="'.$mosConfig_live_site
.'/administrator/components/com_chronocontact/chrono_verification.php" name="imgver" id="imgver">
<input type="button" value="refresh"
onclick="RefreshImageVer(this.form);" />';
}
When I try to load the contact form I get the following error:
arse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/public_html/components/com_chronocontact/chronocontact.php on line 78
I am running the latest version of ChronoForm for Joomla! 1.5. I am running Joomla! 1.5 RC3<br><br>Post edited by: krackerjax, at: 2007/12/03 05:44