Author
|
Message
|
mak makensy
|
Saturday 05 February 2011 9:22:43 am
Hello,
Unable to run extension Recaptcha! I perform the procedure but to no avail. Extract the archive into the /extension directory --> OK
Edit site.ini.append in /settings/override. Add the following to the file:[ExtensionSettings] ActiveExtensions[]=recaptcha ---> OK Edit extension/settings/recaptcha.ini.append.php and add your API keys ---> OK Clear Cache ---> OK Add a reCAPTCHA attribute to your content class ---> Ok Reload Apache --> OK
Have there someone who managed to make it work?
Thank you Sincerely,
|
Robin Muilwijk
|
Saturday 05 February 2011 2:23:53 pm
Hi Mak, I've been playing with this for over an hour and was finally able to get it to work. I'm not sure if I've followed correct procedure, I'm no experienced coder, but what I did other than the described steps was: Edit extension\ezwebin\design\ezwebin\override\templates\full\ feedback_form.tpl Above the code for the send button, and an include for the recaptcha.tpl. I took that from the design folder from the recaptcha extension itself. Once that was included, the captcha feature showed up on my contact form. I'll ask Bruce, the maker of this extension to verify if I've done this correct. Regards Robin p.s. editing that template file is probably not best practice, my method was to see if I could get it to work, noting more
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Bruce Morrison
|
Saturday 05 February 2011 6:47:39 pm
Hi Mak & Robin While the extension and the instructions aim to make the process as easy as possible, some things in eZ Publish require an understanding of what is happening to get things going. The reCAPTURE extension provides a datatype that can be added as an attribute to a content class. Getting it to display usually means having to add the attribute to the templates (This is usually the case when adding attributes to a content class) To add it to the ezwebmin feedback form template you need to add the following lines where you want the reCapture to appear:
<h4>{$node.data_map.recapture.contentclass_attribute.name}</h4>
<div class="attribute-recapture">
{attribute_view_gui attribute=$node.data_map.recapture}
</div> See here for a full template. This assumes that the recapture attribute is an information collector and the attribute identifier is "recapture" Ideally you would add copy the template from the ezwebmin extension into a local design and make the change there.
Cheers Bruce P.S. I'm pretty sure there's no need to restart Apache:)
My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
|
Robin Muilwijk
|
Sunday 06 February 2011 12:17:51 am
Hi Bruce, Thanks for the help! I did put the attribute code in the feedback form .tpl but it did not work. I used .recaptcha, and not .recapture as attributename since that is also the identifier in the class. I'll try that later on, and remove the call/include to the recaptcha.tpl. Would it be an idea to add this to the steps on your project page, to add this code, as example? I figured out how to do it, but it shows beginners how this is done. Very useful. -- Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Robin Muilwijk
|
Sunday 06 February 2011 1:02:10 am
Bruce, I tried your code, made sure the identifier for the reCAPTCHA attribute is also called recapture, was recaptcha before. The heading is showing in the contact form, as a label, but no captcha form? We must be forgetting something. I'm trying this on eZ + Webin, 4.4. Thanks Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Robin Muilwijk
|
Sunday 06 February 2011 1:21:05 am
"
This assumes that the recapture attribute is an information collector and the attribute identifier is "recapture"
"
That did the trick, setting the new attribute as information collector, and adding your code made the captcha feature show up on the contact form. Thanks Bruce. @ Kam, Just add the code Bruce is suggesting, make sure your attribute identifier is named recapture, and it is an information collector. Clear cache, and it should work.
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
mak makensy
|
Friday 11 February 2011 10:56:31 am
It does not work for me!
Here's how I've done:
1 ° I copied the folder "recaptcha" in the folder "extention" .
2 ° I added the "ActiveExtensions [] = recaptcha"in the file site.ini.append.php in the "settings /override ".
3 ° I add "$ {<h4> node.data_map.recapture.contentclass_attribute.name} </ h4>
<div class="attribute-recapture">
attribute_view_gui {attribute} = $ node.data_map.recapture
</ div> " in file" design / base / override / templates "/ full / feedback_form.tpl
4 ° I empty all the caches.
5 ° I add an attribute in the class "Content / Feedback form" recaptcha and I named it "recapture".
That, I think I followed exactly the procedure but I have nothing that appears.
Could you tell me the exact procedure to do to operate.
Thank you again for your support. Sincerely,
|
Robin Muilwijk
|
Friday 11 February 2011 12:52:57 pm
Hi Mak, Two thing you need to check. The template I edited is: Edit extension\ezwebin\design\ezwebin\override\templates\full\ feedback_form.tpl Not the one in the /design/base folder, as this is overridden by the same template in the ezwebin design. Second, check the attribute you added, did you check the box which says "information collector"? If that is not checked, nothing appears. -- Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Bruce Morrison
Moderated by: Nicolas Pastorino
|
Friday 11 February 2011 5:36:25 pm
Hi Mak It may be the editor, but your template code appears to be incorrect. The eZ template code needs to be within {}. Make sure it is:
<h4>{$node.data_map.recapture.contentclass_attribute.name}</h4>
<div class="attribute-recapture"> {attribute_view_gui attribute=$node.data_map.recapture} </div>
Cheers Bruce
My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
|
mak makensy
|
Sunday 13 February 2011 9:39:17 am
Thank you for everything Robin and Bruce.
It works! Thank you again. Sincerely,
|
Luis Delgado
|
Friday 11 March 2011 5:35:00 pm
OK I needed reCAPTCHA in the registry form so I did everything as noted above for User Class and Comment Class. reCAPTCHA IS showing... but if you place false data on it or none at all and hit the submit button, reCAPTCHA IS NOT WORKING, information will still be submited... anybody knows how to solve this??
Cheers
GOOD 4 ALL
|
Sebastiaan van der Vliet
|
Saturday 12 March 2011 3:12:18 am
Hi Luis, is your reCAPTCHA attribute a required field (just double-checking)? Kind regards, Sebastiaan
Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.
|
Luis Delgado
|
Wednesday 16 March 2011 8:11:22 pm
"
Hi Luis, is your reCAPTCHA attribute a required field (just double-checking)? Kind regards, Sebastiaan
"
Hi Sebastian, Yes it is set as requiered and Information Collector, thats the strange thing... :( at least I would like it to be available for user registry. For comments I will install ezComments add in whcich it now includes reCaptcha.
Cheers
GOOD 4 ALL
|
Bruce Morrison
|
Wednesday 16 March 2011 9:30:18 pm
Hi Luis This thread is about using the recapture extension with the feedback from. The feedback form uses information collectors to gather data while user registration actually creates a new content object. You need to add something like
{attribute_edit_gui attribute=$node.data_map.recapture} to your user registration template instead of attribute_view_gui. HTH
Cheers Bruce
My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
|
Luis Delgado
|
Sunday 10 April 2011 4:22:24 pm
"
Hi Luis This thread is about using the recapture extension with the feedback from. The feedback form uses information collectors to gather data while user registration actually creates a new content object. You need to add something like
{attribute_edit_gui attribute=$node.data_map.recapture} to your user registration template instead of attribute_view_gui. HTH
Cheers Bruce
"
Well the good news as you pointed correctly... I just removed the "Information Colector" check and the reCAPTCHA worked right away! This is so cool... I had like 13,000 sapm registration just this week... Finished Stuff :)
Cheers
GOOD 4 ALL
|
Nicolas Pastorino
|
Sunday 10 April 2011 11:55:05 pm
"
This is so cool... I had like 13,000 sapm registration just this week... Finished Stuff :)
"
Yuhu !
--
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
|