Woohoo!!! Thank you very much for this post Lac, my multiboards are working well now!
The BaseUrl now retrieves its value using the WebConfigurationManager from a dictionary cache using the HttpContext.Current.Request.FilePath as the key. I'm pretty sure all the existing functionality will remain the same, but going forward those who want to use multiboards from a single installation can do it like this:
Using Multiple Boards With A Single Installation1. Install YAF as usual where-ever you choose, let's just say ~/forum1/ for simplicity.
2. For each new board, copy the default.aspx page to a new directory such as ~/forum2/.
3. Change the BoardID of the YAF:Forum control.
4. Add a web.config file to that directory (~/forum2/) and specify the appropriate BaseUrl key like this:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="YAF.BaseUrl" value="~/forum2" />
</appSettings>
</configuration>
I've committed the changes, Revision 2277 and 2278, and I've pushed it out to my production environment. So far so good!
Edited by user
14 years ago
|
Reason: New Revision
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 🙂 )