I decided to make this work, since I just had an article published, and wanted to see what it did to the traffic to the site mentioned.
Copy the attached Online.pm to your admin/Plugins/Gforum directory. You might need to use
the file manager to do it rather than telnet. It's a copy of the Online.pm from the GForum
directory with a few changes.
And, somewhere on the main category_list.html put the function call:
<%Plugins::GForum::Online::whos_online%>
If you are using the search engine templates, you'll have to make the change to the
search_engine and default (and any other set you use) templates for consistency.
You need to create a global called most_users_ever:
Code:
sub {
my ($u, $uwhen, $g, $gwhen) = @$CFG{qw/
highest_current_users_ever
highest_current_users_ever_time
highest_current_guests_ever
highest_current_guests_ever_time /};
return {
highest_user_count => $u,
highest_users_when => GForum::date($uwhen),
highest_guest_count => $g,
highest_guests_when => GForum::date($gwhen)
} }
And, finally, Add this to the Whos_online.html template, above the footer is a good place.
Code:
<%most_users_ever%>
<%body_font%>
The highest number of users on this system was <%highest_user_count%> on <%highest_users_when%><BR>
The highest number of guests on this system was <%highest_guest_count%> on <%highest_guests_when%><BR>
<%/body_font%>
This is working on my system. I think :)
The guest count isn't accurate, as I see the same IP's listed several times for different
areas. A fix might be to group by IP for the Guests, or select unique count if you want a better count.
PUGDOG� Enterprises, Inc. The best way to contact me is to
NOT use Email.
Please leave a PM here.