Osclass forums

Support forums => Plugins => Topic started by: shamim_biplob on April 30, 2015, 01:37:48 pm

Title: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: shamim_biplob on April 30, 2015, 01:37:48 pm
Google intruduce no Captcha reCaptcha. It is very user friendly, Just need a tick mark.

I am a WordPress plugin developer. Before few days i wrote a plugin https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/ (https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/) Advenced noCaptcha reCaptcha for WordPress. I search osclass plugins is this plugin present and i find no. Then i decide to make this plugin for Osclass as when i used Osclass bot was a problem for me. But i do not use osclass so many days. Many core file have been changed. So i studied about Osclass core files as well as some plugins to know how they works. Then i write noCaptcha reCaptcha for Osclass. You can give it a try. Install this plugin and in configure page more instructions are there.


This Plugin is now available in market. Download from there.
http://market.osclass.org/plugins/security/nocaptcha-recaptcha_251 (http://market.osclass.org/plugins/security/nocaptcha-recaptcha_251)

BE SURE

1. disable core reCaptcha
2. You have to get new pair of keys from google and add those keys in plugin settings page.
3. Set up this plugin in plugin settings page as you need.

version 1.1.2

Bug fixes
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: gnoe on May 02, 2015, 01:19:25 am
Thank you for your plugin. :)
I believe it needs new site keys from google because it's a different api.
I'll try it for sure.
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: gnoe on May 02, 2015, 02:39:20 pm
I can't save preferences like Site Key,Secret key etc in admin panel.
It keeps loading default values.
Any idea how to solve this?
Regards.
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on May 02, 2015, 03:07:17 pm
Because there is no code for saving preferences. shamim_biplob many here will appreciate your efforts, but the thing is Captcha is already part of the core and noCaptcha is in the process of implementation with minor issues with default theme. Also, Conejo said he wants to figure a way of not breaking existing sites that use it, old keys will not work anymore so it has to be a smooth transition. Maybe the plugin is the best answer actually, dropping it from the core entirely.

https://github.com/osclass/Osclass/pull/1778

Regards
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: shamim_biplob on May 03, 2015, 02:18:45 pm
I have corrected this plugin. Download from first post again. dev101 yes it will be better to drop from core entirely i think. and there should be lot more hook in core so that a plugin or theme developer can change almost anything without touching any core code. every output should go through filter. As you see for example WordPress if you write a plugin you do not have to think which theme users are using (in most of the cases). There are lots of hooks and most core hooks are using by theme. So any change will afect all the themes same way.
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: gnoe on May 05, 2015, 11:55:16 am
Just tested it and it's working fine for me.
So far so good.
Preferences are saved.
While you're testing just don't be logged in and click on forms(admin panel) to activate validation.

Only 1 note.
Can you extend form validation for user-public-sidebar.php & user-recover.php ?

Great job shamim_biplob and thanks for your efforts. :)
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on May 05, 2015, 06:07:46 pm
Shouldn't admin part be in admin folder ?

Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on May 05, 2015, 06:29:34 pm
*** UPDATED 12-FEB-2017 ***

(some further improvements)



(for version 1.0.0 ~ 1.1.x) I took the liberty to fix few things and rewrite admin side. First, form still did not work 100% in my setup (some keys were missing) and form data was blank [incomplete html]. Also, fixed security related part, as Aficionado noticed. Finally, translation strings should now work properly. I have to admit that I did not have time to test and update front side yet. Once all things get sorted this should definitively be posted in Market for user convenience and automatic upgrades in the future.

(for versions 1.2.x) follows original version as much as possible, but with many other changes & fixes, translations domains, removed admin side protection (completely wrong implementation by original author - can lock you out of your own website) etc...

Regards
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: shamim_biplob on May 05, 2015, 10:52:14 pm
dev101 Thank you for update. Is it really necessary to move admin.php into admin folder? also anr_admin_actions() function into admin.php? also i do not understand why you add enctype="multipart/form-data" ?
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on May 05, 2015, 10:53:38 pm
1. yes.
2. yes and no, it is more logical there and for future edit
3. you can remove it, c/p
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Chandler on May 13, 2015, 11:07:08 pm
Hi,

