Add files via upload
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
Allow Full Stops in Short URLs
|
||||||
|
---------------------------------------------
|
||||||
|
|
||||||
|
- Plugin Name: Allow Full Stops in Short URLs
|
||||||
|
- Plugin URI: http://sophia.wtf
|
||||||
|
- Description: Allow Full Stops in Short URLs
|
||||||
|
- Version: 1.0
|
||||||
|
- Author: Sophia Atkinson
|
||||||
|
- Author URI: http://sophia.wtf
|
||||||
|
- Plugin Based Off Of William Bargent's Allow Forward Slashes in Short URLs.
|
||||||
|
|
||||||
|
|
||||||
|
This plugin will allow forward slashes `.` in keywords when shortening URLS with YOURLS.
|
||||||
|
|
||||||
|
*NOTE This plugin will not work with URL Forwarding plugins active. Deactivate before activating this plugin.
|
||||||
|
|
||||||
|
###Installation
|
||||||
|
|
||||||
|
1. Download these file as a .zip.
|
||||||
|
2. Extract the files and copy them into `users/plugins/`.
|
||||||
|
3. Go to your plugin manager and click `Activate`.
|
23
plugin.php
Normal file
23
plugin.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
Plugin Name: Allow Full Stops in Short URLs
|
||||||
|
Plugin URI: http://sophia.wtf
|
||||||
|
Description: Allow Full Stops in Short URLs
|
||||||
|
Version: 1.0
|
||||||
|
Author: Sophia Atkinson
|
||||||
|
Author URI: http://sophia.wtf
|
||||||
|
Plugin Based Off Of William Bargent's Allow Forward Slashes in Short URLs.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if( !defined( 'YOURLS_ABSPATH' ) ) die();
|
||||||
|
|
||||||
|
yourls_add_filter( 'get_shorturl_charset', 'full_stop_in_charset' );
|
||||||
|
function full_stop_in_charset( $in ) {
|
||||||
|
return $in.'.';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//This plugin will work with URL forwarding plugins active!
|
Reference in New Issue
Block a user