Back to vBulletin 3.0 Add-Ons

New Posts & Threads x2
Mod Version: 1.00, by gamesxposed

This modification is in the archives.
vB Version: 3.0.1 Rating: (1 vote - 5.00 average) Installs: 5
Released: 11 Jun 2004 Last Update: Never Downloads: 1
Not Supported  

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 ################################################# 
After add:
PHP Code:
//
//START NEW THREADS AND POSTS
//
$newthreads $DB_site->query_first("SELECT count(*) AS count FROM " TABLE_PREFIX "thread WHERE lastpost > 

'
$bbuserinfo[lastvisit]'");


if (
$newthreads[count] == 1)
{
    
$newthreads[snos] = "";
}
else
{
    
$newthreads[snos] = "s";
}
//
//END NEW THREADS AND POSTS
// 
Style manager >> Your style >> PHP include templates >> phpinclude_start

Add:
PHP Code:
$newposts $DB_site->query_first("SELECT count(*) AS count FROM " TABLE_PREFIX "post WHERE dateline > '$bbuserinfo[lastvisit]'"); 

if (
$newposts[count] == 1

    
$newposts[snos] = ""

else 

    
$newposts[snos] = "s"

Style manager >> Your style >> Navigation / Breadcrumb Templates > navbar

Find:
PHP Code:
<a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a
Replace with:
PHP Code:
<a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav] ($newposts[count])</a
Style manager >> Your style >> Forum home templates > FORUMHOME

Find:
PHP Code:
<div>$vbphrase[threads]: $totalthreads$vbphrase[posts]: $totalposts$vbphrase[members]: $numbermembers</div>
            <
div><phrase 1="member.php?$session[sessionurl]u=$newuserid2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div
After add:
PHP Code:
<a href="search.php?$session[sessionurl]do=getnew">$newposts[count]</a> New post$newposts[snoswithin <a href="search.php?$session[sessionurl]do=getnew">$newthreads[count]</athread$newthreads[snossince you last visited
Should be all working, any questions feel free to ask. I will provide support, also any bugs found, or any ideas for improvment please don't hesitate to share your comment.

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

vblts.ru supports vBulletin®, 2022-2024