Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Plugging in the Plugin Manager
« on October 10th, 2011, 02:39 AM »
OK, so what's been going on lately? Nao's been busy with a variety of tweaks and gouges to the source, but I've been busy working away on plugins.

(Yes, careful readers will note that we used to call them add-ons, but they're officially called plugins now after the big conversation we invited everyone into. It's a small detail but an important one and since it affects usability, we wanted to make sure you were all involved.)

Why am I writing about it now? Apart from the fact it's been weeks since our last blog post, I really wanted to pimp out the fact that plugins now exist for it - you see, last month when I talked about it, it was still just fresh off the design board, had a few rough edges but worked. Now, some of those rough edges have been smoothed out - you can, for example, actually delete plugins now once they're disabled.

But that's not really what I wanted to talk about. I wanted to talk about the plugins themselves, and I've attached a screenshot from the plugin manager as it is on my PC right now.

First up, you might be wondering why WedgeDesk is broken, when it would be a plugin I'd be more inclined to keep updated. Well, it's only because I very recently changed the hook mechanics in the display page, phasing out the old display_buttons hook and I haven't yet updated WD for the new hook, but that's something I'll do soon enough. (It's also, incidentally, how I realised it wasn't possible to delete a plugin that couldn't be enabled for whatever reason)

All of the other plugins were discussed in http://wedge.org/pub/6929/personal-plugin-showcase-yes-i-m-an-attention-grabbing-git/ - a somewhat aptly named thread, if I may say so myself. ;) If you're curious about any of the plugins I would encourage you to go read that thread, as it has pictures and more details about them.

It's actually listing them alphabetically, though I think I need to change that to include natural case sorting (r in reCAPTCHA comes after Z in the ASCII table, and it probably should discount the case) and I suspect the interface may need some changes going forward to cope with lots of plugins at once - but that's why I'm opening the floor now, so that if you have any thoughts about that, that there's a venue to share them now that you can actually see what having multiple plugins at once would look like.

Oh, and I suppose to validate that it's not some kind of random hyperbole - these are real plugins that can be used :)

It's been a fun period these last few days, kicking out small plugins - I've spent maybe an hour and a half per plugin, and in that time I've been able to establish that the hooks are present for the plugins to work with, and if they weren't present, to make them available; until I wrote the reCAPTCHA plugin, the hooks to extend the verification system didn't exist, for example.

It's also interesting in other ways, I get to test other systems in Wedge, and find ways to enhance them; one of the screenshots I've posted for 'Flitter' in the above-mentioned thread shows a 'Your settings have been saved' message - this is an enhancement I only added recently as I couldn't be sure whether saving had been done without going into the DB. It's a usability enhancement, and it doesn't require plugins having to manually support it; it's covered totally automatically for standard settings pages :) And I managed to find a small bug in the admin pages because of doing plugins, there's really no better way to test how things work than by trying to break them!

My plugins repo is not publicly available (though a few people do have access to it) and I certainly wouldn't call these release-quality, in almost every case it's to prove the system is up to the job, rather than to make sure there's plugins for everyone when we get round to doing some kind of launch (and I can't see my releasing the plugins before Wedge 1.0 gold anyway)

Sadly, I'm going to have to leave it here for now, it's late, I have a few things to do before bed, and even more sadly I couldn't find a good musical reference to leave in this post :( But as the philosopher Jagger once said, you can't always get what you want. But if you try sometimes, you might just find you get what you need.
But there you are, that's where I am right now :)

📎 wedge_plugin_manager.png - 30.28 kB, 640x368, viewed 1,700 times.

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

Re: Plugging in the Plugin Manager
« Reply #1, on October 10th, 2011, 03:03 AM »
I might as well share a little bit of the plugins I've done and started, too.

Firstly, the Theme Menu. It creates a dropdown menu in the top bar listing all the skins. I haven't tested it with multiple themes, but it handles skins just fine.

Then  there is the Personal Message Auto Responder. It lets members choose their own automatic responses to incoming PMs. Rules can also be applied  to personalize if desired, much like the PM rules. It's driven by permissions[1].

Finally, there is a work in progress, a plugin to issue awards to members.

I'll release more details and screenshots once Wedge hits alpha.
 1. Nudge to Pete for implementing roles. ;)

Re: Plugging in the Plugin Manager
« Reply #2, on October 10th, 2011, 09:05 AM »
Quote
Firstly, the Theme Menu. It creates a dropdown menu in the top bar listing all the skins. I haven't tested it with multiple themes, but it handles skins just fine.
Funny how we both did the same thing!

I'm still trying to figure all the subtle details out with roles, most notably whether post count roles are needed (or whether a better solution can be devised - or whether thorough extensibility is even needed)

Re: Plugging in the Plugin Manager
« Reply #3, on October 10th, 2011, 10:39 AM »
Mighty fine work boys -  :eheh:

Mind you, Martin Johnson cant use that phrase for a while


Re: Plugging in the Plugin Manager
« Reply #4, on October 10th, 2011, 11:38 AM »
I might share mine as well, sorry for lack of screenshot since I haven't setup LAMP yet on my new laptop.

Facebook for Wedge - A little Facebook integration plugin for SMF, meant to enable Facebook log in as well as automated update of user's data from facebook. I want to make the integration better by incorporating wall posts and a few more things

WePortal - A barebone but extremely extendable portal for Wedge.

Re: Plugging in the Plugin Manager
« Reply #5, on October 10th, 2011, 11:42 AM »
Cripes, I make that double digits of plugins!

Not bad for a plugin manager that's barely a month old, only accessible to a few and only 3 people writing for it...
Re: Plugging in the Plugin Manager
« Reply #6, on October 11th, 2011, 09:20 AM »
OK, so as per my screenshot, there's 5 plugins in there, and they're in (basically) alphabetic order.

I wonder if it might not be useful to provide some kind of filtering, so you can see plugins that are enabled, that are disabled, and those that are not able to be enabled?




Re: Plugging in the Plugin Manager
« Reply #10, on October 11th, 2011, 10:34 AM »
Author is doable; the author is available from the list of plugins, but plugin type... there's nothing in a plugin to indicate what type of plugin it is, and from experience I don't really want it to be. It's why, for example, sm.org's mod site has a lot of "New Features" and "Feature Enhancements" that aren't really either.

The only way around that would be to define the classifications up front and make them fixed (and don't provide a generic one) but that causes people to limit themselves, I find.

Re: Plugging in the Plugin Manager
« Reply #11, on October 11th, 2011, 03:46 PM »
I was thinking mainly about tags along with tag types... Only the tag types would need to be fixed, not the tags themselves.

Re: Plugging in the Plugin Manager
« Reply #12, on October 11th, 2011, 03:48 PM »
What's the difference?

If you're defining a list of classifications, it doesn't matter what you call them, you'd still be enforcing the content fits those classifications.

Re: Plugging in the Plugin Manager
« Reply #13, on October 11th, 2011, 03:56 PM »
I don't know, I want to put tags and tag types everywhere I can... If one day you see me walking with a limp, you can probably assume I tried putting them there as well :P


Re: Plugging in the Plugin Manager
« Reply #15, on October 11th, 2011, 11:56 PM »
You'd be surprised. I did get asked about it for Sortable Packages but refused because it didn't seem logical to me at the time.

If you have several mods by specific people, maybe. Like if you had a bunch of my plugins, a bunch of yours and a bunch of official ones, maybe.