Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-16 17:14:23

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

arc_youtube

Current versions: v2.0.2

Main features:-

  • fetch Youtube videos using the video’s ID or url
  • embed Youtube playlists
  • option to use custom field to associate videos with articles
  • outputs valid XHTML mark-up
  • customise the look of the player using the Youtube player themes
  • option to autoplay video
  • link to Youtube video page

Full details on the plugin’s information page.

Last edited by monkeyninja (2014-02-16 13:31:34)

Offline

#2 2009-06-12 17:43:20

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

A new version of the plug-in is now available with a few new features:-
  • now works with playlists
  • new ‘auto’ attribute to enable video autoplay
  • updated help documentation

Offline

#3 2009-10-27 20:48:09

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: arc_youtube

Great plug in – been using it for a while – however… on the 4.2.0 site that I’m building I’m getting:

Tag error: <txp:arc_youtube video=“HsG2rJvDKjM” /> -> Notice: Undefined variable: p on line 70

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\publish.php:1106 arc_youtube()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\publish.php:1028 processTags()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\publish\taghandlers.php:2062 parse()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\lib\txplib_misc.php(594) : eval()’d code:139 body()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\lib\txplib_misc.php(594) : eval()’d code:15 rah_metas_description()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\publish.php:1106 rah_metas()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\publish.php:1028 processTags()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\textpattern\publish.php:506 parse()
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ukufonw\index.php:45 textpattern()

Offline

#4 2009-11-15 14:23:49

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

douglgm wrote:

Great plug in – been using it for a while – however… on the 4.2.0 site that I’m building I’m getting:

Tag error: <txp:arc_youtube video=“HsG2rJvDKjM” /> -> Notice: Undefined variable: p on line 70

Sorry for being incredibly slow at responding. I believe that the latest version of the plugin (v0.2.1) should eliminate this error. Let me know if it still isn’t working and I will investigate further (and hopefully a bit quicker). Download the latest version of the plugin over on my website.

Offline

#5 2009-11-15 20:07:49

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

Re: arc_youtube

Ah, fantastic! That seems to have done the trick!

Offline

#6 2010-07-04 18:01:37

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

After reading about wet’s Tube Fittings site yesterday I’ve added an aspect ratio to arc_youtube. From version 0.3 you now just need to specify a width or height and an aspect ratio, or you can specify a width and height as before, to size the embedded video.

I’ve also thrown in a couple of extra options: videos can be shown in HD by default and there’s an enhanced privacy setting (which according to Youtube stops the use of cookies).

Offline

#7 2010-07-05 07:33:43

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: arc_youtube

I’ve installed the latest version and it see,s to me that my videos changed ratio with black borders…
Can you send me a link to the previous version of arc_youtube?
Thanks in advance.

Offline

#8 2010-07-05 17:52:54

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

candyman wrote:

I’ve installed the latest version and it see,s to me that my videos changed ratio with black borders…
Can you send me a link to the previous version of arc_youtube?
Thanks in advance.

Here’s a link to arc_youtube v0.2.1. You shouldn’t need to downgrade though. You can still define a width and height like in the earlier versions – this overrides any aspect ratio. I assume your issue is with black borders in the video rather than around the player?

Offline

#9 2010-09-02 18:13:16

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: arc_youtube

Andy, it would be helpful if the topic start contained all the information about the current release of the plugin and a working URL (and perhaps a summary of what was added/fixed in each version). That way, if this thread becomes a few pages long, people don’t have to search the entire thread to find a working download URL ;)
The info link on textpattern.org is broken as well.

Last edited by ruud (2010-09-02 18:14:18)

Offline

#10 2010-09-02 19:00:50

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

ruud wrote:

Andy, it would be helpful if the topic start contained all the information about the current release of the plugin and a working URL (and perhaps a summary of what was added/fixed in each version). That way, if this thread becomes a few pages long, people don’t have to search the entire thread to find a working download URL ;)
The info link on textpattern.org is broken as well.

Fixed the link(s), thanks for pointing it out.

Offline

#11 2011-09-26 13:50:43

AdamK
Member
From: Kraków, Poland
Registered: 2009-08-11
Posts: 47

Re: arc_youtube

Hello

Youtube has added the URL-shortened ver. of the address, and it’s now the default in the “share” field there.

So I have added 3 lines of code to use the new urls:

In the beginning, just after if preg_match... block I’ve added:

elseif (strpos($video, 'youtu.be')) {

$v = substr($video, 16);

}

And now one can paste the url, and voila :)

Yours
Adam

Last edited by AdamK (2011-09-26 13:52:31)

Offline

#12 2011-12-04 13:29:46

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: arc_youtube

I’ve added support for the Youtube short URLs as requested. Two new versions of the plugin are out today:

v0.4 – old embed code with bug fixes
v1.0 – Youtube’s new iFrame embed code

Further details can be found on my blog.

This is also my first plugin to auto-enable on install, making installation even easier!

Offline

Board footer

Powered by FluxBB