1 vmiklos Aug 03, 2008 13:11
3 vmiklos Aug 08, 2008 21:45
Exactly. I have rss2email and I can just drop in a feed, but even that sounds like a big overhead, since probably after some time I'll just remove the feed when I do a cleanup (a few months later) and this way it's easy to miss comments...
Could you please give a few useful links where should I read about writing b2evo plugins?
Yes, I know PHP, but I'm totally unfamiliar with b2evo as a developer - though I would happily write such a plugin.
I tried google://b2evo+how+to+write+a+plugin but haven't found anything usable yet.
Thanks!
4 edb Aug 08, 2008 22:35
I don't think there is any place to go that will be tutorial in nature regarding plugin creation, but hey you can always deconstruct one that does something similar to what you want.
So like you want to hook into the comment form. Captcha and my TuringTest both do that, so there's a hook you can get some code to take advantage of. Then you will probably need a database table to track "this username and email address is watching this post ID", so you would want to grab a plugin that makes a database table. I'm trying to think of one I did that makes a table... AcroLink does it, probably quite a few others as well. Finally you would need to figure out a way to send the email when the post gets another comment. Probably using the same hook as for making the checkbox, but I don't really know for sure.
There's got to be some resources though... Oh here's one: in inc/plugins/model/_plugins_admin.class.php near the top you will find a list of all the hooks with some groovy info about most of them. For example the middle of these three might help you know when it is time to send an email to a non-member of the blog:
'AfterCommentDelete' => 'Gets called after a comment has been deleted from the database.',
'AfterCommentInsert' => 'Gets called after a comment has been inserted into the database.',
'AfterCommentUpdate' => 'Gets called after a comment has been updated in the database.',
Damn I used to have a link to automagically generated documentation but can't find it now. I always thought that was the coolest tool available for working through the functions and whatnots, but damn I can't find it.
...
5 vmiklos Aug 08, 2008 23:26
random quess: doxygen? :)
6 edb Aug 08, 2008 23:30
http://doc.b2evolution.net/v-2-4/plugins/Plugin.html !
Click on stuff and eventually get both info and the actual code in the actual file. Hooray!
7 vmiklos Aug 08, 2008 23:35
thanks :)
8 yabba Aug 09, 2008 09:39
You might like to have a play with the source from this plugin ( [url=http://innervisions.org.uk/media/blogs/babbles/plugins/am_subscriptions_plugin_0_0_0_0_0_5.zip]AM Subscriptions[/url] ) ... I can't remember if that incarnation of it works or not with the latest core, but it should help ;)
¥
Hi vmiklos. Welcome to the forums.
I guess anything is possible, but as far as I know it hasn't been done with b2evolution yet. Usually the canned answer is "they can grab the feed" but the canned response to that is "not everyone knows what to do with feeds". So yeah this would make a good plugin option one day.