MyBB Community Forums

Full Version: Title tag modify
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a plugin that modifies the title for unread private messages? By title i mean <title> tag. The browser tab. Kind of like Facebook, and how they do it. IF you get an unread message, you will see 
Quote:(1) Facebook~
Well it would be cool if when you get a forum PM that it would change the title to
Quote:(1) Your Forum Title
By standard MyBB doesn't make AJAX calls to check for new private messages so if you're looking at live updating the title you would firstly need to make AJAX call every X amount of seconds to check whether you have new private messages and then use javascript to update your page title.

If you want it to display on the title but not live you would need to write a plugin to count the number of rows where you've received a private message that is "unread" and add the count to the template.
You can do this if you change the headerinclude template.
Where it constantly changes based onthe number of unread PM's per user?
(2016-09-22, 12:46 AM)metulburr Wrote: [ -> ]Where it constantly changes based onthe number of unread PM's per user?

Refer to my previous post you will need to do a count of unread PM's and store the count var in the template.