Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.