![]() |
New Posts & Threads x2
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:
PHP Code:
Add: PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Statistics screenshot: http://64.5.56.7/images/stats.jpg Navbar screenshot: http://64.5.56.7/images/navbar.jpg Enjoy! :cool: Update 12:53 AM EST. - Moved uneeded global query to index.php. |
Funnily enough, just made the same modification myself because it didn't have that info and didn't want the welcome panel hack. I'm sure others would find it useful. Good job.
|
You notice that this will add two extra queries on every single page?
|
Yep and those 2 more queries hurt. If you got a populated forum this hack will lag it to death.
Nice idea but it results into a too heavy load :/ |
When I get some time I'll move the second query.
EDIT - I just moved the index query to index.php, so now there is only one global query added, I'll try get rid of the index.php query tomorrow after some sleep. Nite' people! :squareeyed: |
Good work!
|
Thanks man. :cool:
|
any other version?
|
Only use the new threads function and thats works great :cool:
|
Nice hack, is there a way to exclude private forums from the search?
Or better still, base them on each users priviledges (Probably server intensive and not worth the bother ;)) Thanks for the hack anyway. |
All times are GMT. The time now is 02:24 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:
|