YAFLogo

smlemmon
  • smlemmon
  • 56% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Hi,

I am wanting to run a YAF.NET forum within a masterpage in my existing ASP.NET web application, developed using VS2010.

I have found various sets of instructions, but none of them seem relevant as they are outdated etc.

Is there a definitive step by step guide to doing this anywhere as it is nearly impossible to do it from the example and the various posts which all seem to relate to earlier versions.

I am using ver 1.9.5.5.

Many thanks in advance.

Simon
Sponsor

smlemmon
  • smlemmon
  • 56% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Can I assume, that is a no then?
Dennis Hevener
12 years ago
I'm fairly knowledgeable about asp.net but new to YAF. I can't be of much help but will try.

It's going to be hard to give exact instructions since your existing site is an unknown.

I'd start by getting the existing YAF default.aspx running within your existing application. Your site needs to run on the 3.5 framework. Merge the two bin folders, and merge the contents of YAF's web.config with yours. Put YAF in its own folder, and remove the web.config from that folder. Do not make the folder an application.

http://wiki.yetanotherforum.net/embeddedYaf.ashx  looks pretty good to me. The only thing I see that has changed is that the reference to in yafnet.config is no longer valid. I think it is in app.config in


It's going to be a matter trial and error and fixing errors until it runs.

Something to consider is running YAF in its own folder/application within your existing site, but provide your own default.aspx and master page. I don't know of any way to share master pages acoss applications, so just copy your existing page. If all links on that master page start with / (not ~/) they should work without change. If you have to change a few hyperlinks, big deal.

Is your site written in c#? If not, I do not think it will be a problem, since the code for the site is compiled.
smlemmon
  • smlemmon
  • 56% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Hi Dennis,

Thanks for that - it is very much appreciated.

You are pretty much like myself - I am a developer of 20 years, the last 5 of which have all been .NET and in particular, ASP.NET.

I too am very new to YAF.NET, but so far, so good - I really like it and it leaves a lot of options for me to enhance for my own sites in the future.

I had pretty much resigned myself to popping the forums up in a seperate window, which isnt ideal, but I could live with it.

Everything is C~, so I will be alright from that perspective.

Anyway, I will give it all a go and let you know how I get on.

Once again, many thanks.

Simon
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button