Download & Extend

Hide "report to mollom" button from node links

Project:Mollom
Version:6.x-1.10
Component:User interface
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

I see that in the last release, every node appears with a "report to mollom" button to users with administer node permission. Is it possible to disable this?

Comments

#1

Status:active» fixed

Yes, it appears if the Mollom module is configured, the user has the administer nodes permission, and that node type is protected by Mollom. If you don't need Mollom protection for that node type form, then you should disable it within admin/settings/mollom and the link will go away. Otherwise, you might want to be able to report any spam that comes through.

You could also create a small custom module to hide that link:

<?php
/**
* Implementation of hook_link_alter().
*/
function mollomhide_link_alter(&$links, $node) {
  if (
$node->type == 'my_node_type') {
    unset(
$links['mollom_comment_report']);
  }
}
?>

#2

Thanks for your reply Dave! Is there a way to hide that link from every node but leave protection enabled?

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

That certainly helped, thanks..

#5

If anyone could bring light to hide that link from every node but leave protection enabled, it will be greatly appreciated.

#6

Status:closed (fixed)» active

I would also like to have that report to Mollom link removed (or even better, changed in configuration) as an option with user radio button to click for each content type (or user could make it for all content unless specificaly enabled) with option to change the tag line (from report to Mollom to Spam?).

I believe that it is easier to change module as it will add functionality than to expect everyone to hooks whenever something custom is needed.

#7

@MacMiaden: Again, I'm not sure what good this is going to do. It only adds links to node types which have protection enabled for them, which makes a lot of sense. Removing this ability hinders your site's ability to improve Mollom's ability to analyze spam.

@Juanzo: See comment #1.

#8

For me, this is a "won't fix" because as Dave wrote, we only add links to node types that are protected by Mollom and it is important that we get good feedback. The few people that want to change that, can probably use the proper hook_alter() to change that behavior. Two thoughts come to mind:

1. In Drupal 7, we could leverage the contextual links making those links less visual. Not sure if the current Drupal 7 port does.

2. We overwrite the default 'Delete' link and inject the typical Mollom page with checkboxes in the normal delete workflow. It removes the Mollom link, but still gives people the ability to provide proper feedback.

#9

Status:active» closed (won't fix)

Won't fixe-d then.

#10

I removed the link "report to mollom" using css, "display:none". Don`t know if this is a smart thing to do but it definitely removed the link. :-)

#11

"we only add links to node types that are protected by Mollom"

I don't see any way to configure which node types are protected by Mollom -- I have it set to protect comment forms, but the original node (to which a comment form is attached) also shows a report to Mollom link. I'm not clear on the purpose of that, when users are not allowed to submit node content, only comments.