Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 2.67 KB

README.md

File metadata and controls

52 lines (39 loc) · 2.67 KB

YOURLS Plugin: Upload and Shorten

Plugin for YOURLS 1.7+.

Description

Upload files to your server and create short-URLs to them in one step. Now you can share your files using shortlinks as well as URL´s.

Installation

  1. Navigate to the folder ./user/plugins/ inside your YOURLS-install directory

    • Either clone this repo using git or
    • create a new folder named ´Upload-and-Shorten´ under your plugin-directory
    • then download all files from here and drop them into that directory.
    • open ./user/config.php in your YOURLS-directory with any text editor
    • add two definitions at the end of that file:
      define( 'SHARE_URL', 'http://my.domain.tld/directory/' );
      define( 'SHARE_DIR', '/full/path/to/httpd/directory/' );
      (both must point to the (existing) directory where your files should be uploaded and accessed from the web)
    • If necessary create a folder matching the name you defined in the above setting
    • Depending on your webserver´s setup you may have to 'chmod +rw /full/path/to/httpd/directory'
  2. Go to the Plugins administration page (eg http://sho.rt/admin/plugins.php) and activate the plugin.

  3. Have fun!

  4. Consider helping with translations.

License

Free for personal use only. If you want to make money with it you have to contact me first.

Localization (l10n)

This plugin supports localization (translations in your language). For this to work you need at least YOURLS v1.7 from March 1, 2015. Earlier versions will basically work fine, except they will not translate into other languages because of a minor bug in the YOURLS-code. Just upgrade to the latest YOURLS version.

The plugin talks English per default, translation files for German are included in the folder i18n/. Remember to define your locale in user/config.php like this:

define( 'YOURLS_LANG', 'de_DE' );

Looking for translators

If you're able and willing to provide translations, please read this and contact me for further instructions. Any help will be greatly appreciated by your fellow countrymen!

Donations

The more you use it the more you'll like it. And if you do, remember someone spends his time for improving it. If you want say thanks for that, just buy him a coffee. This will certainly motivate him to push further enhancements. Just for You! and him :)