MyBB Community Forums

Full Version: New Post Notification in Header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking for a mod that can do this:

when there are new posts that he user hasn't seen, display an image (like a small star) in the header, and bold a link for "new posts" right next to it in the header.

Think of it like facebook notifications, only for new posts. I already have a link to "new posts" in the header, I would just like the text to bold and a start to appear next to it when there are in fact new posts for the person to see.

My url is rev*lutionb*x.*rg. *="o".

Willing to compensate, and shouldn't be too difficult to code.

Thanks,
Dave
ACP > templates and themes > templates > your theme templates > options > expand templates > Header Templates > Header > options > edit template > you will find something like this
Quote:<li><a href="http://www.internetismygame.com">Home</a></li>
<li><a href="{$mybb->settings['bburl']}">Forums</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php">Members</a></li>
simeply add this
Quote:<li><img src="images/star.gif" /><a href="http://youtforumname.com/search.php?action=getnew">New Posts</a>
change the url with your forum url
regards,
illusion
Thanks, I already have this, but I'm looking for a simple if/then statement, where:

If new posts exist

Then display star and bold text

If no new posts exist

Then don't display star and bold text
(2012-07-24, 04:40 PM)esoteric10 Wrote: [ -> ]Thanks, I already have this, but I'm looking for a simple if/then statement, where:

If new posts exist

Then display star and bold text

If no new posts exist

Then don't display star and bold text
not sure if this is possible
you might need a plugin for this...
You will need a plugin for this.
I use the unread posts plugin from the mods database. I combine it with Template Conditionals to make an if else to show in a user panel if the number of unread posts >= 1