![]() |
How exactly can I display the number of registered members, threads, posts, and online users in my forum header?
|
This is going to involve modifying global.php or functions.php, I am not sure which one. Basicly the header template is parsed before almost every other template, so basicly your going to have to move those functios/variables around. I am unfamiliar with doing this, but hopefully some of the smarter members here will be able to help :D
|
Up! :noid:
|
You have to put the code somewhere before line 278 in global.php (the one in your main forums directory). I'd recommend putting it right before
// parse PHP include ################## |
Quote:
|
As done on this forum:
Code:
// get online users |
Thanks Chen! :D
|
I'd like to install this hack, Firefly: would you like to document it as a proper hack? (If not, I'm happy to do so).
|
|
What a star.
Now, to find out how I get rid of the "register" link in my top bar, if the user's registered. That's got to be pretty easy. |
All times are GMT. The time now is 12:30 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:
|