New Posts & Threads x2
This modification is in the archives.
All this does is simply retrieve the amount of new posts, so I made it add the count in Navbar, and in Statistics down the bottom.
In the navbar it is global, you can see it next to "New Posts". I also made it so if there is more then one post it add's the "S" at the end, note the "[snos]". It is also found down the bottom of your page in "Statistics". Hope you like it. There is also a "New threads" feature in the statistics part, where it shows new threads. Index.php find: PHP Code:
// ### BOARD STATISTICS #################################################
PHP Code:
//
Add: PHP Code:
$newposts = $DB_site->query_first("SELECT count(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline > '$bbuserinfo[lastvisit]'");
Find: PHP Code:
<a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a>
PHP Code:
<a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav] ($newposts[count])</a>
Find: PHP Code:
<div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>
PHP Code:
<a href="search.php?$session[sessionurl]do=getnew">$newposts[count]</a> New post$newposts[snos] within <a href="search.php?$session[sessionurl]do=getnew">$newthreads[count]</a> thread$newthreads[snos] since you last visited.
Statistics screenshot: http://64.5.56.7/images/stats.jpg Navbar screenshot: http://64.5.56.7/images/navbar.jpg Enjoy! Update 12:53 AM EST. - Moved uneeded global query to index.php. Download No files for download. |
Similar Mods
Add-On Releases Throttle Posts/Threads (restrict number of posts/threads by usergroup/forum by time) | vBulletin 3.7 Add-ons |
ViewPosts -- View unanswered threads, threads you've started, you're own posts etc. | vBulletin 3.0 Full Releases |