Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softius/yourls-static-titles
Static titles for yourls service
https://github.com/softius/yourls-static-titles
Last synced: 14 days ago
JSON representation
Static titles for yourls service
- Host: GitHub
- URL: https://github.com/softius/yourls-static-titles
- Owner: softius
- Created: 2013-11-19T15:11:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-19T17:48:39.000Z (almost 11 years ago)
- Last Synced: 2024-08-02T06:17:35.120Z (4 months ago)
- Homepage:
- Size: 102 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - Static Titles - Provide two options to avoid the network traffic when retrieving URL titles. (Plugins / S)
README
# Static titles for YOURLS
Static titles plugin for YOURLS provide two options to avoid the network traffic when retrieving URL titles. You can either disable this feature entirely or provide a list of title and URLs as a cache mechanism.
## Configuration
Open configuration file `config.php` and append the following:``` PHP
/*
** Personal settings would go after here.
*/define('STATIC_TITLES_SKIP', false);
$static_titles = array(
'http://google.com' => 'Google',
);
```Setting `STATIC_TITLES_SKIP` to true will force all titles to `Untitled`. This will save you from bandwidth and minimize the time needed to create the short url entry.
The `static_titles` entry is only applicable if `STATIC_TITLES_SKIP` is set to `false`. You can define a list of URLs and title to be used by the plugin, overwriting the website title.