From 797fd8ad131e909d4dcc436e6bfa73921d8ea1dd Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 18 May 2011 17:05:48 +1000 Subject: Embedding field --- inc/config.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'inc/config.php') diff --git a/inc/config.php b/inc/config.php index 721d0974..78941116 100644 --- a/inc/config.php +++ b/inc/config.php @@ -491,7 +491,8 @@ 'password', 'sticky', 'lock', - 'raw' + 'raw', + 'embed' ); // Custom flood filters. Detect flood attacks and reject new posts if there's a positive match. @@ -583,16 +584,21 @@ // Characters used to generate a random password (with Javascript) $config['genpassword_chars'] = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+'; + // Enable embedding (see below) + $config['enable_enbedding'] = false; + // Custom embedding (YouTube, vimeo, etc.) + // It's very important that you match the full string (with ^ and $) or things will not work correctly. $config['embedding'] = Array( Array( - '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9-]{10,11})(&|$)/i', - '' + '/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9-]{10,11})(&.+)?$/i', + // '', + '' ) ); // Embedding width and height - $config['embed_width'] = 200; - $config['embed_height'] = 164; + $config['embed_width'] = 300; + $config['embed_height'] = 246; // Enable IP range bans (eg. "127.*.0.1", "127.0.0.*", and "12*.0.0.1" all match "127.0.0.1"). -- cgit v1.3