YAFLogo

kcril
  • kcril
  • 52.6% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 2.3.0.2
9 months ago
i don't want yafheader menu to appear on login page, how can i remove top menu
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
9 months ago
It should work if you modify the visibilitity in the Forum control.

In the Project YAF.Web Forum.cs change.,.

this.currentForumPage.ForumHeader.Visible = this.currentForumPage.ShowToolBar;

to..

this.currentForumPage.ForumHeader.Visible = this.currentForumPage.ShowToolBar && BoardContext.Current.ForumPageType is not ForumPages.Account_Login;
kcril
  • kcril
  • 52.6% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 2.3.0.2
9 months ago
Thank you for your answer but I am getting these errors:

Error CS0117 'ForumPages' does not contain an 'Account_Login' definition

Error CS0103 Name 'BoardContext' does not exist in current context

Error CS8370 is not available in c# 7.3. please use language version 9.0

 Adsız.png You have insufficient rights to see the content.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
9 months ago
Then i guess it would be...

this.currentForumPage.ForumHeader.Visible = this.currentForumPage.ShowToolBar && YafContext.Current.ForumPageType != ForumPages.login;
kcril
  • kcril
  • 52.6% (Neutral)
  • YAF Forumling Topic Starter YAF Version: 2.3.0.2
9 months ago
thank you for helping