Page 1 of 1

Graphic code for registration

PostPosted: Tue Jan 12, 2010 1:21 pm
by aleutia
HI,
Is there a way to add one of those graphic code boxes to the registration page to block automated spammers?

Re: Graphic code for registration

PostPosted: Tue Jan 12, 2010 1:37 pm
by shannah
Yes. I have done this for the install of webauction hosted on our servers
(e.g. http://auctions.weblite.ca/test/index.p ... gories+asc).

You can use the ReCAPTCHA Xataface module to do this (http://weblite.ca/svn/dataface/modules/reCAPTCHA/trunk/).

However you will likely need to update to the latest xataface for this to work (i.e. replace the dataface directory in the web auction install with the latest xataface, then add the ReCAPTCHA module).

This also requires you to sign up for a recaptcha account.
http://recaptcha.net/

-Steve

Re: Graphic code for registration

PostPosted: Thu Jan 21, 2010 2:45 pm
by aleutia
Steve,

I don't understand the instructions for reCAPTCHA.

Your instructions say: Installation:

1. Download/extract the module directory into your xataface/modules directory.
2. Add the following to the [_modules] section of your conf.ini file.
[_modules]
modules_reCAPTCHA=modules/reCAPTCHA/reCAPTCHA.php

Questions:
There is no xataface/modules directory. Am I supposed to create this directory, and if so, where within the WebAuction directory?

The conf.ini file has no [_modules] section?

Thanks,
Steve

Re: Graphic code for registration

PostPosted: Thu Jan 21, 2010 3:46 pm
by shannah
In webauction "xataface" is called "dataface". If there is no modules folder in the dataface directory, then create it.

Re: Graphic code for registration

PostPosted: Fri Jan 22, 2010 11:57 am
by aleutia
Steve,

I uploaded the script to the dataface/modules/reCAPTCHA directory, changed permissions to 755 and the CAPTCHA does not show up on the signup page.
Any ideas?

thanks,
Steve

Re: Graphic code for registration

PostPosted: Fri Jan 22, 2010 12:10 pm
by shannah
It is possible that the version of dataface/xataface that comes with web auction is older and needs to be upgraded for the ReCAPTCHA module to work.

Try downloading Xataface 1.2.x and placing it in your webauction folder (but rename it to dataface, replacing the dataface directory that is there now). Then place the ReCAPTCHA module inside the modules directory of that install.

Re: Graphic code for registration

PostPosted: Tue Jan 26, 2010 12:35 am
by aleutia
Steve,

I upoladed Xataface 1.2.2, changed directory name to dataface etc. as you suggest. Still does not work. If I leave the modules directory in dataface/Dataface (which is how both the Web Auction download and the 1.2.2 download unzips), then I get an error that says
"No such file or directory in ...path.../config.inc.php on line 242"

Your instructions did not include any edit to the config.inc.php file?

Suggestions?

Re: Graphic code for registration

PostPosted: Thu Jan 28, 2010 11:48 am
by shannah
The xataface directory is the same as the dataface directory (lowercase). The name of dataface was changed to xataface some time ago. So your directory structure should be:

webauction/
+-- dataface/ (renamed from your xataface-1.2.2 install)
+--- modules/

I'm quite sure it works because I've installed it on my local copy of web auction.

Re: Graphic code for registration

PostPosted: Thu Jan 28, 2010 12:14 pm
by aleutia
Steve,

I reloaded everything in the proper directories according to your instructions.

Now I get the following errors:

Warning: require_once(/home2/searchdo/public_html/uniquehouseforsale/Auction/dataface/modules/recaptcha-php/recaptchalib.php) [function.require-once]: failed to open stream: No such file or directory in /home2/searchdo/public_html/uniquehouseforsale/Auction/dataface/modules/reCAPTCHA.php on line 49

Fatal error: require_once() [function.require]: Failed opening required '/home2/searchdo/public_html/uniquehouseforsale/Auction/dataface/modules/recaptcha-php/recaptchalib.php' (include_path='.:/home2/searchdo/public_html/uniquehouseforsale/Auction/dataface:/home2/searchdo/public_html/uniquehouseforsale/Auction/dataface/lib:/usr/lib/php:/usr/local/lib/php') in /home2/searchdo/public_html/uniquehouseforsale/Auction/dataface/modules/reCAPTCHA.php on line 49

I have no doubt it works, but there is still something on my site that is incorrect. I suspect these error codes say exactly what it is, but I don't know how to fix it. I don't know where .../recaptchalib.php is or the requirement is coming from or the path to ...dataface/lib:/usr/lib/php:/usr/local/lib/php

thanks for your support,
Steve

Re: Graphic code for registration

PostPosted: Thu Jan 28, 2010 12:20 pm
by shannah
What does your conf.ini file look like (just the _modules section)?


-Steve

Re: Graphic code for registration

PostPosted: Thu Mar 04, 2010 10:14 am
by aleutia
Steve,

There was no modules section in my conf.ini file, so I added:


[_modules]
modules_reCAPTCHA=modules/reCAPTCHA.php

[reCAPTCHA]
public_key="XXXX"
private_key="XXXX"

..however, I do not know the correct format or where it should go.

Re: Graphic code for registration

PostPosted: Thu Mar 04, 2010 10:23 am
by shannah
Here is a sample from one of my conf.ini files:

Code: Select all
[_modules]
   modules_reCAPTCHA=modules/reCAPTCHA/reCAPTCHA.php
   
[reCAPTCHA]
   public_key="xxxxxx"
   private_key="xxxxx"



(Make sure you replace the public_key and private_key with your own keys.

Note the path difference in the _modules section. I think your path is wrong
i.e. it should be
modules/reCAPTCHA/reCAPTCHA.php
not
modules/reCAPTCHA.php

-Steve