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

Forums / Bugs & Issues / Problem with Editing Forum Post

Problem with Editing Forum Post

13 posts, 0 answered
  1. Luke
    Luke avatar
    5 posts
    Registered:
    15 Jul 2008
    24 Jul 2008
    Link to this post
    I have a sitefinity forum set up. For some reason it shows the edit links next to posts that a user has made when the user is logged in. However when the user clicks on the edit link it takes the user to the log in page and not the edit page, thus making it impossible for a user to edit his post. However deleting posts works just fine, and I remember that editing posts used to work fine too. How do I fix this?

    Some info: In the forum control options under misc, it lets you put in specific pages (but default is blank). I put in the link to my log in page but no others, one of them says "edit post page".
  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    25 Jul 2008
    Link to this post
    Hi Luke,

    Are you using the Forums control, or separate ForumList, SingleForum and EditPost controls? If the latter case, then you must set the EditPostPage property to the page containing the EditPost control. Please take a look at this topic in the Developer ManualForums Public Controls .

    If the properties are not set correctly, then this is probably the reason for the behavior you describe.

    Best wishes,
    Slavo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Luke
    Luke avatar
    5 posts
    Registered:
    15 Jul 2008
    25 Jul 2008
    Link to this post
    I am using the Forums control and that is it, the forum is set up on its own page and used to work fine. What does the edit option use? We have been changing the code and server settings to help with security and appearance, and perhaps we messed with something that the edit option uses, like cookies?
  4. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    05 Aug 2008
    Link to this post
    Hi Luke,

    There are many reasons why this might happen and I am not sure which one it is in your particular case. An alternative I can offer is using the separate controls instead of the Forums control and see if the problem persists. If you don't want to do this, then please send us the exact settings for the Forums control with which this behavior occurs. Also, please mention if you've made any specific modifications to your project that may be related to this.
    The Edit form basically checks if the user has permissions to edit a post, and if so displays a form for editing. If the user is not logged in or is not authorized to edit forum posts, (s)he is redirected to the login form. Please also make sure that the query string looks right when redirecting to the Edit form.

    Best wishes,
    Slavo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    15 Oct 2008
    Link to this post
    hi Slavo,

    I'm using separate pages and controls for the Forums and I've all the properties set as described, I place a Login control on the Forums page which takes me to the Sitefinity login screen, after I login I can see my username and a Logout button, everything is fine uptill now.

    When I goto my post I see the Edit button when I click it, it takes me to my custom login page (that also has a 'Create User' control) but even after I sign in I am not redirected to the Edit post page, I've even set the 'DestinationPageUrl' property of the Login control to my Edit post page.

    Why am I redirected to the login page in the first place when I'm logged in already ?

    Secondly, how can I set the Login control from Sitefinity toolbox to redirect to my custom Forum login page (because it has the Create User control and the theme of my website) then the default Sitefinity login page.
  6. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    15 Oct 2008
    Link to this post
    Hi Zubair,

    Thanks for contacting us.

    Based on your scenario, anonymous comments have been denied in the forums and since your user isn't logged in, he or she isn't able to post. To disable this feature, you could go to Modules > Forums and then click
    settings next to the forum. Click allow under anonymous comments and you should be all set.

    The login control from the Sitefinity toolbox is the same login control from Visual Studio, so it has all the same properties. Simply click edit on the login control, then the edit button next to the login box to see all of its properties. The one you want is DestinationPageURL and that's located under Behavior section. For more info on that control, please read this MSDN article.

    I hope that I have provided a solution to your technical issue. Let me know if you need further assistance.

    All the best,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. anand
    anand avatar
    59 posts
    Registered:
    11 Jun 2008
    17 Oct 2008
    Link to this post
    I am completely agree with  Zubair, 10/15/2008

    In My Project  User is also not able to edit their own  posted  replies. I have verified all the settings. I want that  anonymous  users should not able to  post replies but  User should  able to edit their own posted replies,
    In My project when user will go for their own posted replies , the will be redirected to custom login page(even he is already login).

    Thanks a lot for your quick response
  8. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    17 Oct 2008
    Link to this post
    Hi Anand,

    Thanks for contacting us.

    Please tell us what settings you have on the forums control, so we can verify that they correct. What version of Sitefinity are you using? If you set deny on allow anonymous comments, then users will have to login to post comments. By default, users can edit their own replies and I am not sure what's causing this issue.

    Best wishes,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    26 Oct 2008
    Link to this post
    hi Joe,

    There is something serious going on with Forums in Sitefinity in the Public end.

    As I said I'm using different pages for All/Single Forum/Singe Post/Edit Post, with deny anonymous authors set to Yes now here's what's not working for me.

    I create a new user from Forum Login page that has a Create User control and the Login control, it creates a user but when I go to the SingleForum.aspx I don't see New thread button, now this user who just sign up doesn't belong to any default role, I tried adding a new user to a ForumUsers role that I created but same problem.

    But I see the New thread button when I sign in with a user who is in Admin role, I also see Edit and Delete this thread buttons when I browse to any post.

    Can you tell what's wrong with it please because I need to launch the website ASAP ?

    And as I said earlier the Login control doesn't redirect after login and yes I set the DestinationPageUrl property on this control but nothing happens.
  10. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    28 Oct 2008
    Link to this post
    Can anyone please have a look into this issue and reply back.

    Thanks
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Oct 2008
    Link to this post
    Hello Zubair,

    Please enter the DestinationPageUrl manually or expose this property. There is a problem with versions prior to Sitefinity 3.5. Also check the permissions for the Everyone role.

    I hope this helps.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  12. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    28 Oct 2008
    Link to this post
    I'm using the built-in Login control in Sitefinity, please tell me how to do it.
  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Oct 2008
    Link to this post
    Hello Zubair,

    Open the built-in Login control for editing. Navigate to DestinationPageUrl. Then enter the destination page url manually ( do not use the selector from the right side of the text box). The second option is to expose the property on the first level. Open LoginControl.ascx file located under ~/Sitefinity/UserControls/Login/ and expose DestinationPageUrl property as the example below demonstrates.


    [WebEditor("Telerik.Cms.Web.UI.UrlEditorWrapper, Telerik.Cms"), Category("Behavior")]  
     
        public string DestinationPageUrl  
        {  
           get  
           {  
                return this.Login1.DestinationPageUrl;  
            }  
            set  
            {  
                this.Login1.DestinationPageUrl = value;  
            }  
     
        }  
     

    I hiope this helps.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
13 posts, 0 answered