Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7087573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:41:26+00:00 2026-05-28T07:41:26+00:00

I’m using Joomla jQuery Registration extension which comes without any kind of botcheck feature

  • 0

I’m using Joomla jQuery Registration extension which comes without any kind of botcheck feature and I’d like to add it but I don’t know how I’d go about doing that. Here is the extension’s code:

    <?php
/**
 * @title         jQuery Dropdown Registration Module
 * @version   1.7.2
 * @package     Joomla
 * @author      http://www.minitek.gr (Ioannis Maragos)
 * @copyright   Copyright (C) 2011 Minitek. All rights reserved.
 * @license     GNU General Public License version 2 or later.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<?php JHTML::_('behavior.formvalidation'); ?>       

<?php /*<link rel="stylesheet" href="modules/mod_dropdown_registration/css/style.css" type="text/css" /> */?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2" type="text/javascript"></script>
<script src="modules/mod_dropdown_registration/js/register.js" type="text/javascript"></script>


<?php
$user = JFactory::getUser();
$myID = $user->id;
if ($myID == 0) {
?>
<div id="registerContainer">
                <a href="#" id="registerButton"><span>Registracija</span><em></em></a>
                <div style="clear:both"></div>
<div id="registerBox"> 

<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users'); ?>" method="post" class="form-validate">

<fieldset id="reg-body" class="userdata">       

<div class="reg-field">
    <label for="jform_name" id="jform_name-lbl">
            Ime i prezime:
    </label>
</div>      
<div style="float:left;">
    <input type="text" maxlength="50" class="inputbox required" value="" size="40" id="jform_name" name="jform[name]"/><br/>
    Molimo Vas da unesete stvarno ime i prezime!
</div>

<div style="clear:both;"></div>
<div style="height: 7px;"></div>

<div class="reg-field">
        <label for="jform_username" id="jform_username-lbl">
            Korisničko ime:
        </label>
</div>
<div style="float:left;">
        <input type="text" maxlength="25" class="inputbox required validate-username" value="" size="40" name="jform[username]" id="jform_username"/>
</div>
<div style="clear:both;"></div>

<div class="reg-field">
        <label for="jform_password1" id="jform_password1-lbl">
            Lozinka:
        </label>
</div>
<div style="float:left;">
        <input type="password" value="" size="40" name="jform[password1]" id="jform_password1" class="inputbox required validate-password"/>
</div>
<div style="clear:both;"></div>

<div class="reg-field">
        <label for="jform_password2" id="jform_password2-lbl">
            Potvrdite lozinku:
        </label>
</div>
<div style="float:left;">
        <input type="password" value="" size="40" name="jform[password2]" id="jform_password2" class="inputbox required validate-password"/>
</div>
<div style="clear:both;"></div>

<div class="reg-field">
        <label for="jform_email1" id="jform_email1-lbl">
            E-mail:
        </label>
</div>
<div style="float:left;">
        <input type="text" maxlength="100" class="inputbox required validate-email" value="" size="40" name="jform[email1]" id="jform_email1"/>
</div>
<div style="clear:both;"></div>

<div class="reg-field">
        <label for="jform_email2" id="jform_email2-lbl">
            Potvrdite e-mail:
        </label>
</div>
<div style="float:left;">
        <input type="text" maxlength="100" class="inputbox required validate-email" value="" size="40" name="jform[email2]" id="jform_email2"/>
</div>
<div style="clear:both;"></div>

<br/>
    <font color = "#FF0000">Sva polja su obavezna!</font><br/>

<br/>
    <button type="submit" class="button validate">Registracija</button>
    <input type="hidden" name="option" value="com_users" />
    <input type="hidden" name="task" value="registration.register" />
    <?php echo JHtml::_('form.token');?>

    </fieldset>

</form>

 </div>
</div>
<?php
}
?>

I’m sorry if doesn’t come out as a code block but the instructions are unclear. Anyhow – what I’d like to do is add a text field before the Submit button which will have something like a “What is 3 plus 2” label in front of it, and the submit won’t work if the answer is incorrect. Is there any way to do this without editing Joomla core files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:41:27+00:00Added an answer on May 28, 2026 at 7:41 am

    You could user jQuery to add your label and input elements to the page. Then bind a .click() listener to the submit button that checks the validity of your answer before the form can be submitted. Do not that this is not a very secure bot checking solution. To add an extra level of security you might consider changing the 2 and 3 to two and three and also perhaps alternate between plus, minus, multiply and divide and store the answers and question combos in your Joomla session instead of calculating it all in JS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.