Boskone
  •  Boskone
  • 100% (Exalted)
  • YAF MVP Topic Starter
2009-04-25T11:53:23Z
First of all thanks to Jaben and all for their excellent work. YAF runs almost perfectly in a multi-board portal setup with DotNetNuke 🙂

Unfortunatly the BBCode editor does not function as expected.
Images for the BOLD, ITALIC, CODE etc buttons do not show.
When I look at the properties of the images, the path does not include the 'root' folder (desktopmodules/yaf/).

I made one small change to postmessage.ascx to test:
//Message.EnableRTE = PageContext.BoardSettings.AllowRichEdit;
			_forumEditor.StyleSheet = YafBuildLink.ThemeFile("theme.css");
			_forumEditor.BaseDir = YafForumInfo.ForumRoot + "editors";

to
//Message.EnableRTE = PageContext.BoardSettings.AllowRichEdit;
			_forumEditor.StyleSheet = YafBuildLink.ThemeFile("theme.css");
			_forumEditor.BaseDir = YafForumInfo.ForumFileRoot + "editors";

The button images then appeared.
ForumFileRoot needs to be used instead of ForumRoot.

I also believe the javascript and the smileys for the editor are not loaded due to the same reason.

Boskone - A DotNetNuke user.
RDSCC 
Sponsor
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-04-25T12:07:15Z
Hmm... ForumRoot is the URL -- basically "client-side" url to the file.

ForumFileRoot is the server-side url to the file.

ForumRoot *should* work since it's client-side. Did you modify BaseURL?
Boskone
  •  Boskone
  • 100% (Exalted)
  • YAF MVP Topic Starter
2009-04-25T12:35:26Z
Yes, The key in app.settings for BaseURL has to remain '~/' otherwise the normal links get messed up.

Normally a link to a topic would look like mysite.com/default.aspx?tabid=55&g=topics&f=1
If BaseURL is set the link would be mysite.com/desktopmodules/yaf/default.aspx?tabid=55&g=topics&f=1

That default.aspx page does not exist.
Boskone - A DotNetNuke user.
RDSCC 
Boskone
  •  Boskone
  • 100% (Exalted)
  • YAF MVP Topic Starter
2009-04-25T14:37:43Z
Problem solved.
I had to make a change in the yaf_dnn.dll for the URLBuilder interface.
All is good now.

I will post the interface code at my site in a couple of days.
Boskone - A DotNetNuke user.
RDSCC 
Boskone
  •  Boskone
  • 100% (Exalted)
  • YAF MVP Topic Starter
2009-04-26T05:38:59Z
New files have been posted at my site.
Download here. 
Boskone - A DotNetNuke user.
RDSCC 

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