In what folder should we extract it ?
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on May 14, 2015, 12:57:14 am
oc-content/plugins/
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Chandler on May 14, 2015, 12:11:45 pm
It does not work for me. Where should we put the site key and secret key?

It doesn't show in admin panel, is it correct this?

Should we must have installed the old plugin of google captcha before installing this one ?
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on May 14, 2015, 12:15:00 pm
The old captcha should be disabled simply by deleting old keys (not sure about conflicts since it is in core, but why keep it either?). Did you installed the plugin (check Plug icon)? Afterwards, you should see plugin's menu.
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Chandler on May 14, 2015, 02:36:35 pm
I do not see plugin icon. Maybe is because the osclass is installed in a subdomain ?
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on July 02, 2015, 08:20:26 pm
Just FYI it doesn't work for me.

Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: akosijared on July 03, 2015, 08:35:28 am
it's not working for me either, I keep on getting "ERROR: Please solve Captcha correctly." How do we go about this?

Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on July 03, 2015, 03:42:58 pm
Ok i would like to correct/update my previous post.

While this plugin didn't work well with Bender, it works ok with OsclassWizards free theme. All it takes is one line of code to remove and add a new one following the help file of the plugin.

Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: shamim_biplob on July 03, 2015, 06:02:34 pm
Did you download this plugin from market?

http://market.osclass.org/plugins/security/nocaptcha-recaptcha_251 (http://market.osclass.org/plugins/security/nocaptcha-recaptcha_251)
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on July 03, 2015, 06:08:32 pm
I have just tested modified version from this post (http://forums.osclass.org/plugins-20/(free-plugin)-nocaptcha-recaptcha/msg121062/#msg121062) and it's working without any issues in Bender theme.

Regards
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on July 03, 2015, 07:31:39 pm
Did you download this plugin from market?

http://market.osclass.org/plugins/security/nocaptcha-recaptcha_251 (http://market.osclass.org/plugins/security/nocaptcha-recaptcha_251)

Yes.
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on July 03, 2015, 07:34:52 pm
I have just tested modified version from this post (http://forums.osclass.org/plugins-20/(free-plugin)-nocaptcha-recaptcha/msg121062/#msg121062) and it's working without any issues in Bender theme.

Regards

If you go to Plugins page and select CONFIGURE from there, it goes to an EMPTY page.

Right ?


That happens with the plugin version from market. Doesn't happen with the mod version.


Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on July 03, 2015, 07:49:05 pm
That version from market is different. edit: Aficionado, I see that you edited the post in the meantime. As I said before, I have fixed some issues in 1.1.1_mod version. However, the plugin in the market is still at 1.1.1 official and issues are unfortunately still present in that version. What does look troubling is the fact that plugin so far has 850+ downloads and not a single review or complaint.

Regards
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on July 03, 2015, 07:55:00 pm
That version from market is different. edit: Aficionado, I see that you edited the post in the meantime. As I said before, I have fixed some issues, and they are unfortunately still present in the market version.

Regards

Thanks dev101 for the help and the programming you did. Appreciated.

Just the original author should update his plugin, so people will install the fixed version.

Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: dev101 on July 03, 2015, 07:57:58 pm
Thanks, you are welcome :)
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: shamim_biplob on July 03, 2015, 08:09:06 pm
nobody complain so that i overlook some bugs. After Aficionado's post i download this plugin from market and look the codes. So far i got 2 bugs.

in index.php of this plugin
line 140 change

Code: [Select]
osc_admin_render_plugin('nocaptcha_recaptcha/admin.php');
to

Code: [Select]
osc_admin_render_plugin(osc_plugin_folder(__FILE__) . 'admin/admin.php');
 and line 147 change

Code: [Select]
osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'admin.php')
to

Code: [Select]
osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'admin/admin.php')
i will also update market's copy after more checkup plugin's code. If anybody found any bugs please report so that i can correct and update accordingly.

Thanks
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: akosijared on July 05, 2015, 08:38:43 am
Finally.. I got mine working.. what I did is to remove the activation codes under settings > bots & spam and plainly used the plugins..

Great work Shamim!
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on July 12, 2015, 05:45:31 pm
New version 1.1.2

Bug fixes: configure broken link fixes
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: Aficionado on July 12, 2015, 11:26:15 pm
New version 1.1.2

Bug fixes: configure broken link fixes

