Hello,
I need to bind some activity to creation of a new forum thread. How can I implement this?
While digging the code, I found that new post and thread creation is handled in ~/CMSModules/Forums/Controls/NewPost.aspx.cs. There is the "newThread" variable:
bool newThread = (ForumContext.CurrentReplyThread == null);
which is set to "true" when new thread creation takes place and to "false" otherwise. But during editing an existing post (no matter is it first post in the thread or any other), after I made corrections and clicked OK, this variable is been set to "true", I see it in debugger and on my custom onThreadCreateActivity method starts.
Happy holidays to all!