Floris
20th May 2004, 02:40 PM
This template tweak will show you how you can use variables and other data to extend your pages with informative information.
What I was missing with the page online.php (who is currently online) that if it shows the details of the summery from the forumhome (index.php), why doesn't it show the total on-line users for that selected setup.
By default I show the members, guests, bots, so that total would be to show the visible plus guests.
If I'd load the page with only the bots, it will also show the total in the top. Quite handy.
Anyway, goto the style manager, and find the following code in the template: WHOSONLINE
<strong><phrase 1="$numbervisible" 2="$numberguests">$vbphrase[x_members_and_y_guests]</phrase></strong><br /><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
and replace it with this code:
<strong><if condition="$totalonline = $numberguests+$numbervisible">Total: $totalonline</if></strong> (<phrase 1="$numbervisible" 2="$numberguests">$vbphrase[x_members_and_y_guests]</phrase>)<br /><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
And now save the template WHOSONLINE
Enjoy.
What I was missing with the page online.php (who is currently online) that if it shows the details of the summery from the forumhome (index.php), why doesn't it show the total on-line users for that selected setup.
By default I show the members, guests, bots, so that total would be to show the visible plus guests.
If I'd load the page with only the bots, it will also show the total in the top. Quite handy.
Anyway, goto the style manager, and find the following code in the template: WHOSONLINE
<strong><phrase 1="$numbervisible" 2="$numberguests">$vbphrase[x_members_and_y_guests]</phrase></strong><br /><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
and replace it with this code:
<strong><if condition="$totalonline = $numberguests+$numbervisible">Total: $totalonline</if></strong> (<phrase 1="$numbervisible" 2="$numberguests">$vbphrase[x_members_and_y_guests]</phrase>)<br /><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
And now save the template WHOSONLINE
Enjoy.