Forums

Problem with anty spam

luiscamp 25 Jul, 2008
Hello
First I have to give a big thanks for your grate component and for this forum that guide me through the using of your component.

I read all the previous post about the theme, but i just can't make the anti Spam image appears, I have Joomla! 1.0.15 running with a multilingual from(joomfish) with jcalendarand and Chrono Forms 2.3.9

I checked the gd version:
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled

I turn on the anti span option, i put {imageverification} in the form code, but i still cant get the image appears only appears the textfield empty, you can checked it at http://ecuadorstravelguide.com/joomla/index.php?option=com_chronocontact&chronoformname=contacform

Can You please give some light about this problem???

Thanks for all your help

The full code of the form is

<?php 
global $mosConfig_lang; 
switch ( $mosConfig_lang ) { 
  case 'english': 
  default:
?> 
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="4">
	<tbody>
		<tr>
			<td colspan="2" align="left">Requiered fields</td>
			<td colspan="2" align="left"> </td>
		</tr>
		<tr>
			<td align="left">Name</td>
			<td align="left"><input id="nombre2" name="name"/></td>
			<td align="left"> lastname</td>
		    <td align="left"><input id="surname" name="surname"/></td>
		</tr>
		<tr>
			<td align="left">birthdate</td>
			<td align="left"><input id="date" name="date"/></td>
			<td align="left">email</td>
		    <td align="left"><input id="email" name="email"/></td>
		</tr>
		<tr>
			<td align="left">phone or fax</td>
			<td align="left"><input id="telf1" name="telf1"/></td>
			<td align="left">address</td>
		    <td align="left"><input id="address" name="address"/></td>
		</tr>
		<tr>
			<td align="left">city			    </td>
			<td align="left"><input id="city" name="city"/></td>
			<td align="left">country			      </td>
		    <td align="left"><input id="country" name="country"/></td>
		</tr>
		<tr>
			<td colspan="2" align="left"> </td>
			<td colspan="2" align="left"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"> when are you interested in visiting Tapir Lodge</td>
			<td colspan="2" align="left" valign="top"> </td>
		</tr>
        <tr>
			<td>From			    </td>
			<td><input id="f_date_c" readonly="readonly" name="f_date_d"/>
			    <img width="20" height="14" id="f_trigger_c" onmouseover="this.style.background='red';" title="Date selector" style="border: 1px solid red; background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; cursor: pointer;" onmouseout="this.style.background=''" alt="calendar" src="http://cuyabenoecuador.com/jscalendar/jscalendar/img.gif"/></td>
			<td colspan="2"><script type="text/javascript">
	Calendar.setup({
	inputField     :    "f_date_c",
	ifFormat       :    "%B %e, %Y",
	button         :    "f_trigger_c",
	align          :    "Tl",
	singleClick    :    false
	});
</script></td>
		</tr>
		<tr>	
			<td >To                </td>
			<td><input id="f_date_c2" readonly="readonly" name="f_date_d2"/>
			    <img width="20" height="14" id="f_trigger_c2" onmouseover="this.style.background='red';" title="Date selector" style="border: 1px solid red; background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; cursor: pointer;" onmouseout="this.style.background=''" alt="calendar" src="http://cuyabenoecuador.com/jscalendar/jscalendar/img.gif"/></td>
			<td colspan="2"><script type="text/javascript">
	Calendar.setup({
	inputField     :    "f_date_c2",
	ifFormat       :    "%B %e, %Y",
	button         :    "f_trigger_c2",
	align          :    "Tl",
	singleClick    :    false
	});
</script></td>
		</tr>
		<tr>
		  <td colspan="2" align="left"> </td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left">number of people travelling with you</td>
			<td colspan="2" align="left" valign="top"> </td>
		</tr>
		<tr>
        	<td >Adults</td>
			<td ><input id="adult" maxlength="2" size="3" name="adult"/></td>
			<td colspan="2"> </td>
		</tr>
		<tr>
			<td >Children (under 12)			    </td>
			<td ><input id="children" maxlength="2" size="3" name="children"/></td>
			<td colspan="2"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"> </td>
			<td colspan="2" align="left"> </td>
	  	</tr>
		<tr>
			<td colspan="2" align="left"> how did you find us</td>
			<td colspan="2" align="left"> please tell us your interests</td>
		</tr>
		<tr>
			<td width="13%" >Search Engine			    </td>
			<td width="26%" ><input type="checkbox" id="search" name="search" value="checkbox"/></td>
			<td width="13%">Galalpagos</td>
		    <td width="48%"><input type="checkbox" id="galapagos" name="galapagos" value="checkbox"/></td>
		</tr>
		<tr>
			<td >Travel Agency			    </td>
			<td ><input type="checkbox" id="travel" name="travel" value="checkbox"/></td>
			<td>Jungle</td>
			<td><input type="checkbox" id="jungle" name="jungle" value="checkbox"/></td>
		</tr>
        <tr>
			<td >Web Portal			    </td>
			<td ><input type="checkbox" id="web" name="web" value="checkbox"/></td>
			<td>Highlands			    </td>
		    <td><input type="checkbox" id="highlands" name="highlands" value="checkbox"/></td>
        </tr>
		<tr>
			<td >Friend                </td>
			<td ><input type="checkbox" id="friend" name="friend" value="checkbox"/></td>
			<td>Coast</td>
	        <td><input type="checkbox" id="Coast" name="Coast" value="checkbox"/></td>
	  </tr>
		<tr>
        	<td colspan="2" > </td>
			<td> </td>
		    <td> </td>
	  </tr>
		<tr>
           	<td align="left"  colspan="4">+ additional comments or special requirements<br /><textarea id="comments" name="comments" rows="8" cols="98"></textarea></td>
		</tr>
        <tr> 
        <td>{imageverification} </td>
        <td > </td>
        <td > </td>
        <td > </td>        
        </tr>
        
        <tr>
          	<td colspan="3" align="right">
        		<label>
					<div align="left">
						<input type="reset" name="Submit2" id="Submit2" value="Reset" />
						<input type="submit" name="Submit" id="Submit" value="Submit" />
				    </div>
                </label>                </td>
			<td align="right"> </td>
        </tr>
	</tbody>
</table>  
<?php 
  break; 
 
  case 'spanish':
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="4">
	<tbody>
		<tr>
			<td colspan="2" align="left"><em>Por favor ingrese su información</em></td>
		  <td colspan="2" align="left"> </td>
		</tr>
		<tr>
			<td align="left"> Nombre</td>
		  <td align="left"><input id="nombre2" name="name"/></td>
			<td align="left"> Apellido</td>
		    <td align="left"><input id="surname" name="surname"/></td>
		</tr>
		<tr>
			<td align="left">Fecha de nacimiento</td>
			<td align="left"><input id="date" name="date"/></td>
			<td align="left">Email</td>
	      <td align="left"><input id="email" name="email"/></td>
		</tr>
		<tr>
			<td align="left">Telefono o  Fax</td>
		  <td align="left"><input id="telf1" name="telf1"/></td>
			<td align="left">Direccion</td>
	      <td align="left"><input id="address" name="address"/></td>
		</tr>
		<tr>
			<td align="left">Ciudad</td>
			<td align="left"><input id="city" name="city"/></td>
			<td align="left">Pais</td>
	      <td align="left"><input id="country" name="country"/></td>
		</tr>
		<tr>
			<td colspan="2" align="left"> </td>
			<td colspan="2" align="left"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"><em>En que periodo le gustaria visitar el Tapir Lodge</em></td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
        <tr>
			<td>Desde			    </td>
<td><input id="f_date_c" readonly="readonly" name="f_date_d"/>
			    <img width="20" height="14" id="f_trigger_c" onmouseover="this.style.background='red';" title="Date selector" style="border: 1px solid red; background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; cursor: pointer;" onmouseout="this.style.background=''" alt="calendar" src="http://cuyabenoecuador.com/jscalendar/jscalendar/img.gif"/></td>
			<td colspan="2"><script type="text/javascript">
	Calendar.setup({
	inputField     :    "f_date_c",
	ifFormat       :    "%B %e, %Y",
	button         :    "f_trigger_c",
	align          :    "Tl",
	singleClick    :    false
	});
</script></td>
		</tr>
		<tr>	
			<td >Hasta</td>
<td><input id="f_date_c2" readonly="readonly" name="f_date_d2"/>
			    <img width="20" height="14" id="f_trigger_c2" onmouseover="this.style.background='red';" title="Date selector" style="border: 1px solid red; background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; cursor: pointer;" onmouseout="this.style.background=''" alt="calendar" src="http://cuyabenoecuador.com/jscalendar/jscalendar/img.gif"/></td>
			<td colspan="2"><script type="text/javascript">
	Calendar.setup({
	inputField     :    "f_date_c2",
	ifFormat       :    "%B %e, %Y",
	button         :    "f_trigger_c2",
	align          :    "Tl",
	singleClick    :    false
	});
</script></td>
		</tr>
		<tr>
		  <td colspan="2" align="left"> </td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"><em>Numero de personas que lo acompañan</em></td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
		<tr>
        	<td >Adultos</td>
			<td ><input id="adult" maxlength="2" size="3" name="adult"/></td>
			<td colspan="2"> </td>
		</tr>
		<tr>
			<td >Niños (menores de 12 años)</td>
		  <td ><input id="children" maxlength="2" size="3" name="children"/></td>
			<td colspan="2"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"> </td>
			<td colspan="2" align="left"> </td>
	  	</tr>
		<tr>
			<td colspan="2" align="left">Como nos encontro</td>
		  <td colspan="2" align="left">Cuéntenos sus interes</td>
	  </tr>
		<tr>
			<td width="20%" >Buscador</td>
		  <td width="25%" ><input type="checkbox" id="search" name="search" value="checkbox"/></td>
		  <td width="13%">Galalpagos</td>
		  <td width="48%"><input type="checkbox" id="galapagos" name="galapagos" value="checkbox"/></td>
	  </tr>
		<tr>
			<td >Agencia de Viajes</td>
		  <td ><input type="checkbox" id="travel" name="travel" value="checkbox"/></td>
			<td>Selva</td>
			<td><input type="checkbox" id="jungle" name="jungle" value="checkbox"/></td>
	  </tr>
        <tr>
			<td > Portales Web</td>
		  <td ><input type="checkbox" id="web" name="web" value="checkbox"/></td>
			<td>Andes </td>
			<td><input type="checkbox" id="highlands" name="highlands" value="checkbox"/></td>
      </tr>
		<tr>
			<td >Amigos</td>
		  <td ><input type="checkbox" id="friend" name="friend" value="checkbox"/></td>
			<td>Costa</td>
			<td><input type="checkbox" id="Coast" name="Coast" value="checkbox"/></td>
	  </tr>
		<tr>
        	<td colspan="2" > </td>
			<td> </td>
		    <td> </td>
	  </tr>
		<tr>
			<td colspan="2" > </td>
			<td> </td>
	        <td> </td>
	  </tr>
		<tr>
			<td colspan="2" > </td>
			<td> </td>
	        <td> </td>
	  </tr>
		<tr>
			<td colspan="2" > </td>
			<td> </td>
	        <td> </td>
	  </tr>
		<tr>
           	<td align="left"  colspan="4"><em>Comentarios adicionales o requerimientos especiales</em><br />
       	  <textarea id="comments" name="comments" rows="8" cols="98"></textarea></td>
	  </tr>
<tr> 
        <td>{imageverification} </td>
        <td > </td>
        <td > </td>
        <td > </td>        
        </tr>        
<tr>
          	<td colspan="3" align="right">
        		<label>
					<div align="left">
						<input type="reset" name="Submit2" id="Submit2" value="Limpiar" />
						<input type="submit" name="Submit" id="Submit" value="Enviar" />
				    </div>
                </label>                </td>
			<td align="right"> </td>
        </tr>
	</tbody>
</table>
<?php 
  break; 
 
  case 'german':
?> 
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="4">
	<tbody>
		<tr>
			<td colspan="2" align="left">Pflichtfelder * </td>
		  <td colspan="2" align="left"> </td>
		</tr>
		<tr>
			<td align="left">Nachname *</td>
		  <td align="left"><input id="nombre2" name="name"/></td>
			<td align="left">Vorname *</td>
	      <td align="left"><input id="surname" name="surname"/></td>
		</tr>
		<tr>
			<td align="left">Geburtsdatum *</td>
		  <td align="left"><input id="date" name="date"/></td>
			<td align="left">E-Mail *</td>
	      <td align="left"><input id="email" name="email"/></td>
		</tr>
		<tr>
			<td align="left">Telefon oder fax</td>
		  <td align="left"><input id="telf1" name="telf1"/></td>
			<td align="left">Addresse</td>
	      <td align="left"><input id="address" name="address"/></td>
		</tr>
		<tr>
			<td align="left">Stadt</td>
		  <td align="left"><input id="city" name="city"/></td>
			<td align="left">Land</td>
	      <td align="left"><input id="country" name="country"/></td>
		</tr>
		<tr>
			<td colspan="2" align="left"> </td>
			<td colspan="2" align="left"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"><em>Wann möchten Sie die Tapir Lodge besuchen</em></td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
        <tr>
			<td>Von*</td>
<td><input id="f_date_c" readonly="readonly" name="f_date_d"/>
			    <img width="20" height="14" id="f_trigger_c" onmouseover="this.style.background='red';" title="Date selector" style="border: 1px solid red; background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; cursor: pointer;" onmouseout="this.style.background=''" alt="calendar" src="http://cuyabenoecuador.com/jscalendar/jscalendar/img.gif"/></td>
			<td colspan="2"><script type="text/javascript">
	Calendar.setup({
	inputField     :    "f_date_c",
	ifFormat       :    "%B %e, %Y",
	button         :    "f_trigger_c",
	align          :    "Tl",
	singleClick    :    false
	});
</script></td>
		</tr>
		<tr>	
			<td >Bis*</td>
<td><input id="f_date_c2" readonly="readonly" name="f_date_d2"/>
			    <img width="20" height="14" id="f_trigger_c2" onmouseover="this.style.background='red';" title="Date selector" style="border: 1px solid red; background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; cursor: pointer;" onmouseout="this.style.background=''" alt="calendar" src="http://cuyabenoecuador.com/jscalendar/jscalendar/img.gif"/></td>
			<td colspan="2"><script type="text/javascript">
	Calendar.setup({
	inputField     :    "f_date_c2",
	ifFormat       :    "%B %e, %Y",
	button         :    "f_trigger_c2",
	align          :    "Tl",
	singleClick    :    false
	});
</script></td>
		</tr>
		<tr>
		  <td colspan="2" align="left"> </td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"><em>Anzahl der Reisenden</em></td>
		  <td colspan="2" align="left" valign="top"> </td>
		</tr>
		<tr>
        	<td >Erwachsene*</td>
		  <td ><input id="adult" maxlength="2" size="3" name="adult"/></td>
			<td colspan="2"> </td>
		</tr>
		<tr>
			<td >Kinder (unter 12)*</td>
		  <td ><input id="children" maxlength="2" size="3" name="children"/></td>
			<td colspan="2"> </td>
		</tr>
		<tr>
			<td colspan="2" align="left"> </td>
			<td colspan="2" align="left"> </td>
	  	</tr>
		<tr>
			<td colspan="2" align="left"><em>Wie haben Sie uns gefunden</em></td>
		  <td colspan="2" align="left"><em>Bitte kreuzen Sie ihre Interessen an</em></td>
	  </tr>
		<tr>
			<td width="15%" >Suchmaschine</td>
		  <td width="24%" ><input type="checkbox" id="search" name="search" value="checkbox"/></td>
			<td width="13%">Galapagos</td>
			<td width="48%"><input type="checkbox" id="galapagos" name="galapagos" value="checkbox"/></td>
	  </tr>
		<tr>
			<td >Reisebüro</td>
		  <td ><input type="checkbox" id="travel" name="travel" value="checkbox"/></td>
			<td>Dschungel</td>
			<td><input type="checkbox" id="jungle" name="jungle" value="checkbox"/></td>
	  </tr>
        <tr>
			<td >Internet Portal</td>
		  <td ><input type="checkbox" id="web" name="web" value="checkbox"/></td>
			<td>Hochland</td>
			<td><input type="checkbox" id="highlands" name="highlands" value="checkbox"/></td>
      </tr>
		<tr>
			<td >Freunde</td>
		  <td ><input type="checkbox" id="friend" name="friend" value="checkbox"/></td>
			<td>Küste</td>
			<td><input type="checkbox" id="Coast" name="Coast" value="checkbox"/></td>
	  </tr>
		<tr>
        	<td colspan="2" > </td>
			<td> </td>
		    <td> </td>
	  </tr>
		<tr>
			<td colspan="2" > </td>
			<td> </td>
	        <td> </td>
	  </tr>
		<tr>
			<td colspan="2" > </td>
			<td> </td>
	        <td> </td>
	  </tr>
		<tr>
			<td colspan="2" > </td>
			<td> </td>
	        <td> </td>
	  </tr>
		<tr>
           	<td align="left"  colspan="4">Zusätzliche Kommentare oder spezielle Wünsche<br />
       	  <textarea id="comments" name="comments" rows="8" cols="98"></textarea></td>
	  </tr>
<tr> 
        <td>{imageverification} </td>
        <td > </td>
        <td > </td>
        <td > </td>        
        </tr>        
        
<tr>
          	<td colspan="3" align="right">
        		<label>
					<div align="left">
						<input name="Submit2" type="reset" id="Submit2" value="Löschen" />
						<input type="submit" name="Submit" id="Submit" value="Abschicken" />
				    </div>
                </label>                </td>
			<td align="right"> </td>
        </tr>
	</tbody>
</table>
<?php 
  break; 
} 
?>
GreyHead 25 Jul, 2008
Hi luiscamp,

There is a server error showing up when you browse to the image url.

Please edit chrono_verifcation.php and find line 28
header("Content-type: image/png");
and replace this temporarily with
header("Content-type: text.html");
Then browse to the image page at /components/com_chronocontact/chrono_verification.php?imtype=1 and see if you see any error messages.

Bob
luiscamp 28 Jul, 2008
Hello

I make the change I found the code in line 18, but I can't see the image
I checked my server log and I have this error
[error] [client 200.69.178.82] SoftException in Application.cpp:544: Directory "/home/ecuaecom/public_html/joomla/components" is writeable by group

I have to change the permission of the component folder?
Or I have to edit something else?

Thanks for your help
luiscamp 31 Jul, 2008
Thanks for your help

I changed the files and folders permissions to 755 and works

Thanks again for all your help, you really make the difference 😀
This topic is locked and no more replies can be posted.