It would be useful to make the Mollom data about comments/nodes visible under certain circumstances. For instance if you had spam comments making it onto your site, you could see if they had filled out a CAPTCHA or not, the Mollom session ID, quality rating, and detected languages. This information would be visible to users with an additional permission, something like "view Mollom debugging information" (but shorter).
Attached is an initial screenshot to demonstrate how this would work.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | feedback.jpg | 310.27 KB | dries |
| #17 | meta-data-feedback-1.jpg | 218.14 KB | dries |
| #16 | meta-data-2.jpg | 247.83 KB | dries |
| #14 | mollom-DRUPAL-6--1.info.14.patch | 4.83 KB | sun |
| #13 | mollom-DRUPAL-6--1.info.13.patch | 4.42 KB | sun |
Comments
Comment #1
sunThe major problem with this idea is that we currently do not integrate with the loading or rendering of entities - where entities can mean quite a lot.
For D7, we might want to analyze whether using a pseudo-field could do the trick (similar to taxonomy term fields), but I'm not sure how useful that would be.
In general, I think I wouldn't even want that info all over the place. With regard to #717212: Remove "report to Mollom" links and integrate with entity delete confirmation forms instead, integrating with delete confirmation forms would perhaps make more sense?
Comment #2
sunI don't think we want to display this data on regular view. Instead - which makes this task a lot easier - we want to display the data as "debugging info" in the entity edit form but also in the delete confirmation form.
Note: Quickly scribbled code.
Comment #3
dries commentedI think that makes for a great first step. Clever.
We should add 'Profanity' to the list of fields that we track.
We should also mention whether the user had to fill out a CAPTCHA.
I found it to be a bit of a surprise to give this to people with the 'bypass mollom protection' setting. I'm not sure that is logical for end-users but it might be good enough.
Comment #4
sunI should have mentioned that the fieldset is collapsed by default.
hah. I would have added that, if we would store it. :P The profanity checking still needs a lot of clean-up.
Hm, properly generating and storing that info that won't be simple. Ideally defer to a separate issue.
As mentioned, this is quickly puzzled piece of code. In general, I guess it makes sense. However, it would make even more sense to combine this info with a new user permission... which would immediately bring us back to #771594: Add a permission to control access to report form ;-)
Overall, I'm relatively happy with the code already... not so much with the visual representation - although that simple "list" in a fieldset may work as a first implementation. Since in general, Drupal has no standardized notion of outputting debugging information within the regular user interface, any attempt to make this look prettier in Garland won't work at all in other themes. Hence, I already fear we can't really do much more.
Comment #5
sun1) Adding to the comment view content output now.
2) Still need to add {mollom}.sentiment.
Comment #6
sunmmm, added the module update for {mollom}.sentiment now, but I'm not sure whether it is a good idea to add that. You will have to manually reset the schema version of mollom.module in {system} after reverting this patch and/or updating the module on your site. :-|
Comment #8
sunFixed that syntax error. Also, this patch is for D6. But nice to see it also applies to D7 ;)
Comment #9
dries commented+1 for adding it to the comment view output. Having it on the comment edit form is too much of a pain as the data isn't readily available.
Comment #10
dries commentedWhen I apply this patch and go to update.php, I get
Fatal error: Only variables can be passed by reference in /sites/all/modules/mollom/mollom.install on line 649Comment #11
sunmmm... sorry, a D7 signature slipped into that update.
Comment #12
dries commentedI don't think the Javascript-driven fieldsets are the way to go. There must be better ways to present this data. Attached a suggestion.

Comment #13
sunAdded a permission check for "bypass mollom protection" and removed the auto-expanding of fieldsets.
Finding an display style that works for all sites is going to be the largest challenge. For example, your suggestion would work for your site, but not for mine, because on my site, the comment links are aligned to the right, instead of to the left.
Comment #14
sunA different visual representation idea.
Comment #15
dries commentedApplied the patch on buytaert.net. Testing!
Comment #16
dries commentedHere is how it looks on my site. Much better than the previous version but could still use more design work. The current visual design is good enough for testing/evaluation.

Comment #17
dries commentedActually, all of the sudden the Javascript started working. I kinda like how it works, and I think this might be something that we want to keep. Here is some additional feedback.
Comment #18
dries commentedTalked to the Economist today and they'd like to have this feature for their moderators. When looking at a comment, they'd like to better understand when a CAPTCHA was required. This confirms that there is a real use case for this patch.
I have been using this patch on my site for about 1 week now. Here is my feedback to date:
Comment #19
dries commentedLots of testing with the new backend let me to this request. See attached image.