The update doesn't work, asks to be updated after the update, and broke the page.

Sad.

Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on July 23, 2015, 12:00:29 am
version updated in market. Please let me know if you found any issue.

Regards 
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: Aficionado on July 23, 2015, 01:53:17 pm
version updated in market. Please let me know if you found any issue.

Regards

It seems to update fine and work well.

Many thanks
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: hertz on July 27, 2015, 11:25:26 am
Ok i would like to correct/update my previous post.

While this plugin didn't work well with Bender, it works ok with OsclassWizards free theme. All it takes is one line of code to remove and add a new one following the help file of the plugin.

Hi Aficionado,

Would you mind sharing where to add/remove the line of code? I'm using OsclassWizards free theme as well. Appreciate if you can guide me through this. Thanks!
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: Aficionado on July 27, 2015, 12:48:05 pm
Ok i would like to correct/update my previous post.

While this plugin didn't work well with Bender, it works ok with OsclassWizards free theme. All it takes is one line of code to remove and add a new one following the help file of the plugin.

Hi Aficionado,

Would you mind sharing where to add/remove the line of code? I'm using OsclassWizards free theme as well. Appreciate if you can guide me through this. Thanks!

Nothing special, just follow the help instructions of the plugin. The code is in there, just remove the old from the files and add the new.
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: hertz on July 27, 2015, 05:55:01 pm
Ok i would like to correct/update my previous post.

While this plugin didn't work well with Bender, it works ok with OsclassWizards free theme. All it takes is one line of code to remove and add a new one following the help file of the plugin.

Hi Aficionado,

Would you mind sharing where to add/remove the line of code? I'm using OsclassWizards free theme as well. Appreciate if you can guide me through this. Thanks!

Nothing special, just follow the help instructions of the plugin. The code is in there, just remove the old from the files and add the new.

Thanks!! I manage to get it setup on my site but seems like there's no way I can pass through the noCaptcha reCaptcha even with valid answer. I'm not sure what's going on in there...
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on July 28, 2015, 01:19:23 am
are you using new keys (v2 for reCaptcha from google)?
did you remove reCaptcha Public key and Private key from Settings > Spam and Bots?
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: hertz on July 28, 2015, 04:11:29 am
are you using new keys (v2 for reCaptcha from google)?
did you remove reCaptcha Public key and Private key from Settings > Spam and Bots?

Hi Shamim,

Is there a way to check and verify if I'm using new keys? This is the first time I created the keys via the site mentioned from the plugin configuration.
did you remove reCaptcha Public key and Private key from Settings > Spam and Bots? => I have not input any keys for it.

Thanks,
Hertz
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on July 30, 2015, 08:15:35 pm
what error you are getting?
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: hertz on July 31, 2015, 04:35:08 am
what error you are getting?

Please solved reCaptcha, I'm unable to pass it no matter how many times I tried. Now I have to fallback in using reCaptcha v1 and it seems to be working.

The only thing I did was replace 1 line of code as per the plugin reference.

Chronologically, I installed noCaptcha reCaptcha plugin first, then get the keys from Google and it seems to be not working. I have deleted the keys and plugin and requested new set of keys for v1 and it seems to be working fine.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on July 31, 2015, 05:31:03 am
Please try one more time, one by one

Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: hertz on August 04, 2015, 03:44:03 pm
Please try one more time, one by one

  • Install noCaptcha reCaptcha
  • In settings page of this plugin add site key and secret key for v2
  • Change error message to something unique message
  • "Show Captcha on" tick only in "New listing Form"
  • in your theme item-post.php change previous captcha code with new captcha code (see this plugins help)
  • remove keys from spam and bots
  • save everything
  • Now try to post a new item.
  • Can you pass now? If no, what is the error message? is it the message you set in for this plugin?

Yea, it's the error that I set for the plugin.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on August 04, 2015, 09:28:18 pm
Can you give me your website url where i can try one time for you?
if possible Give me theme you are using (edited copy).
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: SteveJohnson on February 01, 2016, 09:47:43 pm
Hi,
This plugin is not available in the osclass market right now. Whatsup.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: shamim_biplob on February 15, 2016, 09:54:50 pm
Hi,
This plugin is not available in the osclass market right now. Whatsup.

I see this plugin is available, can you check again, if you can not find let me know.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: SteveJohnson on February 16, 2016, 12:08:23 am
Thanks,

Could you tell us how can we implement the captcha for comments too?
Cheers.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: vah on February 26, 2016, 02:59:27 pm
Hi,

I've got this plugin to work with osclasswizards theme fairly easy.
The weird thing is that it submits the form before it checks the captcha.
For example on login page, if password is incorrect, it returns the "password incorrect" message even if captcha is not checked.
Only when password is correct, it returns the "Please solve Captcha correctly" message.
Is this the same with you guys or is it just me? I would prefer that it checks the captcha status before anything else..

Cheers
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: Liath on February 26, 2016, 03:01:30 pm
i've running it too on my installation and theme osclasswizards, there are no problems
Title: Re: [Free Plugin] noCaptcha reCaptcha
Post by: phox on May 12, 2016, 03:17:43 pm
*** UPDATED 8-FEB-2016 ***

(some further improvements)

I took the liberty to fix few things and rewrite admin side. First, form still did not work 100% in my setup (some keys were missing) and form data was blank [incomplete html]. Also, fixed security related part, as Aficionado noticed. Finally, translation strings should now work properly. I have to admit that I did not have time to test and update front side yet.

Once all things get sorted this should definitively be posted in Market for user convenience and automatic upgrades in the future.

Regards

Hi dev101, hi all,
is there a way to use two form in a page?
My theme in Itempage shows Contact form and comment.
Contact form works well but Comment form does not shows the recaptcha.
I'm using Version:1.1.2 | Da Shamim |

I've read that whit explicit render I could do it but I can't make it work.
https://developers.google.com/recaptcha/docs/display#explicit_render (https://developers.google.com/recaptcha/docs/display#explicit_render)

Could you please help me?
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: dev101 on May 12, 2016, 04:09:26 pm
Render mode is not related to your problem. Osclass core & themes currently do not support comments protection. Wait for new Osclass version, after some changes gets accepted/standardized, I will update custom version here. For now, disable comments for guests to be safe.

Regards
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.1.2 released)
Post by: phox on May 12, 2016, 06:37:26 pm
Ok, thank you.
I'll disable it and wait for an update.
For clarity:
I've noticed that in mail sent by Contact form some Spam messages have been sent to users, is it possible?

Maybe it is due to "anr_captcha_form_field()" called two times in a page?
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: shamim_biplob on May 18, 2016, 05:42:18 pm
Today i have just uploaded a new version (1.2.1) of this plugin to market. I am also uploading here as osclass market review team take some time to review plugin. By this time let me know if you find bug as i have changed so many in this version. some of the new features are

- Allow multiple captcha in same page.
- Captcha in admin login (no file editing require).
- Captcha in comment form.
- New option to change captcha size.
- New hook 'anr_captcha_form_field' added. Now no need to add function directly to theme file.
- Translation issue fixed.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: srdsrd on May 31, 2016, 06:34:54 pm
I have a problem, it does not show what to do in the admin zone.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: Mark FAZ on July 29, 2019, 08:25:36 am
the plugin does not work Recaptcha not shown. I am using osclasswizards theme.  where to paste the code -> you will need to paste the following line of code before the submit form button.?
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: dev101 on August 07, 2019, 11:09:51 pm
You can try my newer plugin instead, it's in the forum here.
Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: muratbora on August 08, 2019, 12:54:48 am
dev101@  Your plugin is also has no % 100 solution for spam registration,
I have installed it on my several Osclass sites, still receiving spam registrations ( of course not so much as before installation ),

Title: Re: [Free Plugin] noCaptcha reCaptcha (new version 1.2.1 released)
Post by: dev101 on August 08, 2019, 01:28:18 am
Hi, what kind of spam? Of course, it cannot prevent human spammers. I get those passed, too. But, they are very rare. This is because recaptcha itself does not treat them as spammers (yet), so, they pass. The only way I would see it as a bug, is that they are marked as spammers by reCaptcha API return response, and the plugin passes them through. Otherwise, no.

In order to catch human spammers, that pass reCaptcha, you need to catch them later, either by using Akismet, or custom blacklisted keywords etc.

You have to understand that reCaptcha does not analyze posted content in any way, only looks for overall activity, IP address etc.