![]() |
How do I display registered members
I want to display only the registered members at the top of my forum home. I know it's located at the footer, but I just want to display that only as well on the header....
Example Members: 157 Anyone? |
Code:
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']"> |
I think your missing some code there dj...
|
Why have you got an if condition in there?
|
Explain? I believe the if tag is missing
|
Just ignore the if tag. It's for the (incomplete) code if you want to show active members also. Just use "$vbphrase[members]: $numbermembers"
|
no pasted in my forum header to no avail.......
"$vbphrase[members]: $numbermembers" --------------- Added [DATE]1194461963[/DATE] at [TIME]1194461963[/TIME] --------------- All I want to show in my header is Active or Members=1409 I tried and do appreciate your input, just need a working solution. |
Doesn't your forum already say this in the "who's online" ?
I'd search for the code down there, but what Lynn posted, should work |
Wouldn't you leave out the quotes, like this.
HTML Code:
$vbphrase[members]: $numbermembers |
Quote:
|
Quote:
--------------- Added [DATE]1194462682[/DATE] at [TIME]1194462682[/TIME] --------------- I pasted this in header $vbphrase[members]: $numbermembers the output i get is Members: no number. Should be Members: 1300 |
The code that sets the $numbermembers variable to the right digit is at the end of the index.php file and as the header template is being parsed in the global.php file (witch is included in the beginning of the index.php file) there is no way that simply including that variable in the template will do any good.
To make it work you need to run some code that sets that variable before it is being used. I think the parse_templates hook would work. You add the code to it by using the plugin manager in the admincp. I think this code will do the trick, however i havnt tested it. Code:
// get total members and newest member from template |
All times are GMT. The time now is 07:17 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:
|