Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-09 14:38:06

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

[ORPHAN] arc_recent_youtube

NOTE: Plugin isn’t working any longer due to API changes from Youtube. Please adopt!

ORIGINAL POST:
Retrieve recent videos from the popular Youtube website and embed them into your website.

Main features:-

  • show a Youtube user’s recent uploads or favourites, etc.
  • outputs valid XHTML mark-up
  • customise the look of the player, choosing colours, dimensions and border
  • choose player’s language (default: English)
  • link to the Youtube video pages

arc_recent_youtube uses SimplePie, the files for which are included in the download.

Full details on the plugin’s information page.

Last edited by uli (2015-05-15 16:11:35)

Offline

#2 2010-01-09 19:32:04

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: [ORPHAN] arc_recent_youtube

has anyone been using this plugin? simplepie never fails to give me a headache. simplepie is in the lib folder, and it also even made its own cache folder called simplepie_cache. now visit the page where it’s supposed to get called and:

Fatal error: require_once() [function.require]: Failed opening required ‘/editedPath/public_html/textpattern/lib/simplepie.inc’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /editedPath/public_html/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 37

Offline

#3 2010-02-19 22:04:17

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [ORPHAN] arc_recent_youtube

How does this plugin display all the recent videos?


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#4 2010-02-24 13:04:32

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

Re: [ORPHAN] arc_recent_youtube

rathersplendid wrote:

How does this plugin display all the recent videos?

Ages since I last looked at this plugin, but as far as I remember the videos are output separated in the standard Textpattern way by defining the break tag using the break attribute. By default it separates videos using a new line (<br />). Does this answer your question?

Offline

#5 2015-03-25 11:40:24

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [ORPHAN] arc_recent_youtube

Is it possible to display them horizontally?

- presumably it should be easy to modify the code a little to achieve this, but I’ve no idea how to do that.

Offline

#6 2015-03-25 12:18:58

etc
Developer
Registered: 2010-11-11
Posts: 5,189
Website GitHub

Re: [ORPHAN] arc_recent_youtube

jameslomax wrote #289381:

Is it possible to display them horizontally?

Does break="" help?

Offline

#7 2015-03-25 15:18:41

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [ORPHAN] arc_recent_youtube

Thanks. I don’t know.
I thought that might be css – googled it and apparently its not.
Then noticed break in the code
Tried these:

break="0"
break =
break = ""
deleting the entire line

- none of them worked. I’m assuming if you remove the break the video players will flow horizontally.

Offline

#8 2015-03-25 15:29:50

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [ORPHAN] arc_recent_youtube

……not sure that’s clear. So far as I can see the relevant code to edit is this:

'simplepie' => $txpcfg['txpath'].'/lib/simplepie.inc',
                     'vlabel'    => '1',
		'vlabeltag' => 'h4',
		'break'     => 'br',
		'wraptag'   => '',
		'class'     => __FUNCTION__
    ),$atts));

etc
And possibly this:

return doLabel($label, $labeltag).doWrap($out, $wraptag, $break, $class);

Offline

#9 2015-03-25 15:55:00

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [ORPHAN] arc_recent_youtube

OK now I’m getting somewhere. For some reason I had to disable vlabel:

'vlabel'    => '0',

Offline

#10 2015-03-25 16:18:43

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [ORPHAN] arc_recent_youtube

I guess Oleg/etc meant adding break="" as an attribute to your arc_recent_youtube tag.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#11 2015-03-25 18:55:47

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [ORPHAN] arc_recent_youtube

Thanks. I don’t understand that, however. The tag is this –

<txp:arc_recent_youtube user=“bbc” />

So would it simply be this?

<txp:arc_recent_youtube user=“bbc” break=""/>

- I’ll try that. However, I’ve got other problems and can’t do anything at the moment

Last edited by jameslomax (2015-03-25 19:04:48)

Offline

#12 2015-03-25 20:17:34

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

Re: [ORPHAN] arc_recent_youtube

Watch your smart quotes, James–

<txp:arc_recent_youtube user=“bbc” />

…should be:

<txp:arc_recent_youtube user="bbc" />

I’m not sure what effect it would have to use whizzy quotes, but Bad Stuff might happen. Brrr.

Offline

Board footer

Powered by FluxBB