mddubs
  •  mddubs
  • 100% (Exalted)
  • YAF Developer Topic Starter
2009-06-17T03:40:20Z
If you want more than 1 board, using the same membership system, with a single install:

1. Each board will exist in it's own subdirectory, ~/forum1/ and ~/forum2/.
2. The YAF web.config settings will all be in the website's root web.config EXCEPT for the appsetting keys. Each forum subdirectory will contain it's own web.config and app.config file.
3. Each forum's web.config will look similar to this:
<?xml version="1.0"?>
<configuration>
  <appSettings configSource="app.config"/>
</configuration>

4. Each forum's app.config will set it's own BoardID, the Root key to the forum path (~/forum1 or ~/forum2), and will comment out the BaseUrl key.
5. Each forum subdirectory will contain all the folders/files necessary for YAF (controls, pages, resources, etc) except for BIN and APP_CODE, which will exist in the root of the website.
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 🙂 )
Sponsor
diogo
  •  diogo
  • 64.4% (Friendly)
  • YAF Forumling
2009-12-19T21:19:52Z
I'm experiencing with multiboard. Are the setting MultiBoardFolders in app.config working or are just there waiting to be finish?
Mek
  •  Mek
  • 100% (Exalted)
  • YAF Developer
2009-12-20T05:24:11Z
MultiboardFolders is not neccessarily requied for Multiboard.
It allows you seperate the Images,Uploads,Avatars etc per board.. it does this by programatically appending the folder with the BoardID. The folders have to be created manually first though for each board.


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 🙂 )
diogo
  •  diogo
  • 64.4% (Friendly)
  • YAF Forumling
2009-12-21T14:45:43Z
But is suppose to be working? I'm asking because I created the Directories and I still get errors. If they are suppose to be working then I will check more closely in Debugging mode to see what is the problem.
Mek
  •  Mek
  • 100% (Exalted)
  • YAF Developer
2009-12-22T07:14:07Z
Yeah it worked when I "tested" it. But I'm not at the stage in my project to make use of it yet, so will be revisiting soonish. I'll post back with suitable documentation when I get there.

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 🙂 )
cheetahtech
2010-09-08T20:32:35Z
I have to ask, was there ever a fix for the multiple boards solution?

I have a website that will be creating new boards dynamically. One day, it could go up to a million boards for example. I would rather do this programtically instead of a new folder for each board... So the question remains, did this solution ever get run to ground?
doxa
2010-11-04T18:00:19Z
i created multiple boards like:

http://www.dilliduduk.com  board id :1
http://yaf.dilliduduk.com  board id :3

on board 3, there is no users and my admin account hasn't admin permissions. Can you help me? i attached my app.config file.
Running YAF.NET v2.0 Final at: https://blueway.app 
doxa
2010-11-04T18:07:52Z
i created multiple boards like:

http://www.dilliduduk.com  board id :1
http://yaf.dilliduduk.com  board id :3

on board 3, there is no users and my admin account hasn't admin permissions. Can you help me? i attached my app.config file.
Running YAF.NET v2.0 Final at: https://blueway.app 
doxa
2010-11-04T18:19:32Z
<!--
******************************************************************
** Optional AppRoot ** Defaults to: "~/" **

If YAF forum URL is different than the Application Root, specify
it manually here. Do NOT include server information.

e.g. ~/forum
-->

<add key="YAF.AppRoot" value="~/" />

<!--
******************************************************************
** Optional Base Url Mask ** Defaults to: "Current Server" **

Use this key to provide a base url override or mask for your YAF
forum. This is the protocol and server ONLY - add any path information
to your AppRoot.

e.g.: https://mydomain.com 

-->

<add key="YAF.BaseUrlMask" value="" />
<add key="YAF.ForceScriptName" value="default.aspx" />
Running YAF.NET v2.0 Final at: https://blueway.app 
doxa
2010-11-04T18:19:35Z
<!--
******************************************************************
** Optional AppRoot ** Defaults to: "~/" **

If YAF forum URL is different than the Application Root, specify
it manually here. Do NOT include server information.

e.g. ~/forum
-->

<add key="YAF.AppRoot" value="~/" />

<!--
******************************************************************
** Optional Base Url Mask ** Defaults to: "Current Server" **

Use this key to provide a base url override or mask for your YAF
forum. This is the protocol and server ONLY - add any path information
to your AppRoot.

e.g.: https://mydomain.com 

-->

<add key="YAF.BaseUrlMask" value="" />
<add key="YAF.ForceScriptName" value="default.aspx" />
Running YAF.NET v2.0 Final at: https://blueway.app 
vasuwin
2010-12-02T14:32:10Z
Thanks Jaben, for such a wonderful message board first of all.

I am in process of creating Multiple Boards I have followed the instructions as per the topic.

1) This topic specifies to remove BaseUrl Key. I could not find one in app.config, but a BaseUrlMask with empty value is found. I have not removed it.

2) Now I am able to access Hotline with both http://forums.site.com  and http://forums.site.com/hotline  which I want it to be restricted only to http://forums.site.com/hotline , what am I supposed to do for doing this.

In my second forum, there are no users and my admin account hasn't admin permissions. I need to specify mail id separately for second board (send mail from forum).

Thanks in Advance.

Regards,

Vasudev S.
Ioklahoman
2019-12-08T23:12:36Z
Is this (From the beginning of this post) still correct for multiple boards?

If you want more than 1 board, using the same membership system, with a single install:

1. Each board will exist in it's own subdirectory, ~/forum1/ and ~/forum2/.
2. The YAF web.config settings will all be in the website's root web.config EXCEPT for the appsetting keys. Each forum subdirectory will contain it's own web.config and app.config file.
3. Each forum's web.config will look similar to this:
<?xml version="1.0"?>
<configuration>
<appSettings configSource="app.config"/>
</configuration>

4. Each forum's app.config will set it's own BoardID, the Root key to the forum path (~/forum1 or ~/forum2), and will comment out the BaseUrl key.
5. Each forum subdirectory will contain all the folders/files necessary for YAF (controls, pages, resources, etc) except for BIN and APP_CODE, which will exist in the root of the website.
tha_watcha
2019-12-09T01:41:37Z
Sorry but this solution will not work! You can only use one app.config per application.

As I wrote before you need to set the board id via the forum control. And when you put only the aspx page with the forum control in a sub folder, and nothing else then it will work.

I tested this solution and it works as expected!
UserPostedImage

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved