Integration into a component

5 views
Skip to first unread message

niobbechepaou

unread,
Jan 16, 2010, 10:46:38 AM1/16/10
to joomlacaptcha
Hello,

I'am trying to integrate the captcha into the form of the kunena
component, but i have failed.

I have put this code, but the image captcha isn't displayed :

<td align="left" valign="middle" height="35px">&nbsp;
<?php $dispatcher = &JDispatcher::getInstance();
$results = $dispatcher->trigger
( 'onCaptchaRequired', array
( 'kunena.post' ) );
if ($results[0]) {
$captchaparambyname = array( 'captchagroup' => 'kunena.post',
'closehtml' => '<br />', 'idsuf' => '' );
$dispatcher->trigger( 'onCaptchaView', array
( $captchaparambyname ) );
}
?>

<button class="button validate" type="submit"><?
php echo JText::_('Send'); ?></button></td>

I don't know what i need to put in array( 'kunena.post' ), i have set
the same in configuration of the plugin but the image isn't showed,
because the $results variable is empty.

Do you have any clues ?

keithyoung89

unread,
Jan 16, 2010, 1:02:53 PM1/16/10
to joomlacaptcha
Sorry - I find this confusing.

What do you mean by 'the form of the kunena component? Kunena is a
forum component which requires (Joomla!) account login in order to
post replies, assuming you configure it that way. I'm not aware that
Kunena has its own form.

So you want Captcha to appear against your Joomla! login form.

Are we talking at cross-purposes, perhaps?

niobbechepaou

unread,
Jan 17, 2010, 6:37:00 AM1/17/10
to joomlacaptcha
With kunena you can using post like a guest so without login into
joomla, and then i want to add a better captcha to the form where you
write a post.

keithyoung89

unread,
Jan 17, 2010, 1:24:21 PM1/17/10
to joomlacaptcha
I think I see what you mean!

I use Captcha on this site www.staffierescuescotland.co.uk . The site
uses the predecessor to Kunena, Fireboard, which I plan to upgrade to
Kunena soon. But you have me worried!

With the Fireboard forum I set the Enabled Captchas parameter as
follows:
user.login,user.remind,user.reset,user.register,user.contact,administrator.login
and you will see that Captcha works OK. However, as I say, this is
Fireboard, not Kunena! Can you try these parameters and see if it
works on Kunena? If not, I would suggest that you contact the Kunena
support team for help.

But I think it should work as it seems to me that the registration/
login/password reminder is the standard Joomla! functionality and
should be independent of which forum software you use (Kunena or
Fireboard).

Can you let us know how you get on with the above parameters?

Good luck!

> > > Do you have any clues ?- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
Message has been deleted
0 new messages