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

Forums / General Discussions / Sitefinity forum, anonymous to view, but registered only to post

Sitefinity forum, anonymous to view, but registered only to post

3 posts, 0 answered
  1. Aligma
    Aligma avatar
    3 posts
    Registered:
    15 Sep 2010
    16 Sep 2010
    Link to this post
    Hi all

    I'm experienced with .NET development and development in other CMS, but this is the first customisation I'll have ever done in Sitefinity. I tried finding documentation about the Sitefinity Forum module on Google but most results returned referred to these dev forums. I had a look at the user and programmer's docs but couldn't find my answer there either...

    I want two things:
    - When anonymous users are browsing forums, there should be text beside the new thread, new post buttons, and reply buttons which indicates they need to sign in to create a thread / post a new item / reply.
    - When anonymous users click new thread or new post  they should be redirected to the site's login page with messaging about why they were redirected there; when they finish logging in they should be redirected back to the page they were originally at

    I have several threads in the forum module which may be browsed anonymously, but require registration login to post in or create new threads. I've done this purely through configuration just enabling the correct permissions on forums.

    Not sure if this is a configuration or programmatic change, or if it is even possible.

    Thanks 

    David













  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Sep 2010
    Link to this post
    Hello David,

    - When anonymous users are browsing forums, there should be text beside the new thread, new post buttons, and reply buttons which indicates they need to sign in to create a thread / post a new item / reply.

    You can easily do this in the code behind of Forum public templates. In page load you can change whether the request is annonymous or not and add a label or another control that will display( or not )  your message

    All public templates for Forum module are located in ~/Sitefinity/ControlTemplates/Forums/EditPost.ascx

    - When anonymous users click new thread or new post  they should be redirected to the site's login page with messaging about why they were redirected there; when they finish logging in they should be redirected back to the page they were originally at


    You have to disable anonymous users to post to your forum by setting Deny anonymous authors option for your forum ( Set Details command panel option)

    Then you can set role permissions for the forum by using Permissions command panel option -
    from here you can control who is allowed to read, edit or delete forums.

    Forums control has a property LoginPage where you could set through the control designer. On this page you should have login control which will be used to authenticate your users. You can template the login control and add some label with the possible options for this redirection.

    Sincerely yours,
    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
  3. Susi Jenkinson
    Susi Jenkinson avatar
    3 posts
    Registered:
    27 Jun 2012
    21 Sep 2010
    Link to this post
    Hi Ivan

    Thanks for your comprehensive reply 

    Regards

    David
Register for webinar
3 posts, 0 answered