YAFLogo

Posted by: muller2 - Tuesday, 30 December 2008 08:42:23
I am about to set-up my first forum using YAF and I want to end up running several forums which all use the same database. I have done something similar with a blogging engine and I had to modify to allow me to separate them completely but using the same tables etc. Is this possible with YAF and is it already a built in feature? Thanks, Al

Posted by: mddubs - Tuesday, 30 December 2008 20:33:28
Yes, install YAF and then create multiple boards. The YAF Forum control in Default.aspx has a BoardId attribute.

Posted by: verveComputing - Tuesday, 30 December 2008 22:06:46
I'm also interested in this but have never done it... Once you create the multiple boards, then what - is it as simple as specifying the BoardID in the app.config of each site? If it is that simple, can I then apply different security models to each site ie. have all 10 forums on site 1, only forums 1-5 on site 2, and forums 6-10 on site 3? I hope I'm explaining my question correctly :?

Posted by: Mek - Wednesday, 31 December 2008 03:54:11
yup BoardID attribute is also supported in the App.Config, or you can do as my colleague above says and add it as an attribute to the YAF:Forum control.

Posted by: mddubs - Wednesday, 31 December 2008 08:45:05
I use ASP.NET forms authentication to divy up my site in sub-folders that only members of specific roles have access to. I installed YAF to ~/member/forum, and set everything up from there. I then created 2 new boards, a [i]Director Forum[/i] and an [i]Admin Forum[/i]. I then copied YAF's default.aspx page to ~/director/forum and ~/admin/forum, and changed the BoardId for each. Make sure your AppSettings are correct. For the scenario above, my relevant app settings look like this: [code] [/code]