Version Description
Download this release
Release Info
Developer | freediver |
Plugin | Smart YouTube PRO |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- readme.txt +3 -17
- smartyoutube.php +3 -2
readme.txt
CHANGED
@@ -23,6 +23,9 @@ The plugin is designed to be small and fast and not use any external resources.
|
|
23 |
|
24 |
|
25 |
Change Log:
|
|
|
|
|
|
|
26 |
v2.0:
|
27 |
Suport for high quality videos from youtube
|
28 |
|
@@ -32,23 +35,6 @@ Rewritten old parts of plugin and general tweaks.
|
|
32 |
v1.9:
|
33 |
Added video autoplay option.
|
34 |
|
35 |
-
v1.8:
|
36 |
-
Solved problem with HTML validation, added full video in RSS feed.
|
37 |
-
|
38 |
-
v1.6:
|
39 |
-
Solved problem with WordPress handling special characters.
|
40 |
-
|
41 |
-
v1.5:
|
42 |
-
Reworked admin interface, add more features like video color and border.
|
43 |
-
|
44 |
-
v1.4:
|
45 |
-
All youtube servers work now (like uk.youtube.com, es.youtube.com).
|
46 |
-
|
47 |
-
v1.3:
|
48 |
-
The plugin now allows embedding video in comments too. Syntax is the same.
|
49 |
-
|
50 |
-
v1.2:
|
51 |
-
Added Width and Height option and made plugin code xHTML valid.
|
52 |
|
53 |
== Credits ==
|
54 |
|
23 |
|
24 |
|
25 |
Change Log:
|
26 |
+
v2.0.1:
|
27 |
+
Fixed high qualiy video issue.
|
28 |
+
|
29 |
v2.0:
|
30 |
Suport for high quality videos from youtube
|
31 |
|
35 |
v1.9:
|
36 |
Added video autoplay option.
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
== Credits ==
|
40 |
|
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: Easily insert YouTube videos in posts, comments and RSS feeds.
|
6 |
Author: Vladimir Prelovac
|
7 |
-
Version: 2.0
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
Updates:
|
@@ -425,7 +425,7 @@ if (is_feed())
|
|
425 |
}
|
426 |
|
427 |
function yte_check($the_content) {
|
428 |
-
if(strpos($the_content, "httpv
|
429 |
|
430 |
$char_codes = array('×');
|
431 |
$replacements = array("x");
|
@@ -438,6 +438,7 @@ function yte_check($the_content) {
|
|
438 |
|
439 |
preg_match_all("/httpvh:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
|
440 |
foreach($matches as $match) {
|
|
|
441 |
$the_content = preg_replace("/httpvh:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/)([a-zA-Z0-9\-\_]{11})([^\s<]*)/", yte_tag($match[3], 1), $the_content, 1);
|
442 |
}
|
443 |
}
|
4 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
|
5 |
Description: Easily insert YouTube videos in posts, comments and RSS feeds.
|
6 |
Author: Vladimir Prelovac
|
7 |
+
Version: 2.0.1
|
8 |
Author URI: http://www.prelovac.com/vladimir/
|
9 |
|
10 |
Updates:
|
425 |
}
|
426 |
|
427 |
function yte_check($the_content) {
|
428 |
+
if(strpos($the_content, "httpv")!==FALSE ) {
|
429 |
|
430 |
$char_codes = array('×');
|
431 |
$replacements = array("x");
|
438 |
|
439 |
preg_match_all("/httpvh:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
|
440 |
foreach($matches as $match) {
|
441 |
+
|
442 |
$the_content = preg_replace("/httpvh:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/)([a-zA-Z0-9\-\_]{11})([^\s<]*)/", yte_tag($match[3], 1), $the_content, 1);
|
443 |
}
|
444 |
}
|