Forums

Will chronoforms work how I want ? any how to start ?

Max_admin 09 Apr, 2009
Hi, i'm not sure how this works, can you give me some explanation, maybe it can be remade in some easy way here!

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
cally6008 09 Apr, 2009
Hiya.

It's basically 2 drop down boxes for the registration pages with the default answers set as the wrong answers already.

The first one is a question "Are you a spammer", required field, default answer is yes, human changes it to no to pass

The second one is asking for "The middle number" in sequence 1 2 3 4 5, required field, default answer is 5, huamn changes it to 3 to pass
GreyHead 09 Apr, 2009
Hi cally6008 & Max,

First off - I've implemented a similar scheme here - we'll see if is slows down the spammers (four so far today and it's only half-way through).

The easy way to do it with ChronoForms would be to build a custom registration page using the cf_joomla_registration plugin. There's a tutorial in the downloads area here.

Add a couple of extra form fields and test them either with JavaScript validation or with a couple of lines of server-side validation.

Bob
Max_admin 10 Apr, 2009
Thanks cally6008 & Bob, now I got it, you can do it using the way Bob suggested, you can even add some PHP to change the dropdown choices everytime it loads, random changes but keep the correct value!

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
cally6008 10 Apr, 2009
My skills with php and coding from scratch is zilch I'm afraid. It would have to be a total dummies guide to exactly what to put exactly where 🙄
Max_admin 10 Apr, 2009
No problems, I think that for now, you can make it the way Bob suggested with no changes, and may be later, I will add a new element to the wizard, which will create a dynamic one!😉

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
cally6008 10 Apr, 2009
Downloaded, installed, set up basic joomla registration page = all ok

Next step - how to set up a profile field and have it so that if the person registering inputs or selects the wrong answer .. they don't get the Registration Complete screen and thus are not able to register on the website ?
GreyHead 10 Apr, 2009
Hi cally6008,

Add a couple of extra fields to the form with whatever questions you want to use. The set up server side validation to check the answers.
Here's a mini example - with just the test box and a submit button. Form HTML
<div class="form_item">
  <div class="form_element cf_dropdown">
    <label class="cf_label">Which is bigger?</label>
    <select class="cf_inputbox validate-selection" id="select_0" size="1" title="" name="select_0">
      <option value="mosquito" selected='selected' >Mosquito</option>
      <option value="elephant">Elephant</option>
    </select>
  </div>
  <div class="clear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Submit" type="submit" />
  </div>
  <div class="clear"> </div>
</div>

Server-side Validation code
<?php
$select_0 =& JRequest::getString('select_0', '', 'post');
if ( $select_0 != 'elephant' ) {
    return "Yah boo sucks to you!";
}
?>

Result:
[attachment=0]10-04-2009 12-14-48.png[/attachment]

Bob
cally6008 10 Apr, 2009
Fantastic, now implemented with a question that fits the theme of the website.

A few little niggles but easily sorted by looking through forums -
antispam > works without fonts
removed the submit button from code given above
switched joomla registrations back on to prevent 404 errors 🙄
re-read the joomla reg. pdf file and realised I had to update that user/tmp file

Just checking .. I can add more html to the form html, can't I ? Just need to add a title and wording to the beginning of the page
GreyHead 10 Apr, 2009
Hi cally6008,

Yes you can add more to the form or create a new form and add this field - just as easy.

Bob
This topic is locked and no more replies can be posted.