Smart YouTube PRO - Version 2.7.3

Version Description

Download this release

Release Info

Developer freediver
Plugin Icon 128x128 Smart YouTube PRO
Version 2.7.3
Comparing to
See all releases

Code changes from version 2.7.1 to 2.7.3

Files changed (4) hide show
  1. i/paypal.gif +0 -0
  2. i/twit.png +0 -0
  3. readme.txt +3 -0
  4. smartyoutube.php +23 -19
i/paypal.gif ADDED
Binary file
i/twit.png ADDED
Binary file
readme.txt CHANGED
@@ -33,6 +33,9 @@ Main Features:
33
 
34
  Change Log:
35
 
 
 
 
36
  v2.7
37
  - Added support for sidebar widget videos
38
 
33
 
34
  Change Log:
35
 
36
+ v2.7.3
37
+ - Removed annotiations by default
38
+
39
  v2.7
40
  - Added support for sidebar widget videos
41
 
smartyoutube.php CHANGED
@@ -4,10 +4,11 @@ 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: 2.7.1
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
 
11
  2.7 - Supports a sidebar widget for videos
12
  2.6 - Added option to remove search button
13
  2.5 - Added DVD quality support (httpvq)
@@ -22,11 +23,15 @@ Updates:
22
  1.5 - Added new admin interface and more options to control the video
23
 
24
  To-Doo:
 
 
25
  - add editor button
 
26
  - localization
 
27
  */
28
 
29
- $yte_localversion="2.7";
30
 
31
  $CustomColors=array (
32
  "blank" => array("d6d6d6","f0f0f0"),
@@ -299,24 +304,23 @@ text-decoration:none;
299
 
300
  echo <<<END
301
  <div class="wrap" style="max-width:950px !important;">
302
- <h2>Smart YouTube $yte_localversion</h2>
303
 
304
  <div id="poststuff" style="margin-top:10px;">
305
 
306
  <div id="sideblock" style="float:right;width:220px;margin-left:10px;">
307
- <h3>Information</h3>
308
  <div id="dbx-content" style="text-decoration:none;">
309
- <img src="$imgpath/home.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube"> Smart YouTube Home</a><br /><br />
310
- <img src="$imgpath/help.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/forum"> Plugin forums</a><br /><br />
311
- <img src="$imgpath/rate.png"><a style="text-decoration:none;" href="http://wordpress.org/extend/plugins/smart-youtube/"> Rate Smart YouTube</a><br /><br />
312
- <img src="$imgpath/more.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins"> My WordPress Plugins</a><br /><br />
313
- <br />
314
-
315
- <p align="center">
316
- <img src="$imgpath/p1.png"></p>
317
-
318
- <p> <img src="$imgpath/idea.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/services"> Need a WordPress Expert?</a></p>
319
- </div>
320
  </div>
321
 
322
  <div id="mainblock" style="width:710px">
@@ -325,7 +329,7 @@ text-decoration:none;
325
  <form name="yteform" action="$action_url" method="post">
326
  <input type="hidden" name="submitted" value="1" />
327
  <input type="hidden" id="_wpnonce" name="_wpnonce" value="$nonce" />'
328
- <h3>Usage</h3>
329
 
330
  <p>To use the video in your posts, paste YouTube video URL with <strong>httpv://</strong> (notice the 'v'). </p>
331
  <p><strong>Important:</strong> The URL should just be copied into your post normally and the letter 'v' added, do not create a link of it.</p>
@@ -333,7 +337,7 @@ text-decoration:none;
333
  <p>If you want to embed high quality video (for thuse videos that have their HQ counterparts) use httpvh:// instead (Video High).</p>
334
  <p>If you want to embed HD Quality (DVD quality 720p) video use httpvhd:// instead (Video High Defintion).</p>
335
 
336
- <h3>Options</h3>
337
  <p> You can adjust the way your embeded youtube videos behave in the options below.</p>
338
  <p><strong>Video settings</strong></p>
339
 
@@ -461,9 +465,9 @@ global $CustomColors;
461
  // if ( strpos($_SERVER['HTTP_USER_AGENT'], "iPhone") || strpos($_SERVER['HTTP_USER_AGENT'], "iPod") )
462
 
463
  if ($valid=="off")
464
- $yte_tag = '<!-- Smart Youtube --><span class="youtube"><object width="'.$width.'" height="'.$height.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'"></param><param name="allowFullScreen" value="true"></param><embed src="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'" type="application/x-shockwave-flash" allowfullscreen="true" width="'.$width.'" height="'.$height.'" ></embed><param name="wmode" value="transparent" /></object></span>';
465
  else
466
- $yte_tag = '<!-- Smart Youtube --><span class="youtube"><object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" data="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent" /></object></span>';
467
 
468
 
469
 
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: 2.7.3
8
  Author URI: http://www.prelovac.com/vladimir/
9
 
10
  Updates:
11
+ 2.7.3 - Removed annotiations
12
  2.7 - Supports a sidebar widget for videos
13
  2.6 - Added option to remove search button
14
  2.5 - Added DVD quality support (httpvq)
23
  1.5 - Added new admin interface and more options to control the video
24
 
25
  To-Doo:
26
+ - play playlists
27
+ - marinas javascript suggestion for hq videos
28
  - add editor button
29
+ - The plugin places a preview image in the RSS feed which is great, but it links to the video on http://www.youtube.com. I would like to change it so the image links to the blog post so I can generate some traffic on my blog.
30
  - localization
31
+ - the images appear under the embedded Smart Youtube videos. Is there any way to edit the z-index for Smart Youtube CSS? I
32
  */
33
 
34
+ $yte_localversion="2.7.3";
35
 
36
  $CustomColors=array (
37
  "blank" => array("d6d6d6","f0f0f0"),
304
 
305
  echo <<<END
306
  <div class="wrap" style="max-width:950px !important;">
307
+ <h2>Smart YouTube</h2>
308
 
309
  <div id="poststuff" style="margin-top:10px;">
310
 
311
  <div id="sideblock" style="float:right;width:220px;margin-left:10px;">
312
+ <h2>Information</h2>
313
  <div id="dbx-content" style="text-decoration:none;">
314
+ <img src="$imgpath/home.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube"> Smart Youtube Home</a><br /><br />
315
+ <img src="$imgpath/rate.png"><a style="text-decoration:none;" href="http://wordpress.org/extend/plugins/smart-youtube/"> Rate this plugin</a><br /><br />
316
+ <img src="$imgpath/help.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/forum"> Support and Help</a><br />
317
+ <p >
318
+ <a style="text-decoration:none;" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2567254"><img src="$imgpath/paypal.gif"></a>
319
+ </p><br />
320
+ <img src="$imgpath/more.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/wordpress-plugins"> Cool WordPress Plugins</a><br /><br />
321
+ <img src="$imgpath/twit.png"><a style="text-decoration:none;" href="http://twitter.com/vprelovac"> Follow updates on Twitter</a><br /><br />
322
+ <img src="$imgpath/idea.png"><a style="text-decoration:none;" href="http://www.prelovac.com/vladimir/services"> Need a WordPress Expert?</a>
323
+ </div>
 
324
  </div>
325
 
326
  <div id="mainblock" style="width:710px">
329
  <form name="yteform" action="$action_url" method="post">
330
  <input type="hidden" name="submitted" value="1" />
331
  <input type="hidden" id="_wpnonce" name="_wpnonce" value="$nonce" />'
332
+ <h2>Usage</h2>
333
 
334
  <p>To use the video in your posts, paste YouTube video URL with <strong>httpv://</strong> (notice the 'v'). </p>
335
  <p><strong>Important:</strong> The URL should just be copied into your post normally and the letter 'v' added, do not create a link of it.</p>
337
  <p>If you want to embed high quality video (for thuse videos that have their HQ counterparts) use httpvh:// instead (Video High).</p>
338
  <p>If you want to embed HD Quality (DVD quality 720p) video use httpvhd:// instead (Video High Defintion).</p>
339
 
340
+ <h2>Options</h2>
341
  <p> You can adjust the way your embeded youtube videos behave in the options below.</p>
342
  <p><strong>Video settings</strong></p>
343
 
465
  // if ( strpos($_SERVER['HTTP_USER_AGENT'], "iPhone") || strpos($_SERVER['HTTP_USER_AGENT'], "iPod") )
466
 
467
  if ($valid=="off")
468
+ $yte_tag = '<!-- Smart Youtube --><span class="youtube"><object width="'.$width.'" height="'.$height.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&iv_load_policy=3&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'"></param><param name="allowFullScreen" value="true"></param><embed src="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&iv_load_policy=3&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'" type="application/x-shockwave-flash" allowfullscreen="true" width="'.$width.'" height="'.$height.'" ></embed><param name="wmode" value="transparent" /></object></span>';
469
  else
470
+ $yte_tag = '<!-- Smart Youtube --><span class="youtube"><object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" data="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&iv_load_policy=3&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'"><param name="movie" value="'.htmlspecialchars('http://www.youtube.com/v/'.$file.'&rel='.$disp_rel.'&color1='.$CustomColors[$disp_color][0].'&color2='.$CustomColors[$disp_color][1].'&border='.$disp_border.'&fs=1&hl=en&autoplay='.$autoplay.'&iv_load_policy=3&showsearch='.$disp_search, ENT_QUOTES).$high.$time.'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent" /></object></span>';
471
 
472
 
473