Forums / General / Native support for reCaptcha

Native support for reCaptcha

Author Message

Alain Sahli

Sunday 28 November 2010 5:57:59 am

Hello

In the anouncement of the new eZ Publish 4.4 release I read : Your User Generated Content gets a helping hand with the addition of native support for reCaptcha, the Google-based free captcha service on the web, which helps prevent your website from being infested by bot spam.

I installed this new version but I can't find how to proceed to add a reCaptcha to a feedback form. Could somebody explain me how it works ?

Thanks.

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Daisy Radix

Sunday 28 November 2010 7:21:32 am

Hello,

You can set reCaptcha parameters in ezcomments.ini

I think that in your [FormSettings] the line AvailableFields[]=recaptcha is commented.

More documentation : http://doc.ez.no/Extensions/eZ-Comments/Setup-and-user-guide-1.1/ezcomments.ini-settings

eZ Publish certified developper :http://auth.ez.no/certification/verify/378142

Alain Sahli

Sunday 28 November 2010 11:50:22 pm

Hello Daisy,

Thanks for your answer, but this is only for the eZComments extension. I thought that a reCaptcha datatype was created which can be used in any type of class.

For example, on my website I have an offer request form and I wanted to add a reCaptcha. So ideally I edit my class and add a reCaptcha attribute :-)

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

Nicolas Pastorino

Monday 29 November 2010 1:23:23 am

Hello Alain,

You should a look at Bruce's excellent recaptcha extension : http://projects.ez.no/recaptcha . It is used on share.ez.no

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Alain Sahli

Monday 29 November 2010 2:10:00 am

Hello Nicolas,

I used this extension and it works fine ! Thanks.

http://www.wess.ch
eZ Publish Certified developer : http://auth.ez.no/certification/verify/272583

eZ debug

Timing: Jan 17 2025 23:53:29
Script start
Timing: Jan 17 2025 23:53:29
Module start 'content'
Timing: Jan 17 2025 23:53:30
Module end 'content'
Timing: Jan 17 2025 23:53:30
Script end

Main resources:

Total runtime1.0573 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 587.7031180.8516
Module start 'content' 0.00800.8760 768.5547608.1094
Module end 'content' 0.88400.1733 1,376.6641337.3828
Script end 1.0573  1,714.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3986210.0002
Check MTime0.00150.1449210.0001
Mysql Total
Database connection0.00080.072410.0008
Mysqli_queries0.923087.29092030.0045
Looping result0.00260.24412010.0000
Template Total1.027497.220.5137
Template load0.00210.196620.0010
Template processing1.025396.973120.5127
Template load and register function0.00010.010810.0001
states
state_id_array0.00070.070010.0007
state_identifier_array0.00120.116120.0006
Override
Cache load0.00190.1773300.0001
Sytem overhead
Fetch class attribute can translate value0.00120.111740.0003
Fetch class attribute name0.00250.240180.0003
XML
Image XML parsing0.01541.453840.0038
class_abstraction
Instantiating content class attribute0.00000.0025100.0000
General
dbfile0.03423.2390390.0009
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs