Skip to content

Converts links into short URLs with the help of YOURLS

License

Notifications You must be signed in to change notification settings

pftnhr/yellow-shorturl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shorturl 0.9.1

Converts links into short URLs with the help of YOURLS

(Since you can't see anything, there is no screenshot.)

How to install the extension

Download ZIP file and copy it into your system/extensions folder. Learn more about extensions.

A self-hosted YOURLS installation and the yourls-api-edit-url plugin are required.

How to convert links into short URLs

Insert <?php echo $page->parseContentElement("shorturl", "", "", "inline") ?> at the desired position in the href attribute and let the magic happen.

Examples

<a title="Short URL to this post" aria-label="Short URL to <?php echo $page->getHtml("title") ?>" href="<?php echo $page->parseContentElement("shorturl", "", "", "inline") ?>">#</a>

Settings

The following setting can be configured in file system/extensions/yellow-system.ini:

ShorturlApi: <your YOURLS>/yourls-api.php
ShorturlSecret: secret signature token from <your YOURLS>/admin/tools.php

Acknowledgements

This extension uses YOURLS with the yourls-api-edit-url plugin. Many thanks to Ozh and Tim for the great work!

Developer

Robert Pfotenhauer. Get help.

About

Converts links into short URLs with the help of YOURLS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages