Shorthand Connect

Description

This plugin will allow premium Shorthand users to connect their WordPress installation to Shorthand (http://app.shorthand.com). This will allow users to single click publish Shorthand stories into WordPress.

Updating

https://wordpress.org/plugins/about/svn/

Future Directions

  • A nicer feed view of the story

HTTPS

  • If you are experiencing issues related to assets being loaded via http (and your site is using https), check your settings and ensure that the site URLs are set to https.

Troubleshooting

Only try these after experiencing issues

  • Firstly make sure that your www directory is owned by the correct user
  • In your wp-config.php file, add define('FS_CHMOD_DIR', 0777 );
  • Contact help@shorthand.com and ben@shorthand.com for further support and feedback
  • Some WP Plugins can aggressively cache or control how content is displayed at the theme-level; check page templates to ensure nothing is conflicting.

Screenshots

  • Coming soon

Installation

  1. Install the search for the plugin and install it within wp-admin.
    • Or alternately upload shorthand_connect to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings -> Shorthand to add your Shorthand API Token retrieved in the next step.
  4. Get your API token from Shorthand.com: (Only Admin/Owners will have access to generate API Tokens)
    • Open the workspace settings; either by clicking your organisation name from the dashboard OR from the top right menu when editing a story.
    • Under the sub-heading API Tokens generate either a Team Token or Workspace Token.
      • A Team Token only has access to published/prepared stories under the associated team.
      • A Workspace Token has access to all published/prepared stories.
  5. Optionally change the CSS settings in the options to best present stories within your theme.
  6. Optionally your theme can override the display of Shorthand stories via single-shorthand_story.php in your theme directory.
  7. Optionally apply post-processing in the form of regex queries; within Settings, Post-Processing.
 { 
  "head":
  [
    { 
      "query":  "/<title.(.*?)<\/title>/",
      "replace":""
    },
    {
      "query":  "/regex string/",
      "replace":"String to replace it"
    },
    ...

  ],
  "body":[] 
}

FAQ

  • If you have any questions, please contact help@shorthand.com

Reviews

December 6, 2017
Include easily a Shorthand Story to wordpress. It could have more customization options, but it does the job. Keep in mind, the plugin will download the content of the story to your wordpress, so if you don't have enough memory, wordpress will crash while trying to update/publish the story
January 17, 2017
In theory this would be a great plugin for letting clients drop their Shorthand stories into their own websites rather than manually uploading the files to the server. However, there are a number of problems with the plugin that make it basically unusable in its current form. The main one is that the default template for a Shorthand story includes get_header() and get_footer(), and drops the Shorthand story in using the_content(). This means that what should be a full-width design is actually crammed into the content area of a default template, however wide that is. The plugin seems to assume that get_header() and get_footer() don't include content wrapping tags, but that's not a helpful assumption. The plugin also drops the entirety of its HTML code into the_content() including the <title> tag and <meta> tags such as viewport, Open Graph, Twitter and charset. That's a strange decision given that the body tag isn't written out in that code. Either you assume that the body tag hasn't been written and include the meta tags, or you write the body tag yourself. This wouldn't matter so much if you were able to override the default template by using a single-shorthand_story.php template file in your theme, but this doesn't override the template provided by the plugin, so your choice is to edit the plugin files - which would get overwritten by any updates - or use the default template. Finally, even if you do edit the template file in the plugin just to drop in the Shorthand content, the content doesn't render correctly for some reason - there are missing slides which seem to be overlaid by other ones. It also tries to load non-existent web fonts from the shorthand directory, meaning that the fonts aren't rendered correctly. Perhaps there are ways around this, but that's difficult to tell because Shorthand haven't seen fit to write any documentation on how to use the plugin here in the plugin directory and just direct you to their support email addresses, which isn't acceptable for basic usage instructions. Two stars for something that does sort of work, with an easy-to-set-up API connection, but this needs significant improvement, including basic documentation, before it's usable.
Read all 2 reviews

Contributors & Developers

“Shorthand Connect” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Shorthand Connect” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.3.18

  • Restored previous WP file_get_contents fetch for VIP-hosted customers

1.3.17

  • Added alternate method of story ZIP extraction for WP VIP-hosted customers.

1.3.16

  • Removed references to v1 API (has been deprecated for 12+ months) and updated filesystem calls to be WP-specific.

1.3.15

  • Fixed incorrect trunk copy in previous release.

1.3.14

  • Added story-specific error tracking and targeted updates for those using WP VIP Hosting.

1.3.13

  • Bumping versions

1.3.12

  • Bumping versions

1.3.11

  • Added Post-processing Regex JSON for stripping/modifying head and body content of Shorthand Stories. Also added custom field “no_update”; if true, updating the WordPress Shorthand Story won’t fetch and replace the existing content.

1.3.10

  • Updated Installation instructions (Documentation only)

1.3.9

  • Updated Contact emails

1.3.8

  • Updated Signed URLs for thumbnails

1.3.7

  • Updates to internal php and API handling

1.3.6

  • Better sanitize input

1.3.2

  • Add support for hashed themes

1.2.1

  • Add the ability to remove abstract from post (useful for wordpress as a backend)

1.2.0

  • Support for WordPress v5
  • Clean up settings
  • Remove cURL

1.1.8

  • Update stable tag

1.1.7

  • Update testing information
  • Default to v2 in new install settings
  • Fix a bug where v1 stories were not identified correctly

1.1.6

  • Better support for switching between v1 and v2 of the API

1.1.5

  • Support for the latest release of Shorthand 2.0

1.1.4

  • Support author and custom-field in post type

1.1.3

  • Enable Shorthand version selection

1.1.2

  • Fix release issues

1.1.1

  • Plugin release for version 2.0 support

1.1.0

  • Support for Shorthand 2.0

1.0.7

  • Bump version number

1.0.6

  • Don’t show all stories on update story
  • Allow single-shorthand_story.php to be overwritten
  • Put meta-data in the correct location (inside the head)

1.0.5

  • Add stable tag.

1.0.4

  • Add support for post feature image (thumbnail).

1.0.3

  • Update description.

1.0.2

  • Change author and instructions.

1.0.1

  • Sanitize form inputs.

1.0

  • First release.