-
AuthorPosts
-
May 16, 2010 at 8:24 am #151099
Hi,
Due to an increasing bot problem I would like to use OSOLCaptcha in the register form. Now the normal way of using OSOLCaptcha won´t work as the register process is handled by a module.
My problem is I can’t find the correct place to insert the code so it would appear inside the register form.
[PHP]<?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));
?>[/PHP]Currently:
I would like:
uniquebiz Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
May 25, 2010 at 1:10 pm #344669ramon1982;178733Hi,
Due to an increasing bot problem I would like to use OSOLCaptcha in the register form. Now the normal way of using OSOLCaptcha won´t work as the register process is handled by a module.
My problem is I can’t find the correct place to insert the code so it would appear inside the register form.
[php]<?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));
?>[/php]Currently:
I would like:
Should be in the opal forum as this is not a JA extension. However if you look at this you may find it useful
Cheers Shannonuniquebiz Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
May 25, 2010 at 1:11 pm #344670ramon1982;178733Hi,
Due to an increasing bot problem I would like to use OSOLCaptcha in the register form. Now the normal way of using OSOLCaptcha won´t work as the register process is handled by a module.
Should be in the opal forum as this is not a JA extension. However if you look at this you may find it useful
Cheers ShannonAugust 18, 2010 at 7:04 am #353023<em>@ramon1982 178733 wrote:</em><blockquote>Hi,
Due to an increasing bot problem I would like to use OSOLCaptcha in the register form. Now the normal way of using OSOLCaptcha won´t work as the register process is handled by a module.
My problem is I can’t find the correct place to insert the code so it would appear inside the register form.
[PHP]<?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));
?>[/PHP]….
</blockquote>Hi Ramon,
you have to insert the PHP Code in the mod_login of your template.
Open the default.php file located at: [root site]/templates/ja_opal/html/mod_loginand insert the PHP code befor the submit button like this
[PHP]
………………..
<?php echo “Fields marked with an asterisk (*) are required.”; ?>
</td>
</tr>
</table>
<?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));
?>
<button class=”button validate” type=”submit”><?php echo JText::_(‘Register’); ?></button>
………………..
[/PHP]You can see that on my site: http://www.canoapolo.it
CIAO
CC -
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by cicco 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum