Graphic code for registration

A place to discuss and receive support for the Web Auction application.

Graphic code for registration

Postby aleutia » Tue Jan 12, 2010 1:21 pm

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

Re: Graphic code for registration

Postby shannah » Tue Jan 12, 2010 1:37 pm

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Graphic code for registration

Postby aleutia » Thu Jan 21, 2010 2:45 pm

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
aleutia
 
Posts: 11
Joined: Tue Jan 12, 2010 1:17 pm

Re: Graphic code for registration

Postby shannah » Thu Jan 21, 2010 3:46 pm

In webauction "xataface" is called "dataface". If there is no modules folder in the dataface directory, then create it.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Graphic code for registration

Postby aleutia » Fri Jan 22, 2010 11:57 am

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
aleutia
 
Posts: 11
Joined: Tue Jan 12, 2010 1:17 pm

Re: Graphic code for registration

Postby shannah » Fri Jan 22, 2010 12:10 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Graphic code for registration

Postby aleutia » Tue Jan 26, 2010 12:35 am

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?
aleutia
 
Posts: 11
Joined: Tue Jan 12, 2010 1:17 pm

Re: Graphic code for registration

Postby shannah » Thu Jan 28, 2010 11:48 am

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Graphic code for registration

Postby aleutia » Thu Jan 28, 2010 12:14 pm

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
aleutia
 
Posts: 11
Joined: Tue Jan 12, 2010 1:17 pm

Re: Graphic code for registration

Postby shannah » Thu Jan 28, 2010 12:20 pm

What does your conf.ini file look like (just the _modules section)?


-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Graphic code for registration

Postby aleutia » Thu Mar 04, 2010 10:14 am

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.
aleutia
 
Posts: 11
Joined: Tue Jan 12, 2010 1:17 pm

Re: Graphic code for registration

Postby shannah » Thu Mar 04, 2010 10:23 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved