YAFLogo

Boskone
  • Boskone
  • 100% (Exalted)
  • YAF MVP Topic Starter
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
New files have been posted at my site.

Download here. 


Boskone - A DotNetNuke user.

RDSCC