Not a developer? Go to MovableType.com

Plugin and Theme Directory

Supr v1.0.4

By Byrne Reese
Posted April 14, 2011, in Editing.

Details

This plugin, inspired by the WordPress plugin with the same name, provides Movable Type and Melody users with the ability to create custom short URLs for their own domain, and will automatically notify Twitter and/or Facebook with a message an entry author specifies.

The plugin works by integrated with su.pr, a URL shortening service provided by StumbleUpon.

Prerequisites

  • Config Assistant 1.8 or higher

Installation

This plugin is installed just like any other Movable Type Plugin.

Installation Instructions for self-hosted URLs:

  1. Checked the "My own short-urls" checkbox in plugin settings.

  2. Please add these lines to your rewrite.conf or .htaccess:

RewriteEngine On RewriteRule ^[a-zA-Z0-9]{1,4}$ /mt-static/plugins/Supr/php/supr.php?supr=$0&blogid=&cgipath= RewriteRule ^suprsettings.json$ /mt-static/plugins/Supr/php/supr.php?checkinstall=$0&blogid=&cgipath=

Note that the above URLs contain MT template tags. It is recommended that you create an index template to build your .htaccess so that these template tags gets built. Alternatively you can subsitute the tags for the appropriate values and paste into your existing .htaccess file. You also may need modify the relative URL to your 'mt-static' directory if it is something other than '/mt-static/'.

TODO: make this part easier by pre-building rules in some way.

  1. Visit http://su.pr/settings/ and enter your domain to the list of promoted websites. Click Save and you should see the updated settings for your domain. Then click the "Synchronize" link. Once the features are enabled in your settings page, you are ready to go! Try to shorten a URL for web page on your website and you should have your very own short URL!

  2. Get more traffic with the Supr bar

To receive more traffic from StumbleUpon, be sure to display the Supr bar when visitors click on a Su.pr short URL on your domain. The bar will only be displayed to visitors that click on a Su.pr link (it will not be displayed to visitors that come to your website from other sources).

Simply add the following link to your header portion of your web page (usually in a header template file):

<script src="http://su.pr/hosted_js" type="text/javascript"></script>

Compatibility

Movable Type versions: 4.3


Back

3 Comments

Sunil Shrestha

Sunil Shrestha on August 12, 2016, 1:18 a.m. Reply

Good installation instruction.

192.168.0.1

fileorgin

fileorgin on March 17, 2017, 4:05 p.m. Reply

Citra has released Nintendo 3DS Emulator for Windows, Mac, iOS, Android and is available to download for free.

fileorgin

fileorgin on March 17, 2017, 4:06 p.m. Reply

1900s gamers are in relief that they can play their favourite Nintendo games on PC now. An app company called Citra has released Nintendo 3DS Emulator for Windows, Mac, iOS, Android and is available to download for free.

Leave a Comment

Byrne Reese

Byrne Reese was previously the Product Manager of Movable Type at Six Apart, where he had also held positions as the Manager of Platform Technology and Product Manager for TypePad. Byrne is a huge supporter of the Movable Type user and developer community. He dedicates much of his time to promoting and educating people about Movable Type as well as building the tools and plugins for Movable Type that are showcased on Majordojo. He contributes regularly to open source; and he is an advocate for open protocols and standards like Atom and OpenID.

Website: http://profile.typekey.com/byrnereese