Personal plugin showcase (yes, I'm an attention grabbing git)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #30, on October 9th, 2011, 11:48 PM »
Quote from live627 on October 9th, 2011, 11:46 PM
Quote from Arantor on October 9th, 2011, 11:31 PM
Now, if only we had an awards plugin... maybe that should be my next target, heheh...
Did you peek into my plugin repo? :P lol
Nope but it's been on my to-do list for a while, as well as a points type system (and naturally, the integration between the two)

You'd be surprised how much of this stuff goes through my head while I'm just standing making the first cup of tea in the moment... this morning's was to try and figure out the best way to manage that.
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #31, on October 10th, 2011, 01:46 AM »
OK, another quick one from me. This time it's a small plugin I've named Flitter, so called because it handles Facebook, Twitter and Google like/share buttons.

Quite a few pictures to cover off. Picture 0[1] shows the new admin icon. It's not a particularly nice icon but it shows that it can be done and the plugin naturally will demonstrate how to achieve doing it yourself.

Picture 1 shows the plugin settings page. This is actually purely internal; there's no custom template for the admin settings here, it's all using the internal settings template, just more thoroughly than most might realise is possible.

Picture 2 shows it added to the sidebar, while picture 3 shows it added above the topic.

I should again reiterate the usual with these plugins: there's no file edits, no voodoo, it's all making use of the systems provided by the underlying system to achieve these things.[2]
 1. I'm a programmer, what of it? Of course, this wasn't because I forgot to do it originally but wanted to have this one first... ;)
 2. And in one case I'm still not clear whether it's a bug or not, but whatever, it's good for testing these crazy things out.

 wedge_flitter_0.png - 28.51 kB, 640x448, viewed 271 times.

 wedge_flitter_1.png - 34.71 kB, 640x394, viewed 282 times.

 wedge_flitter_2.png - 27.03 kB, 389x479, viewed 266 times.

 wedge_flitter_3.png - 9.52 kB, 640x126, viewed 261 times.

Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #32, on October 13th, 2011, 05:24 PM »
After a couple of days of slacking on the plugin front, here's a pic of the next one. Elsewhere you'll have seen me threaten to make birthdays a plugin. Well, now it is.

So far, I've just removed the birthdays stuff from core and dumped it into a plugin of its own. It's not finished but it should work as expected (not tested birthday emails yet) at least it certainly seems to for the front page.

Note that this isn't its final position, final layout or anything. I'll likely change the look slightly (using a birthday cake icon and putting in the group colour, amongst other things, oh and putting it up above the forum stats block, but that's pending some investigation in to the template skeleton code)

But it is otherwise a conventional plugin now rather than a core feature.

(No, it is not my birthday today or within the next 7 days)

 wedge_birthdays.png - 22.69 kB, 271x465, viewed 246 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

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
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Nao

  • Dadman with a boy
  • Posts: 16,079

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #35, on October 13th, 2011, 11:44 PM »
It is a bit more than 10K but a decent amount of that is language strings.

It is also interesting to note that I've rewritten the way birthdays are cached, and a few other things, which is why it bulked out a bit.

TE

  • Posts: 286
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #36, on October 18th, 2011, 12:51 PM »
started to play with my first plugin (authentication module), but I'm confused 'cause I get these errors:
Quote
One or more features required by this plugin are not available. (verify_user, register)
the xml part in plugin-info.xml is this:
Code: [Select]
<hooks>
<function point="verify_user" function="integrate_verify_user" filename="$plugindir/authenticate" />
<function point="reset_pass" function="integrate_reset_password" filename="$plugindir/authenticate" />
<function point="verify_password" function="integrate_verify_password" filename="$plugindir/authenticate" />
<function point="register" function="integrate_register" filename="$plugindir/authenticate" />
<function point="validate_login" function="integrate_validate_login" filename="$plugindir/authenticate" />
</hooks>

Is there something wrong with my hook definition? Maybe a bug within the plugin manager?
Thorsten "TE" Eurich - Former SMF Developer & Converters Guru

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #37, on October 18th, 2011, 01:18 PM »
Hrm. It seems I missed adding both hooks to the list of known hooks for some reason.

At the end of ManagePlugins.php is a list of what is supposed to be all the hooks in Wedge's core. just add those two to the list and it'll allow you to use them.

I'll fix my local copy so it can be committed in future.

TE

  • Posts: 286

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #39, on October 18th, 2011, 02:34 PM »
Yeah, it's a fairly simple enough test: get all the hooks we know and see if a plugin requests any we don't know :P But that doesn't help if not all the ones actually in Wedge aren't listed. Guess I'll have to check that again :/

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Personal plugin showcase (yes, I'm an attention grabbing git)
« Reply #40, on October 18th, 2011, 03:10 PM »
Maybe you should make a script that runs through your local install and automatically extracts hook names ;)
The problem is that it's not something we can easily overlook. We need a full list of hooks, if only to be able to document them later... (What you did in ManagePlugins was a good start!)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,079

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,079