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

Forums / Developing with Sitefinity / Hiding a thread or post in the forums

Hiding a thread or post in the forums

2 posts, 0 answered
  1. Brandon
    Brandon avatar
    16 posts
    Registered:
    23 Oct 2008
    07 Jul 2010
    Link to this post
    Hi,
      How would I go about hiding a thread or post in the forums?  Would I need to override the ForumProvider class?  I saw the example in the documentation, but it only had a few of the required functions listed.    I already have custom SingleThread and SingleForum controls (to control who can post). 

    Thanks,
    Brandon
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    07 Jul 2010
    Link to this post
    Hello Brandon,

    To hide a thread - you should subscribe for GridView RowCreated - allThreads.RowCreated and hide the thread you want.

    To hide a post - you should subscribe for Repeater ItemDataBound event - allPosts.ItemDataBound and hide a given data item.

    You might find this post useful - forum, redirect login and restrict access

    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