Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Razvan 36 posts 67 karma points
    Jan 08, 2013 @ 09:38
    Razvan
    0

    Redirect after login

    Hi, 

    I have the forum (v1.5) installed on a subdomain (http://forum.citydoctors.ro/) but after each login it redirects me to the main site www.citydoctors.ro. Is there a way I can change the default redirection after login.

    Thanks

  • Razvan 36 posts 67 karma points
    Jan 08, 2013 @ 09:58
    Razvan
    0

    I've found my problem.

    It seems that the forum uses a cache to store its settings (like root url). If I first call http://www.citydoctors.ro it will cache as the root path. (but I need http://forum.citydoctors.ro/). As a fix I had to alter its sources:

    In nForum\usercontrols\nForum\membership\Login.ascx.cs I've changed

    Response.Redirect(Settings.Url);

    to

    Response.Redirect("/");
  • singer777 69 posts 80 karma points
    Jan 12, 2013 @ 21:35
    singer777
    0

    Razvan, I want to do this update as well. Where is the Login.ascx.cs page located? I installed the package in the Umbraco admin and checked all the downloaded files via FTP. Do I need special software?

    All I want to do is make the users redirect to the forum.aspx page after login instead of the root of the website.

    Thanks to anyone who can help!

  • Razvan 36 posts 67 karma points
    Jan 12, 2013 @ 21:41
    Razvan
    0

    Hi,

    I've downloaded the latest source code from codeplex and made the changes.

    Raz

  • singer777 69 posts 80 karma points
    Jan 12, 2013 @ 21:51
    singer777
    0

    Thanks so much for the response. I'm probably just ignorant because I'm not a .NET developer, instead, just a guy who uses Umbraco, packages and XSLT, etc...does the source changes happen in Visual Studio or something? Do you have to then package a DLL or something? Again, I'm a novice...I just want to redirect it to /forum.aspx upon registering, or upon login. Hoping it isn't too hard!

  • Razvan 36 posts 67 karma points
    Jan 13, 2013 @ 08:59
    Razvan
    0

    Yes, you will have to recompile the nForm and deploy/copy the DLL again (manually copy into the bin folder). You can get the latest sources from here http://nforum.codeplex.com/SourceControl/list/changesets. The download depends on your umbraco version. 

  • singer777 69 posts 80 karma points
    Jan 13, 2013 @ 23:13
    singer777
    0

    Thank you. That may not be too difficult but I have not done it before. Anyway, thank you so much for your help!

    To anyone else reading this, I have another suggestion. Again, I think anyone having a website with the forum as a section WITHIN the site will have my issue. So my suggestion (and I'm trying it myself now) is to add the "logged in" piece of code from the forum onto your regular template somewhere, so they simply know if they are logged in or not on any page of the website. It's still not wonderful, but it's one way to let them know they've logged in successfully!

  • Mr A 216 posts 278 karma points
    Feb 18, 2013 @ 12:20
    Mr A
    0

    @Razvan , i downloaded the source code , but i cant recompile it in visual studio it comes up with xcopy error , ny ideas?

  • Razvan 36 posts 67 karma points
    Feb 18, 2013 @ 12:24
    Razvan
    0

    This error is caused by the post build event that the project has configured.

    The simplier solution is to remove the post build events. Right click the project -> Properties -> Build -> Post build events. 

  • Mr A 216 posts 278 karma points
    Feb 18, 2013 @ 12:51
    Mr A
    0

    @thnx razwan so after making changes to usercontrol , i should recompile and then copy and paste the dll to the bin folder on live website , which dll i have to copy any idea apart from nforum.dll and nforumbusinessLogic

  • Razvan 36 posts 67 karma points
    Feb 18, 2013 @ 12:55
    Razvan
    0

    All the logic from the forum project is in nForum.dll and nForum.BusinessLogic.dll

  • Mr A 216 posts 278 karma points
    Feb 18, 2013 @ 20:57
    Mr A
    0

    Thanx Razvan , sorted out :)

Please Sign in or register to post replies

Write your reply to:

Draft