Osclass forums

Support forums => Plugins => Topic started by: Aficionado on August 25, 2018, 08:43:39 pm

Title: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 25, 2018, 08:43:39 pm
Hi.

Is there somekind of alternative "captcha" plugin or way, like a simple math captcha or else, not dependant from 3rd party ?

It seems that people are not registering because google's captcha doesn't seem to work right lately.

Thanks
Title: Re: Simple Captcha independant from 3rd parties
Post by: Willem on August 26, 2018, 06:24:06 pm
On my forum they developed a question and answer Captcha.
Works very well.

Maybe an idea for a programmer here
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 26, 2018, 10:37:29 pm
On my forum they developed a question and answer Captcha.
Works very well.

Maybe an idea for a programmer here

Well i don't think anybody seriously is developing for Osclass anymore.
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 27, 2018, 12:10:48 am
Hello,

I may develop a plugin for this if there is enough interest. It shouldn't be complicated.
Is it only for register page?

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 27, 2018, 12:17:41 am
Hello,

I may develop a plugin for this if there is enough interest. It shouldn't be complicated.
Is it only for register page?

Regards.

If you ask me, Register and Contact and Comments probably.
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 28, 2018, 04:17:50 pm
Here's a demo for register page: https://demo.zagorski-oglasnik.com/osclass/index.php?page=register&action=register
Tell me what you think, if it's okay I will try to implement it at contact and comments.

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 28, 2018, 06:29:37 pm
Here's a demo for register page: https://demo.zagorski-oglasnik.com/osclass/index.php?page=register&action=register
Tell me what you think, if it's okay I will try to implement it at contact and comments.

Regards.

Well it seems ok. Simple and friendy to the user.
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 28, 2018, 07:38:55 pm
The finished plugin is in the attachment. I've made it simple, without various configurations and admin pages. Simply install it and you are done. However, if you don't see the captcha at any of the pages, insert it manually by using these functions:

Code: [Select]
<?php
simplecaptcha_form_register
(); // register page
simplecaptcha_form_contact(); // contact page
simplecaptcha_form_comments(); // add comment page
?>


The plugin is also translatable, see the template.pot file in languages folder.

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 28, 2018, 10:15:19 pm
Patrick i will give it a try asap and update here. Thank you
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 28, 2018, 10:27:48 pm
Patrick i will give it a try asap and update here. Thank you

Okay, I suggest you download a new version from the updated post above. Just a small bug fix.

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 29, 2018, 11:43:16 am

Okay, I suggest you download a new version from the updated post above. Just a small bug fix.

Regards.

While the plugin shows allright, you can bypass it without filling the form. So it doesn't seem to work at all.

Osclass Wizards theme. Stock Osclass.
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 29, 2018, 03:30:48 pm

Okay, I suggest you download a new version from the updated post above. Just a small bug fix.

Regards.

While the plugin shows allright, you can bypass it without filling the form. So it doesn't seem to work at all.

Osclass Wizards theme. Stock Osclass.

Okay. I will post the fixed version soon.

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 29, 2018, 05:48:46 pm

Okay, I suggest you download a new version from the updated post above. Just a small bug fix.

Regards.

While the plugin shows allright, you can bypass it without filling the form. So it doesn't seem to work at all.

Osclass Wizards theme. Stock Osclass.

Okay. I will post the fixed version soon.

Regards.

Update posted in above post.

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 29, 2018, 06:26:35 pm
The same. I leave the captcha field empty and it passes. Doesn't work.

Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 29, 2018, 06:38:42 pm
Are you sure? I tested it and it didn't work when I left the field empty. Try here: https://demo.zagorski-oglasnik.com/osclass/

Check if you have "isset($_POST['simple_captcha'])" instead of "Params::getParam('simple_captcha') != ''" in index.php.
The updated version uses "isset($_POST['simple_captcha'])".

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 29, 2018, 06:54:13 pm
Then what you uploaded seems like the old version.

Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 29, 2018, 07:23:40 pm
Try this.

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 29, 2018, 07:50:45 pm
Try this.

Regards.

This seems to work fine in my (online) test server. I will update more this weekend.
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 29, 2018, 08:13:34 pm
Glad to hear that. ;)

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 29, 2018, 08:29:14 pm
Glad to hear that. ;)

Regards.

I have a specific Osclass that gets ... i dunno ... 100+ daily spam from contact page. This will be my test.

Thanks !
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on August 31, 2018, 04:58:25 pm
@patrick the plugin seems to work just fine, i saw no problems at all with it. Works as expected.

So now i have to ask if this is a free plugin and if you consider to publish it via Osclass market (so it will be somehow checked for possible security or other problems).

In any case thank you !!!
Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on August 31, 2018, 05:22:28 pm
Glad to hear that, you are welcome! ;)

This plugin is free, I will probably publish it to Market as it is, but I am thinking of making a "PRO" paid version that will include some configuration options and more...

Regards.
Title: Re: Simple Captcha independant from 3rd parties
Post by: Aficionado on September 04, 2018, 01:14:21 pm
Patrick hi, one question.

I see that in languages folder there is no "en_US" (for example) folder but everything (po / mo) are located in there.

Is that correct ?

Title: Re: Simple Captcha independant from 3rd parties
Post by: WEBmods on September 04, 2018, 02:12:23 pm
That's not good actually, the .po and .mo must be in en_US folder.

Regards.