problem with antispam

Shows some Tutorials

problem with antispam

Postby Qbik on Sat May 17, 2008 9:19 am

Hi,
few days ago i started receive spam message form form on my site so I decide to add anti spam feature, and i have one problem
This is my site with test form here

As You can see the Captcha is visible on form, but when I tried to send this form this error appear
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in /home/users/wikaro/public_html/joomla/components/com_chronocontact/chronocontact.php on line 200


Any Idea how to solve this?
Qbik
Junior Boarder
 
Posts: 35
Joined: Wed Feb 06, 2008 8:53 am

Re:problem with antispam

Postby GreyHead on Sat May 17, 2008 9:25 am

Hi Qbik,

I believe that this is fixed in the latest release, please upgrade and check.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:problem with antispam

Postby Qbik on Sat May 17, 2008 9:35 am

Hi Bob,
ok Now it's work, but after entering antispam code and send i have this message
Parse error: syntax error, unexpected '<' in /home/users/wikaro/public_html/joomla/components/com_chronocontact/chronocontact.php(425) : eval()'d code on line 51


And One more question is there any options to save input fields when the code is not enter?

Now i have popup information that I have have to write this code and all fields are blank again :(
Qbik
Junior Boarder
 
Posts: 35
Joined: Wed Feb 06, 2008 8:53 am

Re:problem with antispam

Postby GreyHead on Sat May 17, 2008 5:59 pm

Hi Qbik,

Check your OnSubmit before code box - looks as though there's a typo in there somewhere (around line 51).

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:problem with antispam

Postby admin on Sat May 17, 2008 10:11 pm

And please check the FAQs section on how to keep the fields data when the captcha is wrong

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:problem with antispam

Postby Qbik on Sun May 18, 2008 10:03 am

Hi Max,
I try to add text from FAQ and I'm doing something wrong Can You help me with it
on site form look like this http://wikaro.pl/index.php?option=com_c ... kt_testowy

and code of form
Code: Select all
<div class="form_kontakt"><label for="nazwisko">Imię i Nazwisko:</label>
   <input name="nazwisko" value=" />" type="text"></div>
   <div class="form_kontakt"><label for="email">Adres email:</label>
   <input class="required validate-email" name="email" value=" />" type="text"></div>
   <div class="form_kontakt"><label for="telefon">Telefon:  <small>(np. 502072464)</small></label>
   0 - <input class="required validate-telefon" name="telefon" value=" />" type="text" maxlength="9" size="16"></div>
   <div class="form_kontakt"><label for="wiadomosc">Wiadomość:</label>
    <textarea style=" BACKGROUND: #fcfcfc; WIDTH: 300px; HEIGHT: 100px" name="wiadomosc" value=" />"></textarea></div>{imageverification}
   <label class="send"><input name="Submit" type="submit" value="Wyślij wiadomość" title="wyślij wiadomość" alt="wyślij wiadomość"></label>
   </fieldset></div>


And how I can add image to refresh button or where i have to put it?
Qbik
Junior Boarder
 
Posts: 35
Joined: Wed Feb 06, 2008 8:53 am

Re:problem with antispam

Postby GreyHead on Sun May 18, 2008 10:17 am

Hi Qbik,

Replace value=" />" with value ="", or perhaps you want to show the post values in which case it should be
Code: Select all
value="<?php echo $_POST['field_name']; ?>"
Bob

PS I'm sorry, the site is having some serious problems displaying code at the moment :-(
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:problem with antispam

Postby Qbik on Sun May 18, 2008 10:31 am

Thx GreyHead its work now for input and what about text area?
the same code has no efect :(

Other Question how i can change refresh button (add image) of validation code?
Qbik
Junior Boarder
 
Posts: 35
Joined: Wed Feb 06, 2008 8:53 am

Re:problem with antispam

Postby admin on Fri May 23, 2008 12:03 am

Hi, textareas don't take a value attribute, add this in between the textarea tags

there is some posts about the refresh captcha here in the forums

Cheers

<ax
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:problem with antispam

Postby Qbik on Sun May 25, 2008 10:54 am

Ok I try to find something about textarea and captcha
but it not work
Now it's look like that

Code: Select all
  <div class="kontakt_info"><fieldset>
<legend>Masz jakieś uwagi, opinie lub pytania, napisz do nas.</b><br />
Jeśli na stronie są jakieś nieprawidłowości lub błędy napisz nam o tym.</legend>
<img src="../images/mail-48x48.png" alt="kontakt" hspace="20px" vspace="10px" align="right">
   <div class="form_kontakt"><label for="nazwisko">Imię i Nazwisko:</label>
   <input name="nazwisko" value="<?php echo $_POST['nazwisko']; ?>" type="text"></div>
   <div class="form_kontakt"><label for="email">Adres email:</label>
   <input class="required validate-email" name="email" value="<?php echo $_POST['email']; ?>" type="text"></div>
   <div class="form_kontakt"><label for="telefon">Telefon:  <small>(np. 502072464)</small></label>
   0 - <input class="required validate-telefon" name="telefon" value="<?php echo $_POST['telefon']; ?>" type="text" maxlength="9" size="16"></div>
   <div class="form_kontakt"><label for="wiadomosc">Wiadomość:</label>
    <textarea style=" BACKGROUND: #fcfcfc; WIDTH: 300px; HEIGHT: 100px" name="wiadomosc" value="<?php echo $_POST['wiadomosc']; ?>"></textarea></div>
<div><label for="validate">Proszę przepisać kod:</label>{imageverification}</div>
   <label class="send"><input name="Submit" type="submit" value="Wyślij wiadomość" title="wyślij wiadomość" alt="wyślij wiadomość"></label>
   </fieldset></div>


What should I change or add?
Now when i insert wrong captcha, it insert blank entry in textarea
Qbik
Junior Boarder
 
Posts: 35
Joined: Wed Feb 06, 2008 8:53 am

Re:problem with antispam

Postby GreyHead on Sun May 25, 2008 12:25 pm

Hi Qbik,

For a textarea there is no 'value' attribute. The saved code needs to go between the tags:
Code: Select all
<textarea name="wiadomosc" ><?php echo $_POST['wiadomosc']; ?></textarea>
Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:problem with antispam

Postby Qbik on Sun May 25, 2008 1:41 pm

Hi GreyHead,
it's work ;)
Qbik
Junior Boarder
 
Posts: 35
Joined: Wed Feb 06, 2008 8:53 am


Return to How To

Who is online

Users browsing this forum: No registered users and 1 guest