Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would make the contact form really useful if it supported Mollom.
Comment | File | Size | Author |
---|---|---|---|
#10 | email-mollom-support-942640-10.patch | 1.46 KB | eelkeblok |
#3 | email.mollom.patch | 1.99 KB | eelkeblok |
Comments
Comment #1
jtbayly CreditAttribution: jtbayly commentedMy friend says I'm a jerk.
What I should have said was:
I really like this module, and I'm excited about using it. Thanks for all your work! Is there any chance of including support for Mollom any time soon?
Thanks,
-Joseph
Comment #2
ChrisRut CreditAttribution: ChrisRut commentedI would also be interested in seeing Mollom integrated with this module.
Comment #3
eelkeblokThe attached patch adds mollom support to 6.x-1.2. Please note that I had to move the validation function from the submit button to the root of the form in email_mail_page_form() due to this issue: http://drupal.org/node/372818
Comment #4
eelkeblokComment #5
ju.ri CreditAttribution: ju.ri commentedThanks for the patch! Very essential. I tested the patch and functionality and it works as expected.
Comment #6
Rob_Feature CreditAttribution: Rob_Feature commentedYup, works for me.
Comment #7
mh86 CreditAttribution: mh86 commentedI haven't tested the patch yet, but there are still some issues. It contains a 'mymodule_comment_mail' and some whitespaces.
Are there plans for D7?
Comment #8
eelkeblokSorry for the late reply (over the moon with email notifications on d.o). I can update the current D6 patch, D7 is not likely something I'll address soon, although the concepts are pretty simply, so porting over de patch to D7 shouldn't be that hard.
Comment #9
ITMonkey CreditAttribution: ITMonkey commentedSorry for the daft question, but as the patch from #3 hasn't been updated, I was going to apply the changes manually, but what does the 'mymodule_comment_mail' need to be changed to?
Thanks.
Comment #10
eelkeblokIt should be safe to completely remove that line, it was a "copy-paste" error from the Mollom examples. In fact, I don't think making use of this option is something that can be done "wholesale". For my use case, the mail form will be sending emails to arbitrary users. I don't want them to control what is spam and what isn't for my sites Mollom account. It might be a nice feature addition, but in that case it should be configurable (probably per field-instance) whether or not to show the spam-report link in the email, which would increase the complexity of this patch quite a lot.
I've attached an altered version of the patch that does not contain the 'mail ids' field in the hook_mollom_form_info and which removes the extraneous whitepase, as mentioned by mh86 in #7.
Comment #11
eelkeblokComment #12
stuhannaford CreditAttribution: stuhannaford commentedReally pleased to confirm that this works an absolute treat... however, I wonder if someone might be able to help me with the following problem. I recently began using a user contributed module uploaded at http://drupal.org/node/1061784 which I am using to embed that nodes contact form within the node itself as opposed to making visitors click a link to access the form. In essence it takes the email field and allows the option when managing the field to display within the node as opposed to just a link. For a look at my setup, you can view http://www.whiteweddingpages.co.uk/directory/nail-technician/solihull/pi...
The code from this module look is as per below:
Having looked through the patch details, I amended the #validate (reverted back in the code above) and added the rest to the bottom of the module with no luck... I'm no developer :-(
Could anybody be really so kind as to point me in the right direction as to how I can get this working with Mollom as the current surge in spam is driving me absolutely mad and reCaptcha just cannot keep it out?
Fantastic module, and patch by the way!
Comment #13
stuhannaford CreditAttribution: stuhannaford commentedSo I got bored and thought I might as well try and figure it out myself in the meantime. Amending the #validate part is the same and should be done if anyone is looking to integrate a free integrated form as per mollom.api.php. Having read the mollom.api.php it gives an example in mollom.module which relates to the contact module which showed me how to add further forms to the same hook, which was originally called in email.module:
My amended code with added form ended up looking like this:
As you'll see, the only thing in need of changing/adding was the new form id, and adding a new case with said new id. Hope that helps anyone out there with a similar issue, and apologies if that all seems obvious to everyone else :-)
Comment #14
eelkeblokstuhannaford, sorry to be a jerk, especially so long after your comments, but would you mind keeping this issue strictly about adding Mollom support to this module? If you need support, there is an abundance of resources such as drupal.stackexchange.com, IRC, the forums, etc.
I just updated the module to the latest 6.x version and found the patch to not be working. Back to the drawing board, I suppose. I'll see if I can do a D7 version, which I suppose makes it much more likely for it to be adopted. I will leave the issue unassigned for now, so if anyone else feels like doing this, feel free.