![]() |
Number of new posts in navbar?
I'm sure that this is pretty simple for some of you and I have messed with it a bit and can't seem to get it to work. What I'm looking to do is add the number of new posts next to the "New Posts" link in the nav bar, just so before they click the new posts they have an idea of how many new posts there are. I saw this on another site and I think that it's a good idea.
I have seen Garys "hack" but it's really not what I'm looking for right now... Thanks in advance for your help |
Here you go, this query is compliments of vBadvanced.
In your vbroot/index.php find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
you should've done this with the php_include template ;)
|
Quote:
|
add to your phpinclude_start
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
Thats cool even though its only one edit. But its conveinent.
|
Thank you guys very much, I will try this...
|
Quote:
|
All I get is a set of parenthesis without a number: ()
|
Quote:
|
yep, I followed sabertooth to the letter
|
I know this is old but how would I get this to work with vBadvanced? It doesn't show a zero on the portal, just ()
|
Quote:
PHP Code:
|
I think now days you would put the code in a plugin - maybe at the global_start hook location.
|
Help make it into 4.1.7
|
All times are GMT. The time now is 03:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|