YAFLogo

McHine
  • McHine
  • 64.6% (Friendly)
  • YAF Forumling Topic Starter YAF Version: 4.0.0 RC4
a month ago
Hi

The title should give most of it away:

so i'd like to get code to show the number of unread private messages, and then which page should i link it to? 

side bar for the user browsing the rest of the site.

c# .net 8 etc etc btw

probably less than a week before first looks! 

thanks again, the prompt and accurate help is legendary.

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
a month ago
​BoardContext.Current.UnreadPrivate

Gets you the number of unread pms of the current user. and you need link to the MyMessages page.

​ BoardContext.Current.Get<LinkBuilder>().GetLink(ForumPages.MyMessages);