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.

Forcing Discussions to be Whispered

2

Comments

  • MarkMark Vanilla Staff
    Just read this for the first time. If a discussion is started as a whispered one, the comments underneath it will automatically be whispered. So, all you need to do is: 1. Change the dictionary definition for "whisper your comments to (optional)", removing the "optional" bit. 2. Attach to the DiscussionForm control's PreSaveDiscussion delegate and make sure that the whisper field was filled. If it wasn't, add the warning to the warning collector. The discussionmanager will make sure that there are no warnings before saving, so since you've added one, it won't save and it will show the warning. It will take about four lines of code.
  • MarkMark Vanilla Staff
    http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=140
  • nice work! any chance this could be limited to specific categories, or does that make sense? I was just thinking that it might be useful to have a category that was designated for that type of behavior, but not have to regulate the whole board that way.
  • MarkMark Vanilla Staff
    Sure you could. You'd need to add a new column to the category table, and I might need to add a delegate or two. But it's do-able.
  • Can you make it an option so they have to whisper to themselves, mark? I think that was the original request. I'll hack at it if you're too busy. Could do it role based too?
  • It didn't even work for me. It is simply supposed to ensure that the discussion is whispered to someone, am I correct? Mini, if you could do that, it would be great.
  • It changes the language file properly (to remove the "optional" bit), but the checking does not work at all for me.
  • yah - i installed it and i don't seem to see any difference. i didn't even add a name to the whipser area and it showed up fine. i looked in the permissions area and didn't see a check box. ...was i supposed to do something else?
  • No, I don't believe you where. I think there is a bug in the extension.
  • OMG MARK MADE AN ERROR!!
    I'll grab his code and take a peek tomorrow if i get chance.
  • I think he did. I forgive him :P I had a look and I have no idea what could be wrong. I really need to learn this framework.
  • role based access to whispers would be nice. so you could reward paying\long time users
  • MarkMark Vanilla Staff
    It works for me on my local setup. I bet it's using a delegate that isn't in the 1.0 release. Which reminds me. I was going to release 1.0.1 today. Dammit. I don't have time now.
  • cock tease.
  • MarkMark Vanilla Staff
    I was honestly planning on releasing it. Stuff came up IRL.
  • I installed the latest SVN and it worked well, so you were right in thinking you used some new Delegates. @Mark or Mini - could either of you give me a hand amking this extension meet my initial need? I need to have the users name inserted into the whisper field be default. In fact, I now want to give them the option of sharing their "note' with other users, but they need to be private so, it needs to be their name by default. Thanks/
  • Yeah sorry, I was out all day yesterday and will probably be busy for most of today but I'll try and get round to it.
  • Thanks. In your own time Mini.
  • Gonna have a bash at this now
  • I've been hacking at stuff for a while and i cant for the life of me get it to put a value in the whisper field while it's loading the form. Can anyone explain why attatching to a delegate before the whisper input box is made and setting $Discussion->WhisperUsername = "whatever"; doesnt put it in there? I've tried the JS route too with no luck (though admittedly i know no js whatsoever). I know it's a pretty basic question but I always get stuck on something like this and it keeps me hung up for hours...!
This discussion has been closed.