•  coolspy
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter

Actually i want to disable the login feature of the YAF.
This forum is going to run under other website and i want to use the login credentials given by the user while he logs in to the main site.
I dont want user to enter a new set of credentials for forum alone.
Basically i dont want to have two logins here.

My main website is using Active directory for logging users in.

I am an newbie to .NET, i am not able to make out what changes i need to do in the files.

Any help would be greatly appreciated.


Unfortunately i dont think there is an inbuilt option at the moment to actually disable the login feature.

However, because i have had to heavily integrate the forum system into an existing website i have found the following things seem to work.

1. Edit the language file you are using and replace <Resource tag="LOGIN">Log In</Resource> with <Resource tag="LOGIN"></Resource>. This will hide the login text, thus users wont have anything to click on.

2. Edit pages/ForumPage.cs and comment out the following lines.

if ( TransPage != "LOGIN" )
						header.AppendFormat( String.Format( " | <a href=\"{0}\">{1}</a>", Forum.GetLink( Pages.login, "ReturnUrl={0}", Server.UrlEncode( Utils.GetSafeRawUrl() ) ), GetText( "TOOLBAR", "LOGIN" ) ) );

Hope this information helps.

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