YAFLogo

Wauna
  • Wauna
  • 50.6% (Neutral)
  • YAF Forumling Topic Starter
2008-08-17T15:50:05Z
Greetings everyone,

We have integrated YAF into our existing website. It worked really slick! The last piece we need to figure out is how to remove the login/logout link in the forum header. Our website (www.mxpreview.com ) is handling forum login by creating the YAF cookie when the user logs into our site. We'd like to handle authentication through our site. Is there any way to just remove the Login & Logout links from the forum header?

Thanks in advance,

Waunaplay

Sponsor
Nico
  • Nico
  • 98% (Exalted)
  • YAF Commander
2008-08-17T19:06:55Z
Hi Wauna,

If you just want the 'Login' or 'Logout' (maybe also 'Register') tags to disappear from the forum header, you have to enter the source code.

The forum header is already compiled in 'YAF.Controls.dll' that you have in your 'bin' directory. The only solution to change it is to modify the code and build a new .dll.

You need to have Visual Studio to be able to do that (a version adapted to your YAF version).

You so have to:

- download the 'SRC' (source code) version of your YAF, if you just have the 'BIN'.

- open then 'YAF.Controls/Header.cs'.

- delete or modify the lines concerning LOGIN and REGISTER so that they don't appear (maybe some 'hidden' value somewhere could be enough?)

- Then you have to build a new solution (new .dll(s)) thanks to Visual Studio and then put them into your 'bin' folder.

I haven't done it myself and maybe there are some following consequences to test, but I think that there is the way.

Good luck. Tell me if you have a problem.:)

balochbaahand
2008-12-09T21:15:33Z
i am using YAF-v1.9.1.8-FINAL-SRC , i dont see any controls.dll and i cannot find the register , or login in the hearder.cs can anyone help me in removing them..
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
2008-12-10T03:06:05Z
Look in pages/Forumpages.cs


test
vnuk
  • vnuk
  • 50.6% (Neutral)
  • YAF Forumling
2009-11-25T12:55:23Z
Version v1.9.4-BETA3 has a setting that goes into app.config