Home › Forums › Calendar Products › Community Events › protect anonymous submissions with captcha
- This topic has 6 replies, 2 voices, and was last updated 11 years, 4 months ago by Casey.
-
AuthorPosts
-
November 26, 2012 at 12:03 pm #28476MikeParticipant
I love the ability of Community Events to allow unregistered posting of events. I want to protect the ‘add’ form with some form of captcha. I saw mention of this in a reply to a post that was closed. It looks like the code of the page would have to be modified – can anyone help with this? Ideally I’d want the simplest code rewrite and the simplest captcha.
My prototype pages are at http://www.b3c.co.uk/calendarNovember 26, 2012 at 1:55 pm #28486CaseyParticipantMike,
Thanks for reaching out! I’m passing this request onto our developers to see if something like this is currently possible. Stay tuned!November 26, 2012 at 2:23 pm #28491CaseyParticipantMike,
We are currently considering adding this ability into a future release, but we definitely can’t make any promises on when something like this will be released. With that being said, this functionality isn’t available “out of the box” in the current version of Community. I’m not sure how proficient you are with WordPress/PHP development, but this would currently require some custom coding on your part to implement.Here’s what our developer had to say:
“The user should be able to hook into the ‘tribe_ce_event_submission_form_before_post_submit_button’ hook in order to place the captcha field on the form. From there, he/she should hook into ‘tribe_ce_before_event_submission_page’ in order to process the submission and make sure the captcha was correct, as that action hook is executed before any events are saved. In order for it to most elegantly deal with it to stop the event from saving, he might want to unset the $_POST[‘naes’] variable (‘not an evil spammer’ checkbox on the form) so that it then stops from saving the event (as there isn’t really another great way to stop the process that I see offhand).”
Hopefully this will help to shed a little light on how to implement this custom functionality. Please let me know if you have any further questions. Thanks!
November 27, 2012 at 12:48 am #28524MikeParticipantThanks Casey – I’m pretty basic with php so I wondered if there was a capcha that allowed us to protect access to a link so that any user who wanted to post woulds only gain access to the posting page via a link rather than a menu item. So >>CLICK HERE to post your event<< would bring up a captcha and the success even would yield the posting form.
ThanksNovember 27, 2012 at 6:27 am #28536CaseyParticipantMike,
Unfortunately this functionality is not currently available without some custom development, but we hope to have it in a future release soon. Thanks!November 27, 2012 at 6:48 am #28538MikeParticipantTHanks – I’ll watch with interest and if I come up with a workaround I’ll let you know.
MikeNovember 27, 2012 at 6:56 am #28539CaseyParticipantHappy to help. I’m going to go ahead and close out this thread, but feel free to start a new one if you have further issues. Thanks!
-
AuthorPosts
- The topic ‘protect anonymous submissions with captcha’ is closed to new replies.