This section is an archive with no posting allowed. The software represented in this forum is no longer supported or updated. If you need help upgrading to a newer version of vBulletin please open a support ticket. You can also post in the section supporting the upgrade version you're planning to use.
We are sorry for any inconvenience this may cause.
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
// GET NUMBER OF NEW POSTS
$newposts = $DB_site->query_first("SELECT count(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline > '$bbuserinfo[lastvisit]'");
// DETERMINE IF "POSTS" IS SINGULAR OR PLURAL
if ($newposts[count] == 1)
{
$newposts[plural] = "";
}
else
{
$newposts[plural] = "s";
}
Then go to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> FORUMHOME
Add this code where ever you want the message to show up:
Code:
<a href="search.php?$session[sessionurl]do=getnew">$newposts[count] new post$newposts[plural]</a>
Last edited by Jake Bunce; Wed 14 Apr '04, 2:04pm.