1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Trapping the "Make Visible" or "Make Hidden" moderation event

Trapping the "Make Visible" or "Make Hidden" moderation event

2 posts, 0 answered
  1. Ty
    Ty avatar
    4 posts
    Registered:
    23 Jan 2009
    06 Jul 2010
    Link to this post
    I am attempting to modify an existing Sitefinity solution to allow users to subscribe to updates for forum notifications.  I have most of the pieces in order, however, we have moderation enabled and I don't want to send the email notification until the post has actually been made visible.

    I have tried creating event handlers using Telerik.Cms.Engine.ContentManager.Executing, Telerik.Cms.CmsManager.Executing, and Telerik.Forums.ForumManager.Executing to no avail.

    Is there a specific event I can listen for that fires when the "Make Visible" linkbutton is clicked by a moderator?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Jul 2010
    Link to this post
    Hello Ty,

    There is no events that is thrown when you make a post visible.

    What you can do : You can subscribe this.allPosts.ItemCommand inside \Sitefinity\Admin\ControlTemplates\Forums\ControlPanelViewThreadTemplate.ascx or its code behind.

    Then you can check the check the CommandName which should be ChangeModStatus and get the post Id form e.CommandArguments. Then send an email.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered