YAFLogo

yemulss
  • yemulss
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
11 years ago
Hello,

YetAnotherForum 1.5.9, Visual Studio 2010

I am trying to customize YAF 1.5.9, when user browses subdomain urls like sub1.domainname.com , I will like to redirect to
domainname.com/forum_page.aspx?g=topics&f=14

where 14 is the forum id for subdomain sub1

2. Doing so , I am facing a problem, when user needs to log-in, I need forum ID before hand. So before displaying log in page, I need to set forum ID in a session variable so I can use further.

I found that , When I click on category or Forum list the generated URl is something similar below

Before clicked url- http://localhost:1784/forum_page.aspx?g=forum

After clicked url- http://localhost:1784/forum_page.aspx?g=topics&f=14

I want forumid i.e. f=14 is to store session variable.

I tried to explore code of forum_page.aspx , this page is there in root of YAF source code files.

I was expecting code that handles topics and forum ID, but could not understand where it is written. If I can get such code, I can write my additional code to set forumID to a session variable and use it further.

Thanks for looking into my query, appreciate any help you can.

Regards
Sham
Sponsor

YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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