erayalakese / slack-wordpress

WordPress Integration for Slack
MIT License
43 stars 12 forks source link

Could we please get a notification on new subscribers? #7

Closed materemias closed 9 years ago

materemias commented 9 years ago

I would like to get posted about new subscribers, would you make it possible?

erayalakese commented 9 years ago

You mean RSS subscribers, right? @ratson

materemias commented 9 years ago

I mean people who appear under page wp-admin/admin.php?page=subscribers I believe this is not a plugin functionality but default. these guys don't appear under regular users --update I now found out it is a custom functtion programmed in the site template, could you give advice how i could add a custom hook to it?

erayalakese commented 9 years ago

Hello @ratson,

As you find out it's 3th party plugin/service. I will provide a method for plugin/theme developers and release it in a day. Please follow this issue.

For a quick (and untested) resolution : try using publish_post($channel, $msg) method inside Slack_API class. You can reach this class with Plugin class' getApi() method.

Thank you.

materemias commented 9 years ago

HI,

thanks for the quick update, I am looking forward to see the guide, at the same time would it be possible to post messages to private groups?

rm

erayalakese commented 9 years ago

@ratson ,

Can you please update your plugin to v1.2.0 by downloading this (just git pull if you download plugin with git) and then follow For Developers section of Readme.md ?

materemias commented 9 years ago

I'll definitely do so, can I post to private groups too? That's a must for our use case...

erayalakese commented 9 years ago

@ratson ,

Sorry it's my mistake, I totally forgot about it. Just give me an hour.

materemias commented 9 years ago

thank you @erayalakese i truly appreciate this!

erayalakese commented 9 years ago

@ratson

It will be released as v1.3.0 in a few minutes. Thank you.

materemias commented 9 years ago

great, thank you!

materemias commented 9 years ago

$wpps_plugin->getApi()->publish_post($channel_to_post, $msg); seems to stop execution. what could have gone wrong?

erayalakese commented 9 years ago

@ratson it was just a typo and I fixed it immediately yesterday. You should use $slack_plugin instead of $wpps_plugin. Check readme file for example.

And please vote / review the plugin on Wordpress.org

Thank you.

materemias commented 9 years ago

and it works! thanks

materemias commented 9 years ago

I registered just to post a rating ;)

erayalakese commented 9 years ago

Wow, thank you :) @ratson

materemias commented 9 years ago

well deserved!