ReCaptcha for Registration

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Sat Jun 12, 2010 1:05 am
Hi, can anyone suggest a Re-Captcha plugin to work with the gk_register module of this template? Or some other alternative to avoid spammers from registering every so often?

Thank you!
User avatar
Senior Boarder

GK User
Sat Jun 12, 2010 3:11 am
Try this one.

But you need to do some changes on files:

Open ../modules/mod_gk_register/mod_gk_register.php

Find this line:

Code: Select all
<p class="form_buttons"><span class="btn"><button class="button validate" type="submit"><?php echo JText::_('REGISTER'); ?></button></span></p>


replace it with:

Code: Select all
<?php
global $mainframe;
//set the argument below to true if you need to show vertically( 3 cells one below the other)
$mainframe->triggerEvent('onShowOSOLCaptcha', array(true));
?>
<p class="form_buttons"><span class="btn"><button class="button validate" type="submit"><?php echo JText::_('REGISTER'); ?></button></span></p>



Install the plugin, go to "Plugins Manager" and enable it.

Now it should look like this:



By the way, this is a good suggestion. I will recommend to our programmer to add this feature on his ToDo list.

Tell me later if this works well.

Cheers ;)
User avatar
Platinum Boarder

GK User
Sat Jun 12, 2010 3:37 am
Valeu meu garoto!!

Thank you very much, I will try this extension and post the results later on!

Cheers!
User avatar
Senior Boarder

GK User
Tue Oct 26, 2010 11:33 pm
thanks.. i did it. it works at the register button on popup.. but it doesnt work in the default register form.. i have to use a menu link for default register form...

www.hukukpartner.com
User avatar
Senior Boarder

GK User
Sat Jan 22, 2011 12:54 am
Is there a way to add the same function to the "ask a question about this product", the "call for pricing" and the "contact us" page?
I am using mystore template
User avatar
Fresh Boarder

GK User
Sat Jan 22, 2011 8:42 am
please ask such questions to virtuemart...
User avatar
Platinum Boarder

GK User
Sat Jan 22, 2011 5:07 pm
I know, you are refering to this thread on the VM forum.

I have tried it, and it is not working with this template.
I was also wondering, if it would work to insert seichinha's solution and code snippet into the
"joomlacomponentscom_virtuemartthemesdefaulttemplatespagesshop.ask.tpl.php"

The solution below ONLY works if you have the stock flypage from virtuemart.
I have found this line:

Code: Select all
<input type="button" name="send" value="<?php echo $VM_LANG->_('SEND_BUTTON') ?>" class="button" onclick="validateEnquiryForm()" />


and inserted right before it this one:
Code: Select all
<?php global $mainframe;
//set the argument below to true if you need to show vertically( 3 cells one below the other)
        $mainframe->triggerEvent('onShowOSOLCaptcha', array(false));?>

(the false can be true as well in the code snippet, it was only my preference to display it horizontally)
User avatar
Fresh Boarder

GK User
Fri Mar 18, 2011 9:59 pm
....sorry, install plugin....do u know where I can find this plugin ?
User avatar
Gold Boarder

GK User
Wed Aug 24, 2011 5:02 pm
For those who want to apply this plugin in Joomla 1.7, put this where the ReCaptcha must be visible!
Code: Select all
 <div id="gk_recaptcha"></div>
        <?php
      JFactory::getApplication()->triggerEvent('onShowOSOLCaptcha', array(true));
      ?>
      <div>
User avatar
Fresh Boarder

GK User
Wed Dec 14, 2011 2:18 am
Wil wrote:For those who want to apply this plugin in Joomla 1.7, put this where the ReCaptcha must be visible!
Code: Select all
 <div id="gk_recaptcha"></div>
        <?php
      JFactory::getApplication()->triggerEvent('onShowOSOLCaptcha', array(true));
      ?>
      <div>


Hi - On my J1.7.3 using Financial Business from gavickPro v2.5, I inserted the above code in my templates .../com_users/registration/default.php right right about in line 48.

I still do not see the reCaptcha although I have the public and private key in plug in system-recaptcha as well sin k2 comments. The irony is my recaptcha works within login from the link "create account".

any help will be appreciated. thanks,
User avatar
Expert Boarder


cron