Fancy jQuery Captcha

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4882
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: Fancy jQuery Captcha

Post by VSE » Thu Oct 01, 2009 5:31 am

I installed this in my 3.0.6 RC2 board... It didn't show up on the registration page... My site uses a style that relies on template inheritance...

But, I figured it out... The JS files need to be copied to the in-use style's template folder since they are not inherited (only html files get inherited).

I did notice this type-o above the captcha: "please contact the %sBoard Administrator%s."
Dictated but not read.
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.

User avatar
mtotheikle
Registered User
Posts: 188
Joined: Thu Sep 25, 2008 5:32 am
Location: Spokane, WA
Contact:

Re: Fancy jQuery Captcha

Post by mtotheikle » Thu Oct 01, 2009 6:23 am

VSE wrote:I did notice this type-o above the captcha: "please contact the %sBoard Administrator%s."
This will be fixed tomorrow hopefully.
New to phpBB3? Want to learn about programing? Then phpBB Academy is the place for you!

No support via PM, I will not respond!

Image

User avatar
damsprivate
Registered User
Posts: 461
Joined: Sun Aug 17, 2008 10:39 pm
Location: indonesia
Contact:

Re: Fancy jQuery Captcha

Post by damsprivate » Fri Oct 02, 2009 5:43 am

nice one :) vote +1 i hope the development for this one keeps on . :geek:
binus university 2009 .
"did u know that 17 august ( when i join this forum ) is at Indonesia independence day ? "

gjustinj
Registered User
Posts: 41
Joined: Mon Sep 28, 2009 2:09 pm

Re: Fancy jQuery Captcha

Post by gjustinj » Sat Oct 03, 2009 12:23 am

Captcha Module Settings not appearing under ACP/General/Board Configurations - Help?

User avatar
mtotheikle
Registered User
Posts: 188
Joined: Thu Sep 25, 2008 5:32 am
Location: Spokane, WA
Contact:

Re: Fancy jQuery Captcha

Post by mtotheikle » Sat Oct 03, 2009 1:09 am

Are you running phpBB 3.0.6? Also currently, this MOD has no settings page.
New to phpBB3? Want to learn about programing? Then phpBB Academy is the place for you!

No support via PM, I will not respond!

Image

gjustinj
Registered User
Posts: 41
Joined: Mon Sep 28, 2009 2:09 pm

Re: Fancy jQuery Captcha

Post by gjustinj » Sat Oct 03, 2009 1:25 am

mtotheikle wrote:Are you running phpBB 3.0.6? Also currently, this MOD has no settings page.
Nope: Board version: 3.0.5

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Fancy jQuery Captcha

Post by RMcGirr83 » Sat Oct 03, 2009 9:22 am

gjustinj wrote:
mtotheikle wrote:Are you running phpBB 3.0.6? Also currently, this MOD has no settings page.
Nope: Board version: 3.0.5
http://www.phpbb.com/community/viewtopi ... #p10854655

mtotheikle, would it be better (ability to use other libraries eg, prototype) if the $ was changed to jQuery eg?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

DaMysterious
Registered User
Posts: 58
Joined: Mon Sep 09, 2002 7:51 am
Location: The Netherlands
Contact:

Re: Fancy jQuery Captcha

Post by DaMysterious » Sat Oct 03, 2009 11:12 am

oddfish wrote: Oh, %sBoard Administrator%s (L_CONFIRM_EXPLAIN) does not work for me -- something astray there :)
Open file \root\includes\captcha\plugins\phpbb_fancy_jquery_plugin.php
search

Code: Select all

	function get_template()
	{
		global $config, $user, $template, $phpbb_root_path, $phpEx;
after add

Code: Select all


		$explain = $user->lang(($this->type != CONFIRM_POST) ? 'CONFIRM_EXPLAIN' : 'POST_CONFIRM_EXPLAIN', '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');


search

Code: Select all

			'U_REQUEST_URL'		=> append_sid($phpbb_root_path . 'captcha_request.' . $phpEx),

after add

Code: Select all

			'L_CONFIRM_EXPLAIN'	=> $explain,
Save and close.

Possible this will solve that issue.
DaMysterious.

DaMysterious
Registered User
Posts: 58
Joined: Mon Sep 09, 2002 7:51 am
Location: The Netherlands
Contact:

Re: Fancy jQuery Captcha

Post by DaMysterious » Sat Oct 03, 2009 1:35 pm

eman80 wrote: what about other languages e.g. how can I translate items names to my language (Arabic).
I played around bit, possible the code below will work for you until a new version is released.

Changes to make the items multi language aware:
In file \root\includes\captcha\plugins\phpbb_fancy_jquery_plugin.php
search

Code: Select all

		$this->type			= (int) $type;

		$this->images = array("'pencil'", "'scissors'", "'clock'", "'heart'", "'note'");

		$user->add_lang('mods/captcha_fancy_jquery');
replace with

Code: Select all

		$this->type			= (int) $type;

		$user->add_lang('mods/captcha_fancy_jquery');

		// Images that will be used in the captcha. We use double and single quotes here because it will get passed into the Javascript.
		$this->images = array("'{$user->lang['CAPTCHA_ITEM_PENCIL']}'", "'{$user->lang['CAPTCHA_ITEM_SCISSORS']}'", "'{$user->lang['CAPTCHA_ITEM_CLOCK']}'", "'{$user->lang['CAPTCHA_ITEM_HEART']}'", "'{$user->lang['CAPTCHA_ITEM_NOTE']}'");
search

Code: Select all

		global $template, $phpbb_root_path, $user;

		// Images that will be used in the captcha. We use double and single quotes here because it will get passed into the Javascript.
		$this->images = array("'pencil'", "'scissors'", "'clock'", "'heart'", "'note'");
replace with

Code: Select all

		global $template, $phpbb_root_path, $user;

		// Images that will be used in the captcha. We use double and single quotes here because it will get passed into the Javascript.
		$this->images = array("'{$user->lang['CAPTCHA_ITEM_PENCIL']}'", "'{$user->lang['CAPTCHA_ITEM_SCISSORS']}'", "'{$user->lang['CAPTCHA_ITEM_CLOCK']}'", "'{$user->lang['CAPTCHA_ITEM_HEART']}'", "'{$user->lang['CAPTCHA_ITEM_NOTE']}'");
Open language\en\mods\captcha_fancy_jquery.php
search

Code: Select all

	'VERIFY_HUMAN'				=> 'Verify that you are a human,<br />drag <span>scissors</span> into the circle.',
after add

Code: Select all

	'CAPTCHA_ITEM_PENCIL'		=> 'pencil',
	'CAPTCHA_ITEM_SCISSORS'		=> 'scissors',
	'CAPTCHA_ITEM_CLOCK'		=> 'clock',
	'CAPTCHA_ITEM_HEART'		=> 'heart',
	'CAPTCHA_ITEM_NOTE'		    => 'note',
Save and close.
DaMysterious.

User avatar
eman80
Registered User
Posts: 327
Joined: Tue Aug 19, 2008 1:49 pm

Re: Fancy jQuery Captcha

Post by eman80 » Sat Oct 03, 2009 3:44 pm

DaMysterious wrote:
eman80 wrote: what about other languages e.g. how can I translate items names to my language (Arabic).
I played around bit, possible the code below will work for you until a new version is released.

Changes to make the items multi language aware:
In file \root\includes\captcha\plugins\phpbb_fancy_jquery_plugin.php
search

Code: Select all

		$this->type			= (int) $type;

		$this->images = array("'pencil'", "'scissors'", "'clock'", "'heart'", "'note'");

		$user->add_lang('mods/captcha_fancy_jquery');
replace with

Code: Select all

		$this->type			= (int) $type;

		$user->add_lang('mods/captcha_fancy_jquery');

		// Images that will be used in the captcha. We use double and single quotes here because it will get passed into the Javascript.
		$this->images = array("'{$user->lang['CAPTCHA_ITEM_PENCIL']}'", "'{$user->lang['CAPTCHA_ITEM_SCISSORS']}'", "'{$user->lang['CAPTCHA_ITEM_CLOCK']}'", "'{$user->lang['CAPTCHA_ITEM_HEART']}'", "'{$user->lang['CAPTCHA_ITEM_NOTE']}'");
search

Code: Select all

		global $template, $phpbb_root_path, $user;

		// Images that will be used in the captcha. We use double and single quotes here because it will get passed into the Javascript.
		$this->images = array("'pencil'", "'scissors'", "'clock'", "'heart'", "'note'");
replace with

Code: Select all

		global $template, $phpbb_root_path, $user;

		// Images that will be used in the captcha. We use double and single quotes here because it will get passed into the Javascript.
		$this->images = array("'{$user->lang['CAPTCHA_ITEM_PENCIL']}'", "'{$user->lang['CAPTCHA_ITEM_SCISSORS']}'", "'{$user->lang['CAPTCHA_ITEM_CLOCK']}'", "'{$user->lang['CAPTCHA_ITEM_HEART']}'", "'{$user->lang['CAPTCHA_ITEM_NOTE']}'");
Open language\en\mods\captcha_fancy_jquery.php
search

Code: Select all

	'VERIFY_HUMAN'				=> 'Verify that you are a human,<br />drag <span>scissors</span> into the circle.',
after add

Code: Select all

	'CAPTCHA_ITEM_PENCIL'		=> 'pencil',
	'CAPTCHA_ITEM_SCISSORS'		=> 'scissors',
	'CAPTCHA_ITEM_CLOCK'		=> 'clock',
	'CAPTCHA_ITEM_HEART'		=> 'heart',
	'CAPTCHA_ITEM_NOTE'		    => 'note',
Save and close.

Hello
Thank u for this but
I have tested this code and the items names became in Arabic, but the items pictures no longer appear except (item-none.png)
welcome to my forum:
http://www.elibrary4arab.com

User avatar
mtotheikle
Registered User
Posts: 188
Joined: Thu Sep 25, 2008 5:32 am
Location: Spokane, WA
Contact:

Re: Fancy jQuery Captcha

Post by mtotheikle » Sat Oct 03, 2009 4:55 pm

The images are not supported in multiple languages because right now you would have to change the names of all the images as well. I have some free time today, so a new release will be out and I can see what I can do for multiple languages with the images.
New to phpBB3? Want to learn about programing? Then phpBB Academy is the place for you!

No support via PM, I will not respond!

Image

User avatar
eman80
Registered User
Posts: 327
Joined: Tue Aug 19, 2008 1:49 pm

Re: Fancy jQuery Captcha

Post by eman80 » Sat Oct 03, 2009 5:01 pm

mtotheikle wrote:The images are not supported in multiple languages because right now you would have to change the names of all the images as well. I have some free time today, so a new release will be out and I can see what I can do for multiple languages with the images.
Great .. Good luck :)
welcome to my forum:
http://www.elibrary4arab.com

User avatar
Dugi
Registered User
Posts: 1386
Joined: Sun May 25, 2008 5:36 pm
Location: Mainz, Germany
Name: Dukagjin Surdulli
Contact:

Re: Fancy jQuery Captcha

Post by Dugi » Sat Oct 03, 2009 7:32 pm

awesome man :D
PM me for custom extension pricing / My validated MODs / My MODs in development

User avatar
mtotheikle
Registered User
Posts: 188
Joined: Thu Sep 25, 2008 5:32 am
Location: Spokane, WA
Contact:

Re: Fancy jQuery Captcha

Post by mtotheikle » Sat Oct 03, 2009 8:11 pm

New version is completed and pending review by the MOD Team.

Change Log:
  • Add noscript information
  • Fix language entry
  • Fix display of CAPTCHA on posting page
New to phpBB3? Want to learn about programing? Then phpBB Academy is the place for you!

No support via PM, I will not respond!

Image

User avatar
John P
Registered User
Posts: 1237
Joined: Mon Jan 21, 2008 3:55 pm
Location: Netherlands
Name: John
Contact:

Re: Fancy jQuery Captcha

Post by John P » Sat Oct 03, 2009 8:27 pm

Looks great.

Thanks for developing this.
Image
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign

Locked

Return to “[3.0.x] MOD Database Releases”