@garymardell - awesome addon. I finally had a chance to set it up locally and play with it. One thing I noticed missing is the admin side menu on your admin page. You can add it (And highlight your whos online link) by adding this line to the top of your PluginController_WhosOnline_Create() method:
@garymardell - I ended up doing a bunch of changes, optimizations, and cleanup to my version of this. I've emailed you my version if you want to use the changes.
My changes included: - Removal of GetFrequency ajax call. Passed the Frequency value into the necessary pages using Controller->AddDefinition(). - Changed who's online list to be list items with the last active time next to each username (this means I got rid of the unnecessary css file, too). - Fixed javascript to use absolute urls (fixed a bug that caused the plugin to stop working when the forum was installed in a subdirectory).
Hi, the plugin works fine for my site. I would want to know what would happen if there were like 1000+ users who are online? Will it list down all the 1000+ users to an infinite list of usernames?
Yeah it probably would list them all. However it should be clear if you are having 1000+ uses on your forum you probably won't want to be using this addon as it will just be added tax on your server.
Comments
$Sender->AddSideMenu('plugin/whosonline');
My changes included:
- Removal of GetFrequency ajax call. Passed the Frequency value into the necessary pages using Controller->AddDefinition().
- Changed who's online list to be list items with the last active time next to each username (this means I got rid of the unnecessary css file, too).
- Fixed javascript to use absolute urls (fixed a bug that caused the plugin to stop working when the forum was installed in a subdirectory).
Great and useful plugin!
And thanks very much.
I have also added a donation button to the details so if anyone wants to donate because they like the addon it would be much appreciated.