since nobody help me i found another solution for all of those who cant or dont want to use captcha
i installed this code a couple of days ago and all the darn crap stopped!!!
so that's the deal:
you have to add this code in your comprofiler.html.php
<form method="POST" action="list.php" name="list">
<input type="hidden" name="submitted" value="submitted">
<div class="form_01">
<label for="first_name">First name:</label>
<input title="Visually impaired users: do not enter anything in this box" type="text" name="first_name" id="first_name" value="" onKeyUp=" val = this.value; if (val.length > 0) { alert('Please place your cursor in ‘Name’ box to start your message'); this.value = val.substring(0,0); emailform.focus() } this.form.count.value=0-parseInt(this.value.length); ">
</div>
example
.....
.....
echo _REGISTER_UNAME; ?>" size="40" value="<?php if (isset($row->username)) echo htmlspecialchars($row->username);?>" class="inputbox" /><?php
echo getFieldIcons(1,true,($ueConfig!=1), sprintf( _VALID_AZ09, _UE_UNAME, 2 ), _REGISTER_UNAME); ?></td>
</tr>
<tr>
<td class="titleCell"><?php echo _REGISTER_EMAIL; ?></td>
<td class="fieldCell"><input type="text" name="email" mosReq="1" mosLabel="<?php
echo _REGISTER_EMAIL; ?>" size="40" value="<?php if (isset($row->email)) echo htmlspecialchars($row->email);?>" class="inputbox" /><?php
echo getFieldIcons(1,true,($ueConfig==1 || $ueConfig==2), _REGWARN_MAIL, _REGISTER_EMAIL); ?>
<form method="POST" action="list.php" name="list">
<input type="hidden" name="submitted" value="submitted">
<div class="form_01">
<label for="first_name">Protector</label>
<input title="Visually impaired users: do not enter anything in this box" type="text" name="first_name" id="first_name" value="" onKeyUp=" val = this.value; if (val.length > 0) { alert('Please place your cursor in ‘Password’ box to continue'); this.value = val.substring(0,0); emailform.focus() } this.form.count.value=0-parseInt(this.value.length); ">
</div>
</td>
</tr>
<?php if ($emailpass=="0" || isset($mosConfig_useractivation)) { ?>
<tr>
<td class="titleCell"><?php echo _REGISTER_PASS; ?></td>
this add a field. this field must not contain any character if not the subscription process can not go on.
now we have to hide this field to users
go to your template (/public_html/components/com_comprofiler/plugin/templates)
and choose the template you have (mine is default)
i opened template.css and i add this piece of code:
.form_01 {
visibility: hidden;
display: none;
}
DONE!!! from now on just stupid spambot will try to fill in the invisible field with the result of not being able to finish the subscription process...humans who dont see the hidden field will be able to subsribe.
i tried this on my MAMBO site( i know you people hate this word but well...MAMBO MAMBO MAMBO MAMBO MAMBO MAMBO MAMBO MAMBO :laugh: :laugh: :laugh: :laugh: ) and it works like a charm
please give ME some feedback ( possibly positive feedback
)
enjoy and peace!
Francesco from Italy ---Pisa
Post edited by: bugnotme, at: 2007/03/13 22:38
Post edited by: bugnotme, at: 2007/03/13 22:41