Is there a way to modify the plugin to only send notifications based on the post category?
]]>Is the Slack plugin no longer updated?
]]>I am having an issue with the plugin Bot Username and Bot Icon fields no longer overwriting the Slack App Username and App Icon. Is anyone else experiencing this issue?
]]>Is there a way to change the Post Published Slack message format via template functions.php filter? I have not seen much documentation on this plugin regarding this. Thanks
Refering to changing this specific format:
__( 'New post published: *<%1$s|%2$s>* by *%3$s*', 'slack' ) . "\n" .'> %4$s',
I’m using this plugin to send my own slack notifications, so I’m using the $GLOBALS['wp_slack']->notifier->notify( new WP_Slack_Event_Payload( $payload ) );
method to submit the payload.
It would be great if you could take attachments
into account when sending the payload. To make this work, the only change needed is in the file includes/event-payload.php
:
public function toJSON() {
$payload = array(
'channel' => $this->setting['channel'],
'username' => $this->setting['username'],
'text' => $this->setting['text'],
'icon_emoji' => $this->setting['icon_emoji'],
/**
* @todo icon_emoji with ability to select it in setting.
*/
);
if(array_key_exists('attachments', $this->setting)){
$payload['attachments'] = $this->setting['attachments'];
}
return json_encode($payload);
}
It’s basically moving the current payload into a $payload
var, and then if attachments
exists, it adds it to it. That’s all.
Hi,
When I tried to translate your (great) plugin, I just add this error:
This plugin is not properly prepared for localization (View detailed logs on Slack). If you would like to translate this plugin, please contact the author.
However, you use the correct ext-domain…
]]>I have installed the plugin on my site and it successfully sends messages to Slack. However, I cannot change the channel that it posts on.
When I setup the app initially I had to choose a channel it would post to. It only posts to that channel. Do you know why this would be happening.
It seems like Slack has changed the way hooks are setup since this plugin was published.
]]>Using the example:
add_filter( 'slack_get_events', function( $events ) {
$events['post_updated_rc'] = array(
'action' => 'post_updated',
'description' => __( 'When a post is updated', 'slack' ),
'message' => function( $post ) {
return sprintf( '%s updated', $post );
}
The docs are a little light on thing but post_updated
seems to be the correct action hook. Anyone else alive who has gotten this to work?
Hi, When I try to activate your plugin I get the following error:
Fatal error: Call to undefined function wp_get_current_user() in /home/content/n3pnexwpnas02_data01/20/2987920/html/wp-includes/capabilities.php on line 42
I am then unable to login and I have to restore from backup to get my site back up and running. Can you assist in resolving?
]]>I wonder if the group at SLACK, who promote this plugin, know it’s not supported anymore… My site gives a 500 server error when Slack plugin is activated but the backend still works. It only happened after it passed it’s first (non-test) event to SLACK. Just tested with another of our sites, same issue. Error log shows:
PHP Fatal error: Call to a member function is_main_query() on a non-object in …/wp-includes/query.php on line 764
Anything…?
]]>as the subject says, fair question I think since it hasn’t been updated since 2014 – almost 2years.
Thanks for the answer in advance.
]]>I receive this warning when try to active the plugin, please help!
Warning: require_once(__DIR__/includes/autoloader.php) [function.require-once]: failed to open stream: No such file or directory in /home/x/public_html/y/wp-content/plugins/slack/slack.php on line 26
Fatal error: require_once() [function.require]: Failed opening required ‘__DIR__/includes/autoloader.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/x/public_html/y/wp-content/plugins/slack/slack.php on line 26
]]>The plugin works well for new posts, but is there way to make it broadcast for post edits/updates?
]]>When Slack is activated it disables bbPress. Deactivate Slack bbPress returns.
]]>Hey Guys,
whats happening with this … this plugin is probably the most understated plugin out there. Its a fantastic piece of work, will there be an update? and is it coming out soon?
Thanks alot
Augustus
When I try to activate thev 0.51 plugins in WordPress 4.1.1, I get the following error message:
Plugin could not be activated because it triggered a fatal error.
Warning: require_once(/home/immunomet/public_html/wp-content/plugins/includes/autoloader.php) [function.require-once]: failed to open stream: No such file or directory in /home/immunomet/public_html/wp-content/plugins/slack/slack.php on line 26
Any help ? (I checked that the autoloader.php file was present in the slack/includes folder)
]]>I set it up the best I could figure out with an incoming webhook on slack. As far as I can tell it’s not working. There’s also settings that are redundant in the incoming webhook and the plugin’s settings.
]]>I’ve found that the dashboard menu is broken on 4/5 sites I have installed this on. It simply disappears and does not show. THis means the only way to access the Slack plugin menu is to manually enter https://www.mysite.com/wp-admin/edit.php?post_type=slack_integration
]]>It seems the plugin/Slack combo doesn’t support special characters like & and ‘
Instead it displays the unicode version in the Slack channel i.e.
‘ = ’
… = …
Just found this plugin today activating for the first time results in “white screen of death”. Error logs show this:
[Sat Jan 10 03:04:05 2015] [error] PHP Fatal error: Call to undefined function wp_get_current_user() in /xxxxx/wp-includes/capabilities.php on line 1356
A quick search of this error shows it’s something to do with pluggable functions — wp-includes/pluggable.php
Deleting the plugin returns everything back to normal…
]]>Hi,
This looks really interesting…
Would you be interested in adding the ability for integrations to add an attachment to the message? This would be more useful than a message alone.
Best wishes,
David
Incoming works great!! Any chance your going to get outgoing webhooks integrated as well???
Love the idea of the RELAY so it can be used on both sides.
]]>