Hey there,
I want to use antispam bee with this theme and for that, I am wondering where inside that theme is the javascript which checks whether the textarea "comment" in comment form is filled or not?
Antispam Bee adds another textare to the comment area and hide the "comment" one for checking whether a spambot is commenting. Since a human cannot fill the "comment"-textarea, there is always an error "no comment" while sending.
Any ideas? Greping all day long
Comments
On start I have to apologize for quality of JS you will find there, as it is very bad and old.
You fill find code for it in
wp-content\themes\airlock\common\js\scripts.js
line ~304 starting with this: With regards.thanks for your quick reply! I found that js already but wasnt able to handle it yet. Even when just comment it out, the error handling in the commentform stay the same, but maybe I made some mistakes.
If there is time, maybe you have an idea how to deal with several text-areas? I just want the error handling deal with one specific textarea.
I will check for myself too. since antispam bee is quiet a cool plugin in, it might be useful for other people as well.
Thanks in advanced! And by the way, that theme, even with some old parts of code, rocks
checked it again. When I comment this validation out, some magic still handling some errors and I have no idea why
Hey Air, sorry for bothering. Of course it was this script part, I just was into to much c++ last days, forget to comment it out with /** **/ For all who want to use antispam bee and do not give up the ajax-form, just add
where
was before, while 96023 is the number antispam-bee adds to the form (some hash from your first url-letters, it is static).
just another topic came up. For one or the other reason, validating the email does not work properly. If something is entered in email-field, just wordpress default validation is thrown, not the java-regex.
Just check here: http://themeforest.net/item/airlock-portfolio-wordpress-theme/full_screen_preview/904440 with typing something, not an email, inside the field.
Guess it is because the call "hasClass" (ln 340 n advanced/js/script.js) isn't true, since the input has no class "email". Right?
Any ideas for clean solution
Sorry, it is me again For those who want to have the feature of ajaxified precheck of email input, just do the following:
in
Maybe it should be considered to add it to the next update or rebuild. However, thanks for your outstanding work!
I have read what you wrote and I am confused what you need now:-)
Can you point it in short point(s)?
With regards.
Last two posts describe an error with email-check in comment and feedback form and the corresponding fix (up to now, email-validation is not working with java, just native with wordpress ... test it yourself with your demo blog and a wrong email address).
First posts were about having multiple textareas (within comment form) and for spam detecting purposes, and check just one specific with java script. Also solved for those who are also interested.
I am fine, thanks for help
Thanks and with regards.
Just write a comment with an unvalid email address http://themes.apollo13.eu/airlock/2011/11/20/honda-microcommuter-concept/#comments
My string was: "fdgdfsgfdsghf" and it passes the validation (not marked red, instead, the wordpress inbuild-validation was triggered) ....
With regards.
no worry about that, just want to help. I give suggestions for a patch here: http://support.apollo13.eu/discussion/comment/5444#Comment_5444
Guess that should be all the staff a patch should need.
With regards
I will update patch with it later.
With regards.