My first snippet (and first module for WB in any way) - and I am not a pro-php-developer
The reason for it was to learn, how to write code for WB modules.It displays all usernames of logged-in users in an unordered list.
<?php MembersOnline(); ?>
to your template, thats all.
- (1) seconds of timeout
- (2) custom headline
- (3) selection of display: username or display_name
- (4) custom 'no users online' message
<?php MembersOnline('600', 'users online', 'username', '-'); ?>
<?php MembersOnline('300', 'Active users in last 5 min', 'display_name', '0 users online'); ?>
You can modify the appereance by editing the frontend.htt of the snippet.
Hope it is bugfree, please report any errors, suggestions or security issues, 'will try to fix them.
Perhaps there are useful additions like a linked username where you can directly email the user ... or something like that. But this is my first try and I need more learning
Sorry for my english ...Updated to 0.1.1:
added support for a custom timeout; simply add seconds for timeout in the bracketsUpdated to 0.1.2:
added support for a custom headline, add headline in quotes and separated from seconds to the bracketsUpdated to 0.1.3:
added support for custom selection of username or display_name, add 'username' or 'display_name' as third parameterUpdated to 0.1.4:
added custom message if no users are online, add i.e. 'no users online' as fourth parameter
[gelöscht durch Administrator]