Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/LeoColomb/yourls-limited-links

Plugin to limit redirections of a specific link with a '_' + 'number' added to this link
https://github.com/LeoColomb/yourls-limited-links

php redirection yourls

Last synced: 1 day ago
JSON representation

Plugin to limit redirections of a specific link with a '_' + 'number' added to this link

Awesome Lists containing this project

README

        

Limited Links
=============

Plugin for [YOURLS](http://yourls.org) 1.5+.

Description
-----------
Limit redirections of a specific link with '_' + 'number' added to this link.

Installation
------------
1. In `/user/plugins`, create a new folder named `limited-links`.
2. Drop these files in that directory.
3. Go to the Plugins administration page ( *eg* `http://sho.rt/admin/plugins` ) and activate the plugin.
4. Have fun!

Usage
---------------
1. Create your short URLs as usual
2. Pick the generated short URL then append `_` (or your own `LIMIT_BEFORE_CHAR`)
3. Then append the number which correspond to the hits limitation
4. Share the given URL

__Note__: In steps 2/3, you're not supposed to *edit* the link, the first generated URL have to continue to exist.

Optionnal Setup
---------------
Character `_` could be change in `plugin.php`.

1. Locate `define( 'LIMIT_BEFORE_CHAR', '_' );` at line 12
2. Change `_` with your specific character