Active Members
[Plugin Screenshots] Invitation Only Topics »

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Active Members
« on October 9th, 2012, 10:40 AM »
This can display a nice little sidebar block summarising all the members who've posted in a topic.

A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Active Members
« Reply #1, on October 9th, 2012, 03:16 PM »
Is that test forum using the database I think it is? :lol:
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Active Members
« Reply #2, on October 9th, 2012, 05:42 PM »
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

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Active Members
« Reply #3, on October 9th, 2012, 05:50 PM »
Funny, when I suggested a variation on this idea (putting it as a link in the message index to a similar sort of popup) you weren't so keen.

The reason for suggesting it that way is performance saving ;)

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Active Members
« Reply #4, on October 9th, 2012, 06:09 PM »
I don't remember having this discussion before..?

I had this mod installed on one of my earlier SMF1 sites, no longer there though, but I liked it...

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Active Members
« Reply #5, on October 9th, 2012, 06:11 PM »
Well, we did, a long time ago, haha.

Also, I noticed a bug which I'll report in a minute.

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Re: Active Members
« Reply #6, on October 10th, 2012, 12:50 AM »
Quote from Nao on October 9th, 2012, 05:42 PM
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
If it'll be core it shouldn't be in the alpha.

And done.. Someone wants it on their site :P

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Active Members
« Reply #7, on October 10th, 2012, 02:02 AM »
Nao lurves his plugins.

There's about 6 plugins active on this site right now... :o

spoogs

  • Posts: 417
Re: Active Members
« Reply #8, on October 10th, 2012, 02:08 AM »
Nice one live :cool:
Stick a fork in it SMF

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Re: Active Members
« Reply #9, on October 10th, 2012, 02:09 AM »
Quote from Arantor on October 10th, 2012, 02:02 AM
Nao lurves his plugins.
I literally loled...

Quite a change in spirit. First wanting to shy away, then wanting to install some, then... wanting to build some?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Active Members
« Reply #10, on October 10th, 2012, 02:19 AM »
I don't blame him from shying away from plugins. If you've never had to think in that mindset before, it takes some getting used to. Fortunately I'd come from SMF where I'd already been making lots and lots of use out of it.[1]

But building is less a skill and more an art in doing the dance the right way, especially if you're used to just adding code wherever you feel like.
 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.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Active Members
« Reply #11, on October 11th, 2012, 05:02 PM »
I don't believe I ever had anything against plugins, on the contrary...
I hate mods because they make your life a nightmare when it comes to upgrading the main program.
I love plugins because they never modify external code.
I don't know how to write a plugin, though. And I wouldn't want to look into it for now -- it's not time for me. I have other priorities...
But I love the fact that some of the features I'm always postponing end up in nicely made plugins. That's pretty great.

Anyway... Active Members enabled on Wedge.org :) Thanks, John!
Oh, and also thanks for reminding me (through your code) that I hadn't (yet) fixed the $_GET['title']/$_POST['t'] bug in the Like popup. Done now. (Locally.)
Posted: October 11th, 2012, 04:48 PM

Also, a quick fix for the 'more' link giving out negative numbers... (Due to activemembers_num being higher than the current number of posters.)

Code: [Select]
<?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']) . ')';

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Active Members
« Reply #12, on October 11th, 2012, 05:55 PM »
The ability to push features into plugins is one of the reasons I wanted to make sure there was a battle-hardened plugin system there ;)

Writing them isn't hard, once you get into the mindset. The mindset simply is: I can run my own code at *these* places, if I were inserting my own code there to do a job, what would I write? The rest is pure packaging.

agent47

  • Now I see the changes you're talking about.
  • Posts: 115
Re: Active Members
« Reply #13, on October 11th, 2012, 07:02 PM »
Nice work live627!

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Re: Active Members
« Reply #14, on October 14th, 2012, 12:11 AM »
Thanks for the bug fix, Nao!
Quote
But I love the fact that some of the features I'm always postponing end up in nicely made plugins. That's pretty great.
It's purely coincidental at this point mainly because I have absolutely no ides what's on your to-do list.

[Plugin Screenshots] Invitation Only Topics »