Closed (duplicate)
Project:
Mollom
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 04:06 UTC
Updated:
13 Oct 2009 at 21:32 UTC
Panels has support for a comment form that has a different form_id than the normal comment form. This patch will allow (if you are using panels) Mollom to configure and control the spam that comes in on panels_comment_form.
| Comment | File | Size | Author |
|---|---|---|---|
| mollom_panels_comment.patch | 2 KB | populist |
Comments
Comment #1
creaoy commentedI tried this patch but it is not enough to get mollom work with comment panels form.
First I had problem with constantly invalid captcha.
I started to debug this function:
function mollom_expand_element($element, $edit, &$form_state, $form) {As the result there is no $form_state['mollom'] data. Any data about mollom from panels_comment_form can be found here:
$form_state['clicked_button']['#post']['mollom']
I had to do such changes:
But after that I had another problem. I could enter any CAPTCHA and it would be accepted.
If you look at elseif in the code above:
You will see part of it "$cache->data['#user_session_id'] === session_id()".
For some reason session_id in cache and current session_id have different values.
Is this problem with caching? Or panels comment form makes session id regenerate?
I removed this condition and captcha works great but I understand this is not correct way. Any ideas how to solve this?
Comment #2
dave reidPostponing until #245682: Enable use of Mollom for any form and #412760: User interface brainstorming land.
Comment #3
dave reidMarking as an official duplicate of #245682: Enable use of Mollom for any form. Keep posted to that issue for progress.