Home › Forums › Calendar Products › Community Events › Remove Spam Check
- This topic has 9 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
October 22, 2012 at 1:20 am #26943ArvidParticipant
Hi there,
is there a possibility to remove the spam check? Tried to comment the SPAM-check but then it fails to go through as it is not checked.
Thanks,
Arvid
October 22, 2012 at 5:29 pm #27006CaseyParticipantArvid,
You should be able to do this with the following:1) Make sure you do a template override first (https://theeventscalendar.com/faq/what-are-template-overrides-and-how-do-i-do-them/)
2) Then find your event-form.php file and then replace the SCRIPT block starting on line 18 with the following code: https://gist.github.com/3935859I was able to successfully test this in my environment, but let me know if you have any issues. Thanks!
October 23, 2012 at 1:12 am #27019ArvidParticipantThanks Casey,
change the block at line 18. Even when I comment line 118 ( $this->formSpamControl();) I get the error message. When I don’t comment the message, the SPAM check line still shows up on the page. When I don’t check it, I also get the error message.
Not sure what I am doing wrong here.
October 23, 2012 at 6:05 am #27029CaseyParticipantArvid,
Can you send me a link to your ‘Submit Event Page’ so I can take a look?October 24, 2012 at 7:17 am #27111ArvidParticipantOctober 24, 2012 at 7:34 am #27114CaseyParticipantArvid,
Sorry to hear you’re still having issues. It looks like this is an issue with your theme not including jQuery (or another plugin is conflicting) and causing JavaScript errors: http://d.pr/i/hcaBUnfortunately, since this solution works in the default theme, this would fall under our policy of not supporting custom themes (https://theeventscalendar.com/support/forums/topic/read-this-an-important-note-on-plugintheme-deactivation/). Sorry I’m not able to help you more than that.
October 28, 2012 at 3:11 am #27280ArvidParticipantThanks Casey, didn’t see that error before. Let me work on that first before I get back to you.
October 28, 2012 at 6:11 am #27281ArvidParticipantSomething strange was going on. We have now include the code in the header of WordPress. We noticed that the hidden.category was not needed. The code used (and which is working now) is:
//’Click’ the checkbox and then hide it and the label
// jQuery(‘input[name=”naes”]’).click();
jQuery(‘input[name=”naes”]’).attr(‘checked’, true);
jQuery(‘input[name=”naes”]’).toggle();
jQuery(‘.naes’).toggle();});
October 28, 2012 at 6:28 am #27282CaseyParticipantGlad to hear you got everything sorted! I’m closing out this thread, but feel free to start a new one if you have further issues. Thanks!
July 7, 2015 at 6:26 am #978065Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Remove Spam Check’ is closed to new replies.