Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Invisible comments for distinct members

edited June 2007 in Vanilla 1.0 Help
This is not as much of an add-on request as a request for general support on writing such an extension, as its use is probably not widely required. I am running a forum for an exclusive school community, and am unable to kick members who do nothing but flaming - mainly because they would simply sign up with a new account and complain to those who I am running the forum for. Since for the past few weeks all comments made by those individuals were promptly deleted and/or follow up comments on the deletion I deem it a good idea if all of their comments would simply be invisible to everybody but themselves. Essentially I need to create an add-on that ignores comments made by a specific user id (unless the session's user id is the same). I have no problem determining the ids, however no idea in what ways the filtering of comments would be possible. I'd be endlessly grateful for any help on the issue.


  • edited June 2007
    As a quick fix, perhaps Pre-moderation should be used.

    I wonder how easy it would be to create a role that is always pre-moderated, while normal "nice" members don't get bothered by it?
  • Would it be possible for you to just make their comments automatically whispered to themselves? And then just adapt the display of whispers etc? Or are you already using the whisper system for it's intended use?
  • LysLys
    edited June 2007
    I thought about whispering for themselves, the intention however is that they should not find out - since they'd otherwise simply open new accounts (which I cannot restrict). A customized pre-moderation would be nice, I'll see if I can do that.
  • I believe to have solved the problem now, by manipulating Vanilla.Class.CommentManager.php for $undesiredID

    I simply added this at suitable positions in the GetCommentCount, GetCommentList and ReCountComments methods:
    if($this->Context->Session->UserID != $undesiredID) { $s->AddWhere('m', 'AuthUserID', '', $undesiredID, '!=', 'and'); }I don't think I will develop it much further; the results are promising though.
This discussion has been closed.