]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Oembed/README
Merge branch 'nightly' into 'nightly'
[quix0rs-gnu-social.git] / plugins / Oembed / README
1 The Oembed plugin for using and representing oEmbed data.
2
3 See: http://www.oembed.com/
4
5 Installation
6 ============
7 This plugin is enabled by default
8
9 Settings
10 ========
11 width: Maximum width of the thumbnail in pixels.
12 height: Maximum height of the thumbnail in pixels.
13 show_html: Whether to show HTML oEmbed data.
14 domain_whitelist: Array of regular expressions. Always escape your dots and end your strings.
15 check_whitelist: Whether to check the domain_whitelist.
16
17 Example
18 =======
19 $config['thumbnail']['width'] = 42;
20 $config['thumbnail']['height'] = 42;
21 $config['attachments']['show_html'] = true;
22 addPlugin('Oembed', array(
23     'domain_whitelist' => array(
24         '^i\d*\.ytimg\.com$' => 'YouTube',
25         '^i\d*\.vimeocdn\.com$' => 'Vimeo'
26     ),
27     'check_whitelist' => true
28 ));
29