GetSimple Support Forum
Youtube Video Loader - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Youtube Video Loader (/showthread.php?tid=8412)



Youtube Video Loader - Glaucius - 2016-05-12

Youtube Video Loader Support Thread


RE: Youtube Video Loader - Glaucius - 2016-05-12

Updated the syntax from:

{http://www.youtube.com/watch?v=zt1uKrUiwpw}

To:

{% http://www.youtube.com/watch?v=zt1uKrUiwpw %}


Bug fix! - Glaucius - 2016-07-02

Problem with the " " added by the page editor solved.

I.E.:
{% https://www.youtube.com/watch?v=XXXXXXX %}
instead of:
{% https://www.youtube.com/watch?v=XXXXXXX %}

Now it works in both cases!


RE: Youtube Video Loader - macoffers - 2016-11-01

(2016-07-02, 14:37:12)Glaucius Wrote: Problem with the " " added by the page editor solved.

I.E.:
{% https://www.youtube.com/watch?v=XXXXXXX %}
instead of:
{% https://www.youtube.com/watch?v=XXXXXXX %}

Now it works in both cases!

I don't understand why the plugin is not working. Confused
I use GS version 3.3.10
I've activated the plugin, and pasted as a test;
{% http://www.youtube.com/watch?v=zt1uKrUiwpw %}


but the video does not show up, only the pasted into a page the text as above:
{% http://www.youtube.com/watch?v=zt1uKrUiwpw %}


Do I need some additional plugin?

Thank you!


RE: Youtube Video Loader - datiswous - 2016-11-03

Not sure, but it might interfere with DynPages plugin. That plugin also uses {% %}

You can test by disabling DynPages plugin


RE: Youtube Video Loader - Blackneron - 2016-11-09

(2016-11-01, 03:07:14)macoffers Wrote:
(2016-07-02, 14:37:12)Glaucius Wrote: Problem with the " " added by the page editor solved.

I.E.:
{% https://www.youtube.com/watch?v=XXXXXXX %}
instead of:
{% https://www.youtube.com/watch?v=XXXXXXX %}

Now it works in both cases!

I don't understand why the plugin is not working. Confused
I use GS version 3.3.10
I've activated the plugin, and pasted as a test;
{% http://www.youtube.com/watch?v=zt1uKrUiwpw %}


but the video does not show up, only the pasted into a page the text as above:
{% http://www.youtube.com/watch?v=zt1uKrUiwpw %}


Do I need some additional plugin?

Thank you!

Hi,

Maybe you didn't use a https:// URL...
If you use http:// it will not work...

If you want it to work it with http:// AND https://, change the regex pattern(s) in the file 'youtube_video_loader.php' from:


Code:
'/\{%(.| )https\:\/\/www\.youtube\.com\/watch\?v=......./'

to

Code:
'/\{%(.| )https?\:\/\/www\.youtube\.com\/watch\?v=......./'


The added '?' character is the only change...

Hope then it will work Smile

Have a nice day!


RE: Youtube Video Loader - bensayers - 2017-02-28

Hi you might want to update the URL in your examples to include the "s" in https:// ({% http://www.youtube.com/watch?v=zt1uKrUiwpw %}) - it wasn't working for me then I finally came here and saw that suggestion.


RE: Youtube Video Loader - olmy - 2019-04-29

I had to modify yourtube_video_loader.php to get it to work:


PHP Code:
function youtube_video_embed($id,$w,$h){
 return "<div style='
 position:relative;
 padding-bottom:56.25%;
 padding-top:30px;
 height:0;
 overflow:hidden;'>
<iframe  style='
 position:absolute;
 top:0;
 left:0;
 width:100%;
 height:100%;' 
 src='https://www.youtube.com/embed/
$id
 allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' 
 frameborder='0' 
 allowfullscreen>
</iframe>
</div>"
;