Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [pugdog] Most Users Ever

Quote Reply
Re: [pugdog] Most Users Ever In reply to
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.
Subject Author Views Date
Thread Most Users Ever carfac 6025 Nov 8, 2003, 12:58 PM
Thread Re: [carfac] Most Users Ever
hoefti 5817 Nov 12, 2003, 11:44 PM
Thread Re: [hoefti] Most Users Ever
carfac 5820 Nov 13, 2003, 7:49 AM
Thread Re: [carfac] Most Users Ever
Jagerman 5783 Nov 17, 2003, 4:49 PM
Thread Re: [Jagerman] Most Users Ever
pugdog 5719 Dec 2, 2003, 2:18 PM
Thread Re: [pugdog] Most Users Ever
pugdog 5695 Dec 3, 2003, 12:48 AM
Thread Re: [pugdog] Most Users Ever
pugdog 5681 Dec 4, 2003, 7:56 AM
Thread Re: [pugdog] Most Users Ever
carfac 5638 Dec 8, 2003, 8:05 PM
Post Re: [carfac] Most Users Ever
pugdog 5651 Dec 9, 2003, 4:24 AM