Follow me on twitter @yodasmydad
Ahhhh #Fringe can't finish like that!! Latest Tweet:

Hey I'm Lee. My blog was put up to house my strange thoughts, ramblings, nuggets of information I can refer back to and document my learning curves on new dev stuff like Umbraco v5 and other .NET related things.

All thoughts and comments on here are my own, and in no way reflect my employer - I also take no responsibility for spelling, grammar or terminology, so read at your own risk!

Blogs I Read

Sites I Like

Installing nForum Into An Existing site

I have tried to make sure that you can install nForum into an existing site - In essence nesting the forum deep into the node level of a website.  Personally I wouldn't next it too deep, or you'll end up with REALLY long urls for some pages in the forum.  I'd only let the forum go one level under the home page, but it will work however you do it.

So if you do need to nest nForum there are a few things you need to change to make sure everything works, for this post we'll make the assumption you are just installing it under your home page of an existing site so have a structure like so

- Content
- Home
- About Us
- Contact
- Forum

1) The main category level, on the forum node there is a setting which needs to be changed to tell the forums at what level in the site the main category forums are - On a fresh install they are level 2, if you nest the forum under your current home page then the level would be 3.  I cover this briefly in the overview screencast which will be on the site later today.

maincat

2) The next thing you need to do is open up the Master Template (ForumMaster.master) and change the hyperlink to the login and register pages

<a href="/forum/login.aspx">Login</a> / <a href="/forum/register.aspx">Register</a>

3) And last one in the ForumMaster.master is update where he search form posts to

<form action="/forum/search.aspx" method="get">

4) Lastly we need to update the logged in admin menu, to change the location of Active Topic and Topics you participated in, so open up the usercontrol found at (\usercontrols\nForum\membership\UserAdmin.ascx) and change the hyperlinks to reflect the new level.

<li><a href="/forum/activetopics.aspx">Active topics</a></li>
<li><a href="/forum/yourtopics.aspx">Topics you participated in</a></li>

<li><a href="/forum/editprofile.aspx">Edit profile</a></li>

These pages above use alternative templates, so I 'think' you might not have to change URL's and they should still work.

Back to top