Version Description
- Now supports both youtube.com and youtu.be links
- Fixed single vs double dash problem
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 3.8.7 |
| Comparing to | |
| See all releases | |
Code changes from version 3.8.6 to 3.8.7
- readme.txt +9 -2
- smartyoutube.class.php +22 -7
- smartyoutube.php +1 -1
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: freediver
|
|
| 3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
| 4 |
Tags: youtube, video, play, media, Post, posts, admin
|
| 5 |
Requires at least: 2.0
|
| 6 |
-
Tested up to: 3.1.
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
Smart Youtube plugin allows you to insert full featured YouTube videos into your post, comments and in RSS feed.
|
|
@@ -20,7 +20,7 @@ The plugin is designed to be small and fast and not use any external resources.
|
|
| 20 |
|
| 21 |
Main Features:
|
| 22 |
|
| 23 |
-
* Easily embeds YouTube videos (normal/HD)
|
| 24 |
* Embed YouTube playlist (normal/HD)
|
| 25 |
* Supports latest high quality video protocols (360p and HD quality 720p)
|
| 26 |
* Allows full YouTube customization (colors, border, size, full screen...)
|
|
@@ -37,6 +37,13 @@ Plugin by Vladimir Prelovac. Looking for <a href="http://www.prelovac.com/vladim
|
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
= 3.8.5 =
|
| 41 |
* Fixed transparency issues (thanks to John Landells)
|
| 42 |
* Added iframe playlist code
|
| 3 |
Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
|
| 4 |
Tags: youtube, video, play, media, Post, posts, admin
|
| 5 |
Requires at least: 2.0
|
| 6 |
+
Tested up to: 3.1.2
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
Smart Youtube plugin allows you to insert full featured YouTube videos into your post, comments and in RSS feed.
|
| 20 |
|
| 21 |
Main Features:
|
| 22 |
|
| 23 |
+
* Easily embeds YouTube videos (normal/HD, both youtube.com and youtu.be links)
|
| 24 |
* Embed YouTube playlist (normal/HD)
|
| 25 |
* Supports latest high quality video protocols (360p and HD quality 720p)
|
| 26 |
* Allows full YouTube customization (colors, border, size, full screen...)
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
| 40 |
+
= 3.8.7 =
|
| 41 |
+
* Now supports both youtube.com and youtu.be links
|
| 42 |
+
* Fixed single vs double dash problem
|
| 43 |
+
|
| 44 |
+
= 3.8.6 =
|
| 45 |
+
* Brought back the loop option (thanks to John Kennedy)
|
| 46 |
+
|
| 47 |
= 3.8.5 =
|
| 48 |
* Fixed transparency issues (thanks to John Landells)
|
| 49 |
* Added iframe playlist code
|
smartyoutube.class.php
CHANGED
|
@@ -14,7 +14,7 @@ class SmartYouTube
|
|
| 14 |
|
| 15 |
function __construct()
|
| 16 |
{
|
| 17 |
-
$this->local_version = '3.8.
|
| 18 |
$this->custom_colors = array(
|
| 19 |
'blank' => array('d6d6d6', 'f0f0f0'),
|
| 20 |
'storm' => array('3a3a3a', '999999'),
|
|
@@ -394,15 +394,30 @@ END;
|
|
| 394 |
if (strpos($the_content, "httpv") !== false )
|
| 395 |
{
|
| 396 |
$char_codes = array('×', '–');
|
| 397 |
-
$replacements = array("x", "
|
| 398 |
$the_content = str_replace($char_codes, $replacements, $the_content);
|
| 399 |
|
| 400 |
|
| 401 |
-
preg_match_all("/http(v|vh|vhd):\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
|
| 407 |
preg_match_all("/http(vp|vhp):\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/view_play_list(\?p\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{16})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
|
| 408 |
foreach ($matches as $match)
|
| 14 |
|
| 15 |
function __construct()
|
| 16 |
{
|
| 17 |
+
$this->local_version = '3.8.7'; // TODO: Change this number???
|
| 18 |
$this->custom_colors = array(
|
| 19 |
'blank' => array('d6d6d6', 'f0f0f0'),
|
| 20 |
'storm' => array('3a3a3a', '999999'),
|
| 394 |
if (strpos($the_content, "httpv") !== false )
|
| 395 |
{
|
| 396 |
$char_codes = array('×', '–');
|
| 397 |
+
$replacements = array("x", "-");
|
| 398 |
$the_content = str_replace($char_codes, $replacements, $the_content);
|
| 399 |
|
| 400 |
|
| 401 |
+
preg_match_all("/http(v|vh|vhd):\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches['youtube.com'], PREG_SET_ORDER);
|
| 402 |
+
preg_match_all("/http(v|vh|vhd):\/\/([a-zA-Z0-9\-\_]+\.|)youtu\.be\/([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches['youtu.be'], PREG_SET_ORDER);
|
| 403 |
+
|
| 404 |
+
if (isset($matches['youtube.com']))
|
| 405 |
+
foreach ($matches['youtube.com'] as $match)
|
| 406 |
+
{
|
| 407 |
+
$the_content = preg_replace("/http".$match[1].":\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^\s<]*)/", $this->tag($match[4], $match[1], $match[5], $side), $the_content, 1);
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
if (isset($matches['youtu.be']))
|
| 411 |
+
{
|
| 412 |
+
|
| 413 |
+
foreach ($matches['youtu.be'] as $match)
|
| 414 |
+
{
|
| 415 |
+
|
| 416 |
+
$the_content = preg_replace("/http".$match[1].":\/\/([a-zA-Z0-9\-\_]+\.|)youtu\.be\/([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $this->tag($match[3], $match[1], $match[4], $side), $the_content, 1);
|
| 417 |
+
}
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
|
| 421 |
|
| 422 |
preg_match_all("/http(vp|vhp):\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/view_play_list(\?p\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{16})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
|
| 423 |
foreach ($matches as $match)
|
smartyoutube.php
CHANGED
|
@@ -4,7 +4,7 @@ Plugin Name: Smart Youtube
|
|
| 4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
| 5 |
Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
-
Version: 3.8.
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
| 4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
| 5 |
Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
|
| 6 |
Author: Vladimir Prelovac
|
| 7 |
+
Version: 3.8.7
|
| 8 |
Author URI: http://www.prelovac.com/vladimir/
|
| 9 |
|
| 10 |
|
