Kunena 7.0.2 Released

The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question [Merged topic] The great CAPTCHA problem discussion

More
15 years 2 months ago - 15 years 2 months ago #81239 by ronydjohan
Replied by ronydjohan on topic Captcha not working
I have tried to use captcha system. But didn't work out. Already follow this instructions .

Anybody can help?? Thanks in advance.
Last edit: 15 years 2 months ago by ronydjohan.
The topic has been locked.
More
15 years 2 months ago #81258 by xillibit
Replied by xillibit on topic Re: Captcha not working
Hello,

Why it didn't work ? What kunena version do you have ?

I don't provide support by PM, because this can be useful for someone else.
The topic has been locked.
More
15 years 1 month ago #83487 by SMurflalus
J 1.5.22. CB 1.31
I used K 15.12. Works great with re-captcha. I upgraded to K 1.6 time ago- the same problems as other users above - recaptcha doesn't work.
I downgraded to 1.5.12 again and re-captcha works. Today I tried to upgrade to K 16.2 and re-captcha still doesn't work. It's a pity I have to downgrade to K 1.5.12 back again. :(

It's a pity that the only hint is still the same: link to wiki ( google...) - it's poor antispam solution. Re-captcha is better for me and for the others , I see...and I remember that few months ago Kunena Team promised on that forum to implement re-captcha to Kunena... and .... nothing has happened :(


rgds
The topic has been locked.
More
15 years 1 month ago #83520 by naimless
Hello,

I have the same problem but am semi-happily running 1.6.3. I guess since most Kunena boards aren't anonymous writable the devs spend less time on Captcha support.

The only hack I have been able to do to fix it has been the following.

First you need to modify the standard Captcha plugin that is described on the Wiki page. It's ugly but sort of works. Basically, the theory is to hack around with the captcha PHP code so it always generates the same Captcha image. Say "XYZ". Then modify post to not even bother to talk to the Captcha properly and just check whether the submitted text is "XYZ".

First edit /plugins/system/captcha/showcode.php

Change:
Code:
if (array_key_exists( 'imagecode', (array) $currentcaptchas ) ) { // $captchacode .= $currentcaptchas[ 'imagecode' ]; $captchavoice .= $currentcaptchas[ 'soundcode' ]; @$_SESSION [ 'acaptcha' . $captchasuffix ] = $captchacode; @$_SESSION [ 'ncaptcha' . $captchasuffix ] = $captchavoice; @$_SESSION [ 'captchaslist' . $captchasuffix ] = $captchaslist; } else { @$_SESSION [ 'acaptcha' . $captchasuffix ] = ''; @$_SESSION [ 'ncaptcha' . $captchasuffix ] = ''; @$_SESSION [ 'captchaslist' . $captchasuffix ] = array(); $captchacode = 'joomlacaptcha'; $xsize = 200; }

to:
Code:
if (array_key_exists( 'imagecode', (array) $currentcaptchas ) ) { // $captchacode .= 'XYZ'; $captchavoice .= $currentcaptchas[ 'soundcode' ]; @$_SESSION [ 'acaptcha' . $captchasuffix ] = $captchacode; @$_SESSION [ 'ncaptcha' . $captchasuffix ] = $captchavoice; @$_SESSION [ 'captchaslist' . $captchasuffix ] = $captchaslist; } else { @$_SESSION [ 'acaptcha' . $captchasuffix ] = ''; @$_SESSION [ 'ncaptcha' . $captchasuffix ] = ''; @$_SESSION [ 'captchaslist' . $captchasuffix ] = array(); $captchacode = 'XYZ'; $xsize = 200; }

Note the XYZ - I think that's the only change I made.

Then, in com_kunena/funcs/post.php
find public function verifyCaptcha() {

find:
Code:
if ( $results[0] ) { $captchaparams = array( JRequest::getVar( 'captchacode', '', 'post' ) , JRequest::getVar( 'captchasuffix', '', 'post' ) , JRequest::getVar( 'captchasessionid', '', 'post' )); $results = $dispatcher->trigger( 'onCaptchaVerify', $captchaparams ); if ( ! $results[0] ) $this->_app->enqueueMessage ( JText::_ ( 'COM_KUNENA_CAPTCHACODE_DO_NOT_MATCH' ), 'error' ); $this->redirectBack (); return false; }

and replace with:
Code:
if ( $results[0] ) { $captchaparams = array( JRequest::getVar( 'captchacode', '', 'post' ) , JRequest::getVar( 'captchasuffix', '', 'post' ) , JRequest::getVar( 'captchasessionid', '', 'post' )); /*$results = $dispatcher->trigger( 'onCaptchaVerify', $captchaparams ); if ( ! $results[0] ) {*/ if ((strcasecmp($captchaparams[0], 'XYZ')) != 0) { $this->_app->enqueueMessage ( JText::_ ( 'COM_KUNENA_CAPTCHACODE_DO_NOT_MATCH' ), 'error' ); $this->redirectBack (); return false; }

Now I hope I remembered all the steps here with my limited PHP skills.

Damn ugly solution but it stops 100% of spam so far (until a spammer actually manually looks at the image and tells a software to spam the heck out of it - but on moderately sized forums this probably won't be a problem and you can always manually modify the XYZ code after that.

Is a good stopgap until the devs fix it. Not sure what the problem is, whether it's caching or something else.

I have disabled JotCache for the Kunena component and in any case also with Jotcache disabled it gave those errors.

Also, a semi-big problem - if users don't enter the right captcha, the form still submits and you lose all the text you've inputted, which is very annoying. Not sure how to fix it so that the Submit button checks for this.

Anything you Kunena wizards can do to solve for the next release would be much appreciated!

And happy birthday, great work, looking forward to many happy returns!
The topic has been locked.
More
15 years 1 month ago #83524 by naimless
Btw, just skimmed the forum and it seems that at least for the Devs and some others the Captcha works. It must be some obscure conflict with another component, although ages ago I tried disabling pretty much everything so don't know the culprit.

I use the following components (the most troublesome listed only):
- jomsocial, myblog, mycomment,
- sh404sef
- com_jobs
- JotCache (disabled for kunena and a bunch of other components)
- and a mix of other standard goodie add-ons and plugins.

If those who have problems can say if you have similar configs we can maybe figure out whether the problem is some obscure conflict...?

Cheers
The topic has been locked.
More
15 years 1 month ago #83908 by ender
Hello, I dont understand why Kunena forum natively dont use recaptcha www.google.com/recaptcha ?? e.g. extension Alpharegistration uses it and its working without problems. Is it big problem to integrate this? Thnx.
The topic has been locked.
Time to create page: 0.556 seconds