Zero2Cool
2015-02-02T18:50:04Z
Originally Posted by: mauisys 

Hi tha_Watcha,

I have the same results when changing the BaseURLMask setting and restarting the app.

When I add the web.config files to my site root all of my other hyperlinks no longer work. For example, when I click 'MUSIC', I just stay on the Home page.

Thanks,
Dave



Not ignoring that problem, but does the login then work for Facebook?
mauisys
  •  mauisys
  • 67.4% (Friendly)
  • YAF Camper Topic Starter
2015-02-02T18:52:48Z
Good question. I should have tried that...

I'll move some stuff around again and test.

Thanks.
Zero2Cool
2015-02-02T18:54:36Z
Originally Posted by: mauisys 

Good question. I should have tried that...

I'll move some stuff around again and test.

Thanks.



The reason i ask is because I had my stuff working for YAF too, but the URL rewriter ( and extension remover) caused my ASP.NET Content site navbar links to go bogus on me.

mauisys
  •  mauisys
  • 67.4% (Friendly)
  • YAF Camper Topic Starter
2015-02-03T03:33:07Z
Zero2Cool

Thanks a ton for your help!

I tried a bunch different configs and file arrangements with no luck.

At this point I am just going to stick with the Forum without the Facebook/Google/Twitter login feature - even though it's really cool.

Maybe at some point I'll try again.

Go Pack Go!
tha_watcha
2015-02-03T04:53:24Z
You could try to upgrade to the latest version, I made some changes which might fix the issue.
UserPostedImage
mauisys
  •  mauisys
  • 67.4% (Friendly)
  • YAF Camper Topic Starter
2015-02-03T20:24:03Z
I'll give it a try.

Is there installation/upgrade instructions for version 2.2.0?

Thanks.
mauisys
  •  mauisys
  • 67.4% (Friendly)
  • YAF Camper Topic Starter
2015-02-03T23:24:01Z
I installed version 2.2.0 from scratch.

Facebook login is almost working except when I try to login from Facebook I get a warning that the site is trying to collect the user birthdate. Is that a setting on the YAF or my Facebook app? I would like to shut that off so I don't have to submit my Facebook app for review.

Thanks.
mauisys
  •  mauisys
  • 67.4% (Friendly)
  • YAF Camper Topic Starter
2015-02-04T05:35:17Z
I am getting another error now after the re-install when I click on the Test Forum link.

Cannot use a leading .. to exit above the top directory.

This is the URL that is being called: http://www.signaldaddy.c...s/1-Test-Forum?name=Test  Forum

This is what my app.config looks like:
<appSettings>
<add key="YAF.BoardID" value="1" />
<add key="YAF.EnableURLRewriting" value="true" />
<add key="YAF.UrlRewritingFormat" value="advanced" />
<add key="YAF.URLRewritingMode" value="Unicode" />
<add key="YAF.UseSMTPSSL" value="false" />
<add key="YAF.DatabaseObjectQualifier" value="yaf_" />
<add key="YAF.DatabaseOwner" value="dbo" />
<add key="YAF.ConnectionStringName" value="yafnet" />
<add key="YAF.ProviderExceptionXML" value="ProviderExceptions.xml" />
<add key="YAF.FileRoot" value="~/forum" />
<add key="YAF.AppRoot" value="~/forum" />
<add key="YAF.ForceScriptName" value="default.aspx" />
<add key="YAF.ProviderKeyType" value="System.Guid" />
<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" />

<!-- Facebook -->
<add key="YAF.FacebookAPIKey" value="00000000000000" />
<add key="YAF.FacebookSecretKey" value="0000000000000000000000000000" />

<!-- Google+ -->
<add key="YAF.GoogleClientID" value="00000000000000" />
<add key="YAF.GoogleClientSecret" value="0000000000000000000000000000" />

<add key="YAF.RadEditorSkin" value="Black" />
<add key="YAF.UseRadEditorToolsFile" value="true" />
<add key="YAF.RadEditorToolsFile" value="Scripts/radEditor/toolsFile.xml" />
<add key="YAF.BaseUrlMask" value="http://www.signaldaddy.com/" />
</appSettings>


And URLRewite.config
<rewriter>
<!-- Standard URL Rewriting Format -->
<rewrite url="^~/(.+?)?yaf_login?\.aspx\?(.+)?$" to="~/$1Default.aspx?g=login&amp;$2" processing="stop" />
<rewrite url="^~/(.+?)?yaf_info?\.aspx\?i=([0-9]+?)&amp;url\=(.+)$" to="~/$1Default.aspx?g=info&amp;i=$2&amp;url=$3" processing="stop" />
<rewrite url="^~/(.+)?yaf_topics([0-9]+)p([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=topics&amp;f=$2&amp;p=$3&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?yaf_topics([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=topics&amp;f=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?yaf_forum([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=forum&amp;c=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?yaf_postst([0-9]+)find([-a-z]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;find=$3&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?yaf_postst([0-9]+)p([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;p=$3&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?yaf_postst([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?yaf_postsm([0-9]+)find([-a-z]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;m=$2&amp;find=$3&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?yaf_postsm([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;m=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?yaf_profile([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=profile&amp;u=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?yaf_rsstopicft([0-9]+)t([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;t=$3&amp;$9" processing="stop" />
<rewrite url="^~/(.+)?yaf_rsstopicft([0-9]+)f([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;f=$3&amp;$9" processing="stop" />
<rewrite url="^~/(.+)?yaf_rsstopicft([0-9]+)(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))(_([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;$8" processing="stop" />
<rewrite url="^~/(.+)?yaf_([-0-9a-z_]+?)\.aspx\?(.+)?$" to="~/$1Default.aspx?g=$2&amp;$3" processing="stop" />
<rewrite url="^~/(.+)?yaf_([-0-9a-z_]+?)\.aspx$" to="~/$1Default.aspx?g=$2" processing="stop" />

<!-- Advanced URL Rewriting Format -->
<rewrite url="^~/(.+?)?info?\?i=([0-9]+?)&amp;url\=(.+)$" to="~/$1Default.aspx?g=info&amp;i=$2&amp;url=$3" processing="stop" />
<rewrite url="^~/(.+)?topics/([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(/page([0-9]+))(\?(.+))?$" to="~/$1Default.aspx?g=topics&amp;f=$2&amp;p=$6&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?topics/([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=topics&amp;f=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?category/([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=forum&amp;c=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?posts/t([0-9]+)findlastpost-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;find=lastpost&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?posts/t([0-9]+)findunread-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;find=unread&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?posts/t([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(/page([0-9]+))(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;p=$6&amp;$8" processing="stop" />
<rewrite url="^~/(.+)?posts/t([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;t=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?posts/m([0-9]+)findlastpost-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;m=$2&amp;find=lastpost&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?posts/m([0-9]+)findunread-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;m=$2&amp;find=unread&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?posts/m([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=posts&amp;m=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?profile/([0-9]+)-(([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+))?(\?(.+))?$" to="~/$1Default.aspx?g=profile&amp;u=$2&amp;$6" processing="stop" />
<rewrite url="^~/(.+)?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="~/$1Default.aspx?g=admin_$2_$3&amp;$5" processing="stop" />
<rewrite url="^~/(.+)?admin/([\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}-]+)?(\?(.+))?$" to="~/$1Default.aspx?g=admin_$2&amp;$4" processing="stop" />
<rewrite url="^~/(.+)?rsstopic/ft([0-9]+)t([0-9]+)-(([\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="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;t=$3&amp;$9" processing="stop" />
<rewrite url="^~/(.+)?rsstopic/ft([0-9]+)f([0-9]+)-(([\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="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;f=$3&amp;$9" processing="stop" />
<rewrite url="^~/(.+)?rsstopic/ft([0-9]+)-(([\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="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;pg=$3&amp;$7" processing="stop" />
<rewrite url="^~/(.+)?rsstopic/ft([0-9]+)-(([\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="~/$1Default.aspx?g=rsstopic&amp;ft=$2&amp;pg=$3&amp;$7" processing="stop" />
<rewrite url="^~/(.+?)?login(\?(.+))?$" to="~/$1Default.aspx?g=login&amp;$3" processing="stop" />
<if url="^((?!\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js|install|error|auth\.aspx|default\.aspx|popup\.aspx|advanced\.aspx|digest\.aspx).)*$">
<rewrite url="^~/forum(.+)?\?(.+)?$" to="~/forum/Default.aspx?g=$1&amp;$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>


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