shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-17T12:31:24Z
I have an custom page... mypage.aspx... i need to check if the user is registered in my forums or not..
Sponsor
tha_watcha
2013-10-17T12:54:45Z
Originally Posted by: shanker 

I have an custom page... mypage.aspx... i need to check if the user is registered in my forums or not..




// Check if user is logged in
            if (HttpContext.Current.User.Identity.IsAuthenticated)
            {
               // do something when user is logged in
            }


UserPostedImage
shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-17T13:11:34Z
Who thanks alot...

I have a new problem now..

/yaf_login.aspx?returnurl=%2fdownload.aspx this is my link.. but after login in.. there user is sent to default page...
i want to redirect to download.aspx
tha_watcha
2013-10-18T10:24:54Z
Originally Posted by: shanker 

Who thanks alot...

I have a new problem now..

/yaf_login.aspx?returnurl=%2fdownload.aspx this is my link.. but after login in.. there user is sent to default page...
i want to redirect to download.aspx




Thats a bug in the current urlrewriter.config. Open this config file in a editor and replace the line...

<rewrite url="^~/(.+?)?yaf_login?\.aspx(\?(.+))?$" to="~/$1Default.aspx?g=login&amp;$5" processing="stop" />


with this one

<rewrite url="^~/(.+?)?yaf_login?\.aspx\?(.+)?$" to="~/$1Default.aspx?g=login&amp;$2" processing="stop" />


UserPostedImage
shanker
  •  shanker
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2013-10-18T11:15:37Z
Awesome... You rock...

Another Question..
Can you tell me a way i can place the whole forum as a custom control inside my masterpage..
what things i should take care of....
I am interested in integrating h yaf inside my website in .net

Regard's
Shanker Paudel

Thanks Alot Again
tha_watcha
2013-10-18T11:33:16Z
Originally Posted by: shanker 

Awesome... You rock...

Another Question..
Can you tell me a way i can place the whole forum as a custom control inside my masterpage..
what things i should take care of....
I am interested in integrating h yaf inside my website in .net

Regard's
Shanker Paudel

Thanks Alot Again



Technically you can place the forum control anywhere you want. The only thing you might need to adjust are the app.config.

For example if you put the forum itself in a sub folder you need to set

<add key="YAF.FileRoot" value="~/forum"/>
<add key="YAF.AppRoot" value="~/forum" />

In the App.config

You could also check the sample application (with yaf integrated) which is available here...

https://github.com/YAFNE...ting-ASP.NET-Application 


UserPostedImage

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