YAFLogo

muller2
  • muller2
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
13 years ago
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

Sponsor
mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
13 years ago
Yes, install YAF and then create multiple boards. The YAF Forum control in Default.aspx has a BoardId attribute.
UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek πŸ™‚, who stole this off Ederon πŸ™‚ )

verveComputing
13 years ago
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 :?


Camp4WD  - looking forward to YAF in '09!
Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
13 years ago
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.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon πŸ™‚ )

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
13 years ago
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 Director Forum and an Admin Forum. 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:

<add key="root" value="~/member/forum" />
<!-- <add key="BaseUrl" value="~/member/forum" /> COMMENTED OUT -->
<add key="BaseUrlOverrideDomain" value="false" />

UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek πŸ™‚, who stole this off Ederon πŸ™‚ )