Active Members
« on October 9th, 2012, 10:40 AM »
Hey, nice... It's actually one of the many features I had on my (core) to-do list. I guess I can give it up now... :)
Maybe it should be made core, BTW...? Or at least an official plugin...
Can you share it for now? :P
Stick a fork in it SMF | ![]() |
Nao lurves his plugins.
| 1. | I'm not going to claim that I made *best* use of hooks, I think Dime probably has that title. But I certainly made noise about making use of them whenever possible. |
<?php
$num_active_members = count($active_members);
if (!empty($settings['activemembers_num']) && $num_active_members > $settings['activemembers_num'])
$context['active_members'][] = '<a href="#" onclick="reqWin(weUrl(\'action=activemembers;t=' . $topic. '\'), 500); return false;">' . $txt['more'] . '</a> (' . ($num_active_members - $settings['activemembers_num']) . ')';
But I love the fact that some of the features I'm always postponing end up in nicely made plugins. That's pretty great.