1
frankblack
New javascript-based captcha for XOOPS
  • 2010/3/10 8:18

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I hacked class/captcha a bit to introduce a new graphical captcha to XOOPS. Original code you will find HERE.

Requirements:
1. jquery.js must be included in theme
2. PHP 5 >= 5.2.0, PECL json >= 1.2.0
3. Do NOT use any other javascript frameworks like mootools on the same page as the captcha

Download: HERE

Good luck and have fun.

2
Mamba
Re: New javascript-based captcha for XOOPS
  • 2010/3/10 8:34

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Fantastic!!!

How difficult would be to create a Captcha module that would offer a standard API, so users could have several different Captcha implementations installed with that module, and be able to select which Captcha they want to use.

Other modules could use this one as a "helper" module...

3
frankblack
Re: New javascript-based captcha for XOOPS
  • 2010/3/10 8:43

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Is there really a need for a captcha module? Instead some configurations like captchas and debugging should be moved to the system configuration.

Perhaps the core has to be modified that way, that captchas and debuggers can be added as a plugin. Once the plugin is moved to a certain folder the plugin will be displayed in the system configuration.

Just an idea.

4
Mamba
Re: New javascript-based captcha for XOOPS
  • 2010/3/10 9:36

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


that would be, of course, a very good solution!!!

5
Burning
Re: New javascript-based captcha for XOOPS
  • 2010/3/10 9:58

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

I love the sexy captcha ! However something more discreet could be nice too (I'm thinking about a simple mathematical operation).

... it is not I who will make the development, so it is just an idea

6
frankblack
Re: New javascript-based captcha for XOOPS
  • 2010/3/10 10:05

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Mathematical? Hmm, it is already in the package. text, image or sexycaptcha.

7
Runeher
Re: New javascript-based captcha for XOOPS
  • 2010/7/10 7:51

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


Very nice solution... :)

8
culex
Re: New javascript-based captcha for XOOPS
  • 2010/7/10 8:48

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Cool..

if you use



And then rename all $ to xoops_sexycaptcha in js.

You still cannot use with other frameworks ??
Programming is like sex:
One mistake and you have to support it for the rest of your life.

9
mariane
Re: New javascript-based captcha for XOOPS
  • 2010/7/10 18:36

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


in this case can we add it for many modules e.g mylinks?
thanks
the road of success is always under construction

10
culex
Re: New javascript-based captcha for XOOPS
  • 2010/7/13 15:01

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Hey Frank this is a great hack,

I have implimented a renamed function to this great hack to make it work with other javascript frameworks also.

Hope you can use
Programming is like sex:
One mistake and you have to support it for the rest of your life.

Login

Who's Online

315 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 315


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits