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

16 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.

chiggpatel

chiggpatel on April 5, 2017, 12:03 p.m. Reply

How to download and Install vShare for Android, iOS and PC (Mac or Windows)

chiggpatel

chiggpatel on April 5, 2017, 12:04 p.m. Reply

chiggpatel

chiggpatel on April 5, 2017, 12:06 p.m. Reply

How to download and Install vShare for Android (Mac or Windows)

chiggpatel

chiggpatel on April 5, 2017, 12:06 p.m. Reply

How to download and Install vShare for Android (Mac or Windows)

chiggpatel

chiggpatel on April 5, 2017, 12:07 p.m. Reply

Music Paradise Pro

chiggpatel

chiggpatel on April 5, 2017, 12:07 p.m. Reply

Music Paradise Pro

hirapara123

hirapara123 on April 6, 2017, 12:16 p.m. Reply

free emu4ios Download

hirapara123

hirapara123 on April 6, 2017, 12:19 p.m. Reply

download emu4ios for free

Erin Osborne

Erin Osborne on May 5, 2017, 7:33 a.m. Reply

I am no longer a hundred% certain i am going about this the proper manner but i have a website and i am trying with the help of UK Essay Writing Service - Essay Help Deal to make a template gadget and need it to use $_get variables to discover which page they have got asked that allows you to deliver the content material from the ideal web page.

I’ve used the rewriterule to change my url from www.Mysite.Com/index.Php to /news but i need it so while someone comes to my web site and types www.Mysite.Com/news or /anything it modifications it to www.Mysite.Com?Page=news or ?Web page=anything.

Radjapov

Radjapov on May 31, 2017, 9:45 a.m. Reply

The app has the feature of sending a mail to your mail id the image of the scanned copy. download serial numbers The Shadow of the Wind by Carlos Ruiz Zafon for iPhone.

Anand Varma

Anand Varma on July 21, 2017, 7:19 a.m. Reply

With the help of Emu4iOS Download you can install EveryCord Screen Recorder and you can also install EveryCord from Tutu Helper Apk. If you want to download paid apps for free, I suggest you to install Tutu Helper App.

Anand Varma

Anand Varma on July 21, 2017, 7:22 a.m. Reply

Download gDMSS Lite Apk for Windows PC for remote surveillance of security Cameras.

Anand Varma

Anand Varma on July 21, 2017, 7:24 a.m. Reply

Download gDMss Lite Apk for PC for remote surveillance of security cameras from your Windows PC.

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