Posted by: kcril - Tuesday, 15 February 2022 14:21:24 |
---|
i don't want yafheader menu to appear on login page, how can i remove top menu |
Posted by: tha_watcha - Tuesday, 15 February 2022 14:48:51 |
---|
It should work if you modify the visibilitity in the Forum control. In the Project YAF.Web Forum.cs change.,. [code=csharp]this.currentForumPage.ForumHeader.Visible = this.currentForumPage.ShowToolBar;[/code] to.. [code=csharp]this.currentForumPage.ForumHeader.Visible = this.currentForumPage.ShowToolBar && BoardContext.Current.ForumPageType is not ForumPages.Account_Login;[/code] |
Posted by: kcril - Tuesday, 15 February 2022 14:57:06 |
---|
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 [attach]2228[/attach] |
Posted by: tha_watcha - Wednesday, 16 February 2022 01:32:58 |
---|
Then i guess it would be... [code=csharp]this.currentForumPage.ForumHeader.Visible = this.currentForumPage.ShowToolBar && YafContext.Current.ForumPageType != ForumPages.login;[/code] |
Posted by: kcril - Wednesday, 16 February 2022 07:20:37 |
---|
thank you for helping |