xoops forums

frankblack

Just can't stay away
Posted on: 2010/3/10 8:18
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#1

New javascript-based captcha for XOOPS

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.

Mamba

Moderator
Posted on: 2010/3/10 8:34
Mamba
Mamba (Show more)
Moderator
Posts: 10406
Since: 2004/4/23
#2

Re: New javascript-based captcha for XOOPS

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...

frankblack

Just can't stay away
Posted on: 2010/3/10 8:43
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#3

Re: New javascript-based captcha for XOOPS

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.

Mamba

Moderator
Posted on: 2010/3/10 9:36
Mamba
Mamba (Show more)
Moderator
Posts: 10406
Since: 2004/4/23
#4

Re: New javascript-based captcha for XOOPS

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

Burning

Theme Designer
Posted on: 2010/3/10 9:58
Burning
Burning (Show more)
Theme Designer
Posts: 1163
Since: 2006/8/22
#5

Re: New javascript-based captcha for XOOPS

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

frankblack

Just can't stay away
Posted on: 2010/3/10 10:05
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#6

Re: New javascript-based captcha for XOOPS

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

Runeher

Module Developer
Posted on: 2010/7/10 7:51
Runeher
Runeher (Show more)
Module Developer
Posts: 823
Since: 2008/1/24
#7

Re: New javascript-based captcha for XOOPS

Very nice solution... :)

culex

Module Developer
Posted on: 2010/7/10 8:48
culex
culex (Show more)
Module Developer
Posts: 705
Since: 2004/9/23
#8

Re: New javascript-based captcha for XOOPS

Cool..

if you use

<script>
var xoops_sexycaptcha = jQuery.noConflict();
</script>

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.

mariane

Theme Designer
Posted on: 2010/7/10 18:36
mariane
mariane (Show more)
Theme Designer
Posts: 649
Since: 2008/1/11
#9

Re: New javascript-based captcha for XOOPS

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

culex

Module Developer
Posted on: 2010/7/13 15:01
culex
culex (Show more)
Module Developer
Posts: 705
Since: 2004/9/23
#10

Re: New javascript-based captcha for XOOPS

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.