Closed (fixed)
Project:
Content Blocker
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 May 2007 at 00:09 UTC
Updated:
20 Jun 2007 at 21:19 UTC
Comments separately are not blocked also it badly, for example in documents (node) other users comments of the blocked user will be visible.
Comments
Comment #1
nedjoYes, blocking comments will require additional work. I'd welcome a patch.
Comment #2
nedjoThere is no clean way to implement comment blocking in a module. Comments are not run through
db_rewrite_sql(), so we have no method available. The only way I can think of would be a theme-level override of comment rendering. Here's a draft, assuming a phptemplate theme:You can copy this into your theme's template.php file (or into a new file in your theme's directory called tempate.php, if none exists) and see if it works. Please report back.
Comment #3
nedjoOops, previous version would block all comments for anonymous users. Here's another draft:
Comment #4
hade commentedworks fine. but is there any way to put the "block content by user" message under all comments, not only nodes?
Comment #5
nedjo@hade: that would be a separate feature request issue. (And at present I don't have a lot of time for feature requests. Of course, I welcome patches.)
I've added this code snippet to the module's readme.
Marking fixed since this is the closest we can come for now. There is a patch in the queue to add comment SQL rewriting, so a fuller solution may be possible in D6.
Comment #6
(not verified) commented