![]() |
phpinclude_start trouble - Forum Stats in Header
Hi
There used to be smart little Forum stats hack which enabled me to show some important forum stats like no. of members, posts, threads etc in the header template to be shown on each forum page. In vB3.0.7, i could do it simply by putting the following code in the phpinclude_start template and then call the variables in header template. Now with the advent of vB3.5, phpinclude_start has been removed and global_start hook has taken its place. I tried to create a plugin by using global_start hook and putting exactly the same code (below) in that plugin but as expected it resulted in an error. How can use the plugin system to show the information in the header template? I believe some minor changes in the following code would do the trick but my expertise in PHP are pretty novice. Please guide me. Thanks. Code:
// forum stats start |
First of all, this has changed:
$DB_site Fix those and that will definately help. ;) |
Try
PHP Code:
- You can get rid of 2 Queries by using Datastore Item userstats (but this requires a File Edit) - It might be possible to do the online stuff in 1 query |
woohooo!! it works flawlessly !! Thanks.
|
All times are GMT. The time now is 09:01 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:
|