Palos
  • Posts: 11
  • Joined: 11/08/2010
Greetings everyone...

I have this problem with my header.cs file w/c normally i retrieve from the YAF.Controls src folder when i download the YAF-v1.9.4-FINAL-SRC.zip file. What i did after retrieving it was to paste it inside my forum/controls solution - i don't know if what i did was right.:roll:

All i want to accomplish is to totally remove the Register link in my header page. I've tried to comment this part in my header.cs file and it looks like this..

          //if (!this.PageContext.BoardSettings.DisableRegistrations)
          //{
          //  buildHeader.AppendFormat(
          //    String.Format(
          //      " | <a href=\"{0}\">{1}</a>", 
          //      this.PageContext.BoardSettings.ShowRulesForRegistration
          //        ? YafBuildLink.GetLink(ForumPages.rules)
          //        : (!this.PageContext.BoardSettings.UseSSLToRegister ? YafBuildLink.GetLink(ForumPages.register) : YafBuildLink.GetLink(ForumPages.register).Replace("http:", "https:")), 
          //      this.PageContext.Localization.GetText("TOOLBAR", "REGISTER")));
          //}


But suddenly nothing seems to work out.. I'm just a newbie so i hope anyone could help me accomplish this thing.. Thank you and Have a nice day..

Sponsor
herman_herman
  • Posts: 535
  • Joined: 19/05/2007
No need to do that.Go o admin section and mark "Disable New Registrations:" checkbox under host settings.
Palos
  • Posts: 11
  • Joined: 11/08/2010
Thanks herman_herman :-d

Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

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