Version: 1.00, by Gary King
Developer Last Online: Jun 2020
Version: 3.0.0
Rating:
Released: 01-02-2004
Last Update: Never
Installs: 172
No support by the author.
PLEASE CLICK ON THE INSTALL BUTTON IF YOU INSTALLED THIS! THANKS!
What does this hack do?
This hack basically shows the number of new threads and posts since your last visit, in the navbar (under your nick.) Check out the attached screenshot for more information
Installation
This is a pretty simple hack to install.
Instructions are as follows:
FILE MODIFICATIONS
global.php
TEMPLATE MODIFICATIONS
navbar
PHRASES
navbar_sincelastvisit
OPEN global.php AND FIND
PHP Code:
echo "End call of global.php: $aftertime\n";
echo "\n<hr />\n\n";
}
(NOTE: If you want old threads with new posts to count as a new thread, then skip this next step)
UNDER IT, ADD
PHP Code:
# SINCE YOUR LAST VISIT
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM ".TABLE_PREFIX."thread WHERE lastpost > '".$bbuserinfo['lastvisit']."'");
$getnewpost=$DB_site->query_first("SELECT COUNT(*) AS posts FROM ".TABLE_PREFIX."post WHERE dateline > '".$bbuserinfo['lastvisit']."'");
(NOTE: If you did the step above, then skip this next step)
UNDER IT, ADD
PHP Code:
# SINCE YOUR LAST VISIT
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM ".TABLE_PREFIX."thread WHERE dateline > '".$bbuserinfo['lastvisit']."'");
$getnewpost=$DB_site->query_first("SELECT COUNT(*) AS posts FROM ".TABLE_PREFIX."post WHERE dateline > '".$bbuserinfo['lastvisit']."'");
Wow that is really messed up, I'm not too sure on what the problem is though. They look like they have no relation with any of the forum stats; anyhow, maybe something to do with your vB Trader? Because this hack relies on the thread and post tables, not sure if that has anything to do with the hacks that you installed. Anyhow you're the only one reporting this problem as of now.
The problem with the hack listing so many posts and threads might have something to do with the fact that it seems to continually add threads and posts made since you came back, in other words it shows threads and posts made while you were gone plus continues to add whatever is going on while you're currently there until you leave or mark all forums read.
At least that's what it does for me...
The problem with the hack listing so many posts and threads might have something to do with the fact that it seems to continually add threads and posts made since you came back, in other words it shows threads and posts made while you were gone plus continues to add whatever is going on while you're currently there until you leave or mark all forums read.
At least that's what it does for me...
Yep that's how the built-in new post feature works in vBulletin (when you click on 'Get New Posts').
It will reset once it passes the cookie timeout setting you chose in your admin cp.
Also, for that vB3 Gold problem with strange characters, works fine for me on vBulletin 3
That's kinda odd, but it does make sense. Maybe I'll add something to my FAQ about it because people are already getting confused.
It's funny how every new thread also counts as one new post, it's gonna take me awhile to get used to finding logical explanations, seems like such a rare occurence with other software. :laugh:
That's kinda odd, but it does make sense. Maybe I'll add something to my FAQ about it because people are already getting confused.
It's funny how every new thread also counts as one new post, it's gonna take me awhile to get used to finding logical explanations, seems like such a rare occurence with other software. :laugh:
Well technically, new threads ARE new posts as well