https://github.com/xenomedia/slack_to_drupal
This repository is a mirror of the Slack to Drupal module. This module integrates with Slack, and imports images posted to a specified Slack channel into Drupal as File entities.
https://github.com/xenomedia/slack_to_drupal
drupal drupal-7 drupal-module slack
Last synced: 7 months ago
JSON representation
This repository is a mirror of the Slack to Drupal module. This module integrates with Slack, and imports images posted to a specified Slack channel into Drupal as File entities.
- Host: GitHub
- URL: https://github.com/xenomedia/slack_to_drupal
- Owner: xenomedia
- Created: 2016-04-25T21:57:24.000Z (almost 10 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2017-01-17T02:53:25.000Z (about 9 years ago)
- Last Synced: 2025-07-26T00:32:35.296Z (8 months ago)
- Topics: drupal, drupal-7, drupal-module, slack
- Language: PHP
- Homepage: https://www.drupal.org/project/slack_to_drupal
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
CONTENTS OF THIS FILE
---------------------
* Introduction
* Requirements
* Installation
* Configuration
* Create Slack App
* Configure Drupal
* Maintainers
* Supporting organizations
INTRODUCTION
------------
This module integrates with Slack, and imports images posted to a specified
Slack channel into Drupal as File entities.
A new file type called 'Slack Image' and a new display called 'Slack Image
Display' will be added.
Images get uploaded to Drupal during a Drupal cron job or with
`drush import-slack-images` command. Once images are uploaded you can approve
or delete them at: admin/config/services/slack_to_drupal/approve.
Slack Images will be available every place File Entities were available before.
Check out this great example from Zoomdata.com:
http://www.zoomdata.com/careers/#zoomagram
Employees of Zoomdata can upload images to a specific channel in the company's
Slack highlighting events, acheivements and general awesomeness. Once approved
we display the images using the Views, Masonry Views, Colorbox, and GD infinite
scroll plugin modules.
REQUIREMENTS
------------
* Slack Account
* Slack App (See instruction below on creating a Slack app)
* File Entity
* Date
* Ctools
* System
* Field
INSTALLATION
------------
1. Install as usual, see https://www.drupal.org/node/895232 for further
information.
CONFIGURATION
------------
CREATE SLACK APP
----------------
1. Navigate to https://api.slack.com/apps.
2. Sign into your account.
3. Enter your team name.
4. Navigate back to https://api.slack.com/apps.
5. Enter the following info:
App Name - Example: Company Name's Slack To Drupal
Team - (Choose your team)
Short Description: Example: Provides integration between Slack and
Drupal.
Icon - (Upload if you have one)
Long description: Example: This app, in combination with the Slack to
Drupal module (https://www.drupal.org/project/slack_to_drupal) provides
a way for Slack users to post images in a specific Slack channel, and
have it import into Drupal as File Entities.
Link to clear instructions on how to install your Slack app:
http://cgit.drupalcode.org/slack_to_drupal/tree/README.txt
Link to support for your Slack app:
https://www.drupal.org/project/issues/slack_to_drupal?categories=All
Redirect URI(s):
[http://www.mysite.com]/admin/config/services/slack_to_drupal
6. You will need the information on the App Credentials page in the Drupal
configurations below.
CONFIGURE DRUPAL
----------------
1. Navigate to the Slack to Drupal configuration page:
/admin/config/services/slack_to_drupal.
2. Enter Slack Client ID and Slack Client Secret (This can be found in your
app's 'App Credentials' page online).
3. Enter path inside the files directory where you want the images saved.
4. Save Configuration.
5. Press Authorize.
6. Choose the channel you want to get images from.
7. Save Configuration.
8. Navigate to admin/structure/file-types/manage/slack_image/file-display.
9. For all the display modes (Default, Teaser, etc..)
a. Check Slack Image Display.
b. Choose image style.
c. Save Configuration.
MAINTAINERS
-----------
Current maintainers:
* Senem Hartung (the_turk) - https://www.drupal.org/u/the_turk
* Jim Birch (Caffeinated) - https://www.drupal.org/u/caffeinated
* Albert Jankowski (albertski) - https://www.drupal.org/u/albertski
* Michael Porter (michaelpporter) - https://www.drupal.org/u/michaelpporter
* Mike Acklin (mikeacklin) - https://www.drupal.org/u/mikeacklin
SUPPORTING ORGANIZATIONS:
-------------------------
* Xeno Media, Inc. - http://www.xenomedia.com
* Zoomdata - http://www.zoomdata.com