Some help on YAF - MP integration. The case of single YAF board and single MojoPortal site.
Let's begin with configs. Of cause it can be made differently but it's the most intuitive way for MP users.All the
instructions are valid for YAF svn v.4799 and can work in 1.9.5.5 RTW and 1.9.5.6. It's recommended to use the
unstable version but with bug fixes.
Part1.Configs.
1.1. You should merge YAF app.config to MP user.config.
user.config.
<?xml version="1.0" encoding="utf-8"?>
<appSettings>
// Enter mypass - it allows to install | update YAF Module
<add key="YAF.ConfigPassword" value="mypass" />
// If you use 1 board you can set it here/
<add key="YAF.BoardID" value="1" />
// Don't allow url rewriting
<add key="YAF.EnableURLRewriting" value="false" />
// No matter as URL rewriting is disabled
<add key="YAF.URLRewritingMode" value="Translit" />
// To send YAF notifications by a secure email connection only, else should be disabled
<add key="YAF.UseSMTPSSL" value="false" />
// THis is a prefix for YAF tables
<add key="YAF.DatabaseObjectQualifier" value="yaf_" />
// Obvious
<add key="YAF.DatabaseOwner" value="dbo" />
// This string name should be the same as in merged web.config. YAF use a different connection.
<add key="YAF.ConnectionStringName" value="yafnet" />
// No matter for integration
<add key="YAF.ProviderExceptionXML" value="ProviderExceptions.xml" />
// Set it to the folder name where you put YAF folder in the case of single YAF board
<add key="YAF.BoardRoot" value="~/YAF" />
// Set it to false in the first iteration or comment it
<add key="YAF.MultiBoardFolders" value="false" />
//
<add key="YAF.FileRoot" value="~/YAF"/>
// Important! MojoPortal loads JQuery stuff, so disable YAF JQueryLOading and verify that the version is in sync
with MP version just in case.
<add key="YAF.JQueryUIFile" value="false" />
<add key="YAF.DisableJQuery" value="true" />
<add key="YAF.JQueryUIFile" value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js" />
<add key="YAF.JQueryUILangFile" value="http://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery-ui-i18n.min.js"
// see above
<add key="YAF.AppRoot" value="~/YAF" />
// see YAF comments
<add key="YAF.BaseUrlMask" value="" />
<add key="YAF.ForceScriptName" value="default.aspx" />
<!--
******************************************************************
** Membership Provider Key Type ** Defaults to: "System.Guid" **
The type that the membership provider expects the ProviderKey
to be. Most providers use expect System.Guid.
Valid values include:
System.Guid (default)
System.String (max 64 character length)
System.Int32
System.Int64
-->
<add key="YAF.ProviderKeyType" value="System.Guid" />
// don't enable it - it hides forum toolbar and use if you have customs controls only
<add key="YAF.ShowToolBar" value="false" />
// Important! Disable it.
<add key="YAF.AllowLoginAndLogoff" value="false" />
// If you experiencing timouts
<add key="YAF.SqlCommandTimeout" value="99999" />
-->
</appSettings>
1.2. Merge mail.config with MP web.config or make a file reference. Keep in mind - it's better to put all configs
into MP root folder.
1.3 Merge YAF web.config to MP web.config section by section, putting all YAF entries after MP entries.
1.3.1.Comment YAF URLRewriting related sections.
1.3.2.Don't forget to add a separate YAF connection string to web.config.
<connectionStrings>
<!--
<add name="yafnet" connectionString=""
/>
-->
<add name="yafnet" connectionString="yourconnection string" />
</connectionStrings>
<system.web>
1.3.3. YAF uses XTML Transitional - it's overriden in the control but just in case...
1.3.4. Use UTF-8 with YAF if possible.
1.3.5. Remove configs from YAF folder after this.
To be continued...