Shorteen (URL shortening module)
Shorteen is an URL shortening module for ExpressionEngine. Is does shorten the URLs by iteslf, but is letting you use wide range of shortening services. Currently supported are goo.gl, is.gd, bit.ly and YOURLS script.
The usage is very simple:
{exp:shorteen:process service=“bitly” url=“http://www.ellislab.com”}
The range of supported services supported is constantly increasing - request integration of shortening service that you like!
See the docs for information about settings and more
Comments
Comments are closed. To get support, email .(JavaScript must be enabled to view this email address).
Nice little plugin. One question. Shorteen is hitting up my Yourls install ~8 times, and generating 8 short links. Any way to keep it at 1?
Try setting this Yourls setting to true in includes/config.php
/** Allow multiple short URLs for a same long URL** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
define( 'YOURLS_UNIQUE_URLS', true );
Hey Yuri,
Unique urls are set to true already. (For example, if I try to shorten a page via the bookmarklet that shorteen has already set, I get an ‘already in the database’ notification.)
It’s probably more yourls’ problem than shorteen’s, as all of the sql records in the Yourls db have the same timestamp.
Than,
I checked the API call made by Shorteen and it seems to be correct.
Looks like there’s a problem with Yourls, specifically with yourls_add_new_link function. I don’t have time for this now, unfortunately