Thanks for the reply. I am running it as one application with all of your source files in my main application. That would be the only way I could have a universal login for the site, or is there another way?
Regardless, I have two settings already in the app.config file.
<appSettings>
<add key="YAF.GDPRControllerAddress" value="" />
<add key="YAF.BoardID" value="1" />
<add key="YAF.EnableURLRewriting" value="true" />
<add key="YAF.URLRewritingMode" value="Translit" />
<add key="YAF.UseSMTPSSL" value="false" />
<add key="YAF.DatabaseObjectQualifier" value="yaf_" />
<add key="YAF.DatabaseOwner" value="dbo" />
<add key="YAF.AppRoot" value="~/forum" />
<add key="YAF.FileRoot" value="~/forum" />
<add key="YAF.MobileUserAgents" value="iphone,ipad,midp,windows ce,windows phone,android,blackberry,opera mini,mobile,palm,portable,webos,htc,armv,lg/u,elaine,nokia,playstation,symbian,sonyericsson,mmp,hd_mini" />
<add key="YAF.ConfigPassword" value="password" />
<add key="YAF.ConnectionStringName" value="DefaultConnection" />
</appSettings>
I was able to follow your version 2 instructions for integration here and that got it mostly working. First, the main thing that gave me trouble was the App_GlobalResources. I had to make sure they were Embedded Resources and also found no way to compile without changing the namespace "YAF.App_GlobalResources" to be under my main app's namespace "LD.forum.App_GlobalResources".
Secondly, I had to modify the UrlRewriter.config as such:
<rewriter>
<!-- Advanced URL Rewriting Format -->
<rewrite url="^~/forum/(.+?)?info?\?i=([0-9]+?)&url\=(.+)$" to="~/forum/$1Default.aspx?g=info&i=$2&url=$3" processing="stop" />
<rewrite url="^~/forum/(.+)?topics/([0-9]+)-((.+))?(/page([0-9]+))(\?(.+))?$" to="~/forum/$1Default.aspx?g=topics&f=$2&p=$6&$7" processing="stop" />
<rewrite url="^~/forum/(.+)?topics/([0-9]+)-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=topics&f=$2&$6" processing="stop" />
<rewrite url="^~/forum/(.+)?category/([0-9]+)-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=forum&c=$2&$6" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/t([0-9]+)findlastpost-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&t=$2&find=lastpost&$7" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/t([0-9]+)findunread-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&t=$2&find=unread&$7" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/t([0-9]+)-((.+))?(/page([0-9]+))(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&t=$2&p=$6&$8" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/t([0-9]+)-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&t=$2&$6" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/m([0-9]+)findlastpost-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&m=$2&find=lastpost&$7" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/m([0-9]+)findunread-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&m=$2&find=unread&$7" processing="stop" />
<rewrite url="^~/forum/(.+)?posts/m([0-9]+)-((.+))?(\?(.+))?$" to="~/forum/$1Default.aspx?g=posts&m=$2&$6" processing="stop" />
<rewrite url="^~/forum/(.+)?userprofile/([0-9]+)-((.+))?$" to="~/forum/$1Default.aspx?g=userprofile&u=$2&$6" processing="stop" />
<rewrite url="^~/forum/(.+)?admin/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=admin_$2_$3&$5" processing="stop" />
<rewrite url="^~/forum/(.+)?admin/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=admin_$2&$4" processing="stop" />
<rewrite url="^~/forum/(.+)?moderate/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=moderate_$2_$3&$5" processing="stop" />
<rewrite url="^~/forum/(.+)?moderate/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=moderate_$2&$4" processing="stop" />
<rewrite url="^~/forum/(.+)?profile/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=profile_$2_$3&$5" processing="stop" />
<rewrite url="^~/forum/(.+)?profile/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=profile_$2&$4" processing="stop" />
<rewrite url="^~/forum/(.+)?account/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=account_$2_$3&$5" processing="stop" />
<rewrite url="^~/forum/(.+)?account/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/forum/$1Default.aspx?g=account_$2&$4" processing="stop" />
<rewrite url="^~/forum/(.+)?rsstopic/type([0-9]+)feed([0-9]+)f([0-9]+)-((.+))?$" to="~/forum/$1Default.aspx?g=rsstopic&type=$2&feed=$3&f=$4" processing="stop" />
<rewrite url="^~/forum/(.+)?rsstopic/type([0-9]+)feed([0-9]+)t([0-9]+)-((.+))?$" to="~/forum/$1Default.aspx?g=rsstopic&type=$2&feed=$3&t=$4" processing="stop" />
<rewrite url="^~/forum/(.+)?rsstopic/type([0-9]+)feed([0-9]+)-((.+))?$" to="~/forum/$1Default.aspx?g=rsstopic&type=$2&feed=$3" processing="stop" />
<if url="^((?!signin-|sitemap\.xml|\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.svg|\.ttf|\.woff|\.woff2|\.pdf|\.css|\.js|\/install|error\.aspx|default\.aspx|digest\.aspx|ckfinder|api).)*$">
<rewrite url="^~/forum/(.+)?\?(.+)?$" to="~/forum/Default.aspx?g=$1&$2" processing="stop" />
<rewrite url="^~/forum/(.+)?\.aspx$" to="~/forum/Default.aspx?g=$1" processing="stop" />
<rewrite url="^~/forum/(.+)?$" to="~/forum/Default.aspx?g=$1" processing="stop" />
</if>
</rewriter>
Only then was I able to compile and complete the forum/install/default.aspx. Now the problem is getting to the root of the forum at /forum/default.aspx.
Side note, I did successfully get 2.3.7 to work completely in my application before realizing version 3 was what I needed to have a universal login.
Edited by user
4 years ago |
Reason: Not specified