YAFLogo

brrrdog
  • brrrdog
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
I started by embedding the 1.9.3 beta into my site. Heres the details:

1.) The YAF code was under the subdirectory "forum"

2.) the "root" web.config var was set to "~/forum"

3.) the "BaseUrl" web.config var was set to "~/"

4.) the yaf:forum control was embedded in the file "~/Forum.aspx"

This worked fine.

After upgrading to 1.9.3 rc2, the editors didn't work. The most visible symptom was none of the buttons were loading. Looking at their paths you could see that they were referencing ~/editors/yafEditors instead of ~/forum/editors/yafEditors. Changing the BaseUrl path to "~/forum" fixed that problem but broke all other links in the site as they were now ~/forum/forum.aspx.

Comparing the beta code to rc2 it looks like YafForumInfo.ForumRoot was changed to reference the "BaseUrl" config rather than the "root" config.

My fix for now was to move my Forum.aspx into the forum directory and change "BaseUrl" to that same directory. While this isn't a big deal, my preference is to keep my code separate from yours :wink:. Is there a new config var that I'm supposed to use somewhere or is this a bug? If the latter, maybe the BaseDir property on the editors should be set using the new YafForumInfo.ForumFileRoot?

Let me know how I can help on this. It would be the least I could do for you for providing such a great piece of software 🙂.

B

Sponsor
taicho
  • taicho
  • 62.6% (Friendly)
  • YAF Forumling
16 years ago
This sounds worthy of a sticky...

Or at least some kind of response...

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
16 years ago
Thanks for the detailed post. Yes, it's a bug... Editors should probably be based on ForumFileRoot. I'll look into fixing
brrrdog
  • brrrdog
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Thank you Jaben.