Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Auto-Sink?
Hey gang,
I apologize in advance if this question has been answered in the past. I did try to search google before hand to see if this question was asked as i know you forum guys hate repeated questions :-P
In any case, is there a way to set vanilla forums to auto-sink posts? We actually use vanilla on my LAN at work and use it for things like closing notes. As of right now every time we make a new daily closing notes thread, i need to set it to sink right away. Any automatic solution for this? Thanks!
I apologize in advance if this question has been answered in the past. I did try to search google before hand to see if this question was asked as i know you forum guys hate repeated questions :-P
In any case, is there a way to set vanilla forums to auto-sink posts? We actually use vanilla on my LAN at work and use it for things like closing notes. As of right now every time we make a new daily closing notes thread, i need to set it to sink right away. Any automatic solution for this? Thanks!
0
Answers
There was an error rendering this rich post.
You need to hook DiscussionController_Close_Before look at class.discussioncontroller.php for details.
There is a close and a sink, you need to use the sink method in that hook.
Using DiscussionModel_BeforeSaveDiscussion_Handler you can add the post values.
Use your initiative.
grep is your friend.
public function PostController_DiscussionFormOptions_Handler($Sender) { $Sender->EventArguments['Options'] .= ''.$Sender->Form->CheckBox('Sink', T('Sink'), array('value' => '1')).''; }
@Lincoln it is a bit odd that way why would you sink if you are not closing?
Plugin example:
grep is your friend.
So he basically want to sink as soon as he has added. Ok...
grep is your friend.
Closing Notes 11/12
Closing Notes 11/11
Closing Notes 11/10
etc...
Other wise if someone isn't in for two days and responds to a comment from the closing notes a few days ago it will bump the date back up to the top and thats really not what we want, rather have things organized.
Not sure if this makes sense, let me know.
grep is your friend.
Not trying to be a karma whore, but...
The NillaBlog addon turns a category into a blog display, comments to blog posts to not raise the discussion to the top (IE: they are sorted on create time)
I don't know if you're looking for the whole blog display of posts, but it may offer you a starting point for making your own addon.
There was an error rendering this rich post.
grep is your friend.
There was an error rendering this rich post.