Plugin for [youtube] videos

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Plugin for [youtube] videos

Postby Stian » Tue Dec 04, 2007 11:30 am

I have just created my first plugin, and it is available at http://joomlacode.org/gf/project/[youtube]/

It's a simple plugin for displaying [youtube] videos in your content items, and can be invoked by adding {[youtube]}xxxxxx{/[youtube]} in the editor, where xxxxxx is the [youtube] ID.

All feedback, tips and tricks is much appreciated!

Best, Stian

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Wed Dec 05, 2007 10:06 pm

Beta 2 of the plugin is now available for download. The change from Beta 1 is added language support through .ini files, and better description of the various parameters. Next step is support for playlists, and not just single videos.

Languages included is English and Norwegian. Please provide additional languages files by posting them here.

Any feedback is much appreciated!

Stian

capkix
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Sep 26, 2007 10:21 pm
Location: Minnesota

Re: Plugin for [youtube] videos

Postby capkix » Fri Dec 07, 2007 4:36 pm

Great little plug in!  I had just started using the Custom Player (http://www.[youtube].com/custom_player) in a module position a couple days ago.  Once you've implemented height/width and playlists, I'll be using your plugin all over my content items.  Given your current development rate, that should be about 36 hours after Beta 2 was launched...

:-)  Good luck and keep up the good work. 

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Fri Dec 07, 2007 6:19 pm

capkix,

glad you liked it ;-)

It's my first plugin for Joomla!, so all feedback is much appreciated. I already have support for width/height ready, and will add support for playlists before I upload it. Tomorrow perhaps?

Stian

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Sat Dec 08, 2007 4:18 pm

The latest version is now up for grabs at http://joomlacode.org/gf/project/[youtube]/ , with added support for width/height, playlists, custom players and rendering of the Flash player through the SWFObject.

Stian

capkix
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Sep 26, 2007 10:21 pm
Location: Minnesota

Re: Plugin for [youtube] videos

Postby capkix » Sat Dec 08, 2007 7:09 pm

Fantastic!!!

Great turn around for feature implementation.

User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 175
Joined: Sat Dec 08, 2007 8:23 pm

Re: Plugin for [youtube] videos

Postby LukeDouglas » Sat Dec 08, 2007 8:26 pm

Stian,

Downloaded the plugin for Joomla, version 1.0.13.  Attempted to install via Components, Module and Mambots.  None worked. Is this a plugin that will only work for 1.5 and/or is this to be installed another way?

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Sat Dec 08, 2007 8:38 pm

Luke,

yes, this is a native 1.5 plugin, and will not work in 1.0.xx. Sorry about that...

Stian

User avatar
LukeDouglas
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 175
Joined: Sat Dec 08, 2007 8:23 pm

Re: Plugin for [youtube] videos

Postby LukeDouglas » Sat Dec 08, 2007 11:49 pm

Bummer but thanks for the quick reply.

Do you know if a [youtube] module is available for pre 1.5 versions?

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Sun Dec 09, 2007 2:54 pm

I haven't tried it myself, but I guess the one below is what you're looking for...

http://extensions.joomla.org/component/ ... Itemid,35/

Stian

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Sun Dec 09, 2007 11:03 pm

I need some help/input, please...

I my code I use the following to decide if it's a single video, playlist or custom player:

Code: Select all

$playerType = 'v';
if (strlen($[youtube]) > 11) $playerType = 'p';
if (strlen($[youtube]) > 16) $playerType = 'cp';


In my "research" I've found that the various players have ID of the exact same length, so the code above will do, for all I know.

Now, the ID for a custom player is something like "vjVQa1PpcFP4KN2TNRQxQm1dwssDUECOZYGeLvTm2rY=". This is probably a longshot, but does anyone know if some data can be extracted from that ID? What I'm after is if the player is the large version (with thumbnails of other videos to the right) or not.

I guess I could use the [youtube] API to find out (alongside a bunch of other stuff), but that's another ballgame, and not something I plan to implement before version 2. Perhaps.

All input on this is much appreciated!

Stian

tobiascontreras
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Dec 10, 2007 3:11 pm

Re: Plugin for [youtube] videos

Postby tobiascontreras » Mon Dec 10, 2007 3:18 pm

I have Joomla 1.5 and try to install your plugin, it works but the title of the articles, read more link and author dissapear from all site articles.

I uninstalled and everything came back to normal.

any idea?

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Mon Dec 10, 2007 3:48 pm

Hm, I'll check this out in a couple of hours and come back to you...

S

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Mon Dec 10, 2007 5:09 pm

tobiascontreras,

thank you very much for pointing this out for me!

Stupid bug that have now been fixed. Please download the latest version (1.1) from http://joomlacode.org/gf/project/[youtube]/

This version also include German language support, and SWFObject script have been moved to the section.

Stian

tobiascontreras
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Dec 10, 2007 3:11 pm

Re: Plugin for [youtube] videos

Postby tobiascontreras » Mon Dec 10, 2007 5:26 pm

Excellent, it works.

Thanks a lot

User avatar
colmcille
Joomla! Intern
Joomla! Intern
Posts: 96
Joined: Wed Aug 15, 2007 10:08 pm
Location: Dubin City
Contact:

Re: Plugin for [youtube] videos

Postby colmcille » Sat Dec 15, 2007 5:00 pm

Hi,

I used the allvideo plugin in 1.0 and that worked fine. Installing allvideo plugin in 1.5 has not worked. I was going ..oh sheet...

did a quick look and alighted upon your excellent plugin! Thats excellent mate!

How do you start to create a plugin? What do you need to study?

Colm
Colmcille Power, Dublin City
Skype colmpower
http://docs.joomla.org/Beginners [This is the First Resource you should check]
http://OpenSourceCommunity.org/

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Sat Dec 15, 2007 5:56 pm

Colm,

happy you liked it ;-)

Assuming you have some basic knowledge about PHP I would start by exploring the plugins in the standard installation of Joomla! 1.5 (/plugins and /administrator/plugins) Lots can be learned by studing the code of others, and the standard ones are coded the "correct" way.

There are also 2 excellent books on the subject:
http://www.packtpub.com/Joomla-Extensions/book
http://www.packtpub.com/joomla-one-poin ... ework/book

Happy coding!

Stian

User avatar
felfert
Joomla! Explorer
Joomla! Explorer
Posts: 397
Joined: Fri Apr 13, 2007 10:37 pm
Location: Ludwigsburg, Germany
Contact:

Re: Plugin for [youtube] videos

Postby felfert » Wed Dec 19, 2007 1:05 am

colmcille wrote:Hi,

I used the allvideo plugin in 1.0 and that worked fine. Installing allvideo plugin in 1.5 has not worked. I was going ..oh sheet...

did a quick look and alighted upon your excellent plugin! Thats excellent mate!

How do you start to create a plugin? What do you need to study?

Colm


I'm currently rewriting it for Joomla 1.5 (and extending/improving it as well) ... Nothing release yet - i got my project just approved here. Still some work to do, just watch this space: ... hmm developerforge just went down ... :-( ... anyway: Simply search for "AllVideos Reloaded". ... well and perhaps Stian an I can join our efforts ... we'll see.

mickscool
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Wed Jul 11, 2007 3:15 am

Re: Plugin for [youtube] videos

Postby mickscool » Sat Dec 22, 2007 7:03 pm

felfert wrote:
colmcille wrote:Hi,

I used the allvideo plugin in 1.0 and that worked fine. Installing allvideo plugin in 1.5 has not worked. I was going ..oh sheet...

did a quick look and alighted upon your excellent plugin! Thats excellent mate!

How do you start to create a plugin? What do you need to study?

Colm


I'm currently rewriting it for Joomla 1.5 (and extending/improving it as well) ... Nothing release yet - i got my project just approved here. Still some work to do, just watch this space: ... hmm developerforge just went down ... :-( ... anyway: Simply search for "AllVideos Reloaded". ... well and perhaps Stian an I can join our efforts ... we'll see.


Hi,
I was also surprised to find out that AllVideos 2.4 plugin does not works with my Joomla 1.5 RC3 instance.

I noticed that you have some alpha version files there, willl they work with Joomla 1.5 RC3???

User avatar
felfert
Joomla! Explorer
Joomla! Explorer
Posts: 397
Joined: Fri Apr 13, 2007 10:37 pm
Location: Ludwigsburg, Germany
Contact:

Re: Plugin for [youtube] videos

Postby felfert » Sat Dec 22, 2007 9:23 pm

mickscool wrote:Hi,
I was also surprised to find out that AllVideos 2.4 plugin does not works with my Joomla 1.5 RC3 instance.

I noticed that you have some alpha version files there, willl they work with Joomla 1.5 RC3???


They do. Getting AllVideos working navtively (no legacy mode needed) is the whole reason for that fork. For info about the reason for the alpha status, have a look here: http://joomlacode.org/gf/project/allvideos15/frs/?action=FrsReleaseView&release_id=6251

Cheers
-Fritz

coolwillye
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Jan 02, 2008 3:15 am

Re: Plugin for [youtube] videos

Postby coolwillye » Sun Jan 20, 2008 9:12 am

Hi.  I tried using the plugin.  When I enable include swf script and enable/disable use swf script, or when I disable both include swf script and use swf script, I get the following error:

Internet Explorer cannot open the internet site

When I have the script disabled, but use swf enabled, then the page will appear without the video screen.  Do you know what I am missing?

Thank you.

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Sun Jan 20, 2008 7:00 pm

So, the short version is that the plugin doesn't work at all?

Have you tried it in for example Firefox? If it works there I think you need to tweak the security/privacy options in IE.

Stian

coolwillye
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Jan 02, 2008 3:15 am

Re: Plugin for [youtube] videos

Postby coolwillye » Sun Jan 20, 2008 9:55 pm

Yes, it does work in Firefox.  How could I get it to work with IE for the common user?  I tried to load on IE on 2 different computers with the same results.  Is there a way for it to work with default IE security settings?  Thanks.

coolwillye
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Wed Jan 02, 2008 3:15 am

Re: Plugin for [youtube] videos

Postby coolwillye » Tue Jan 22, 2008 1:03 am

Is there anything in the code that would restrict the security for accessing [youtube] videos?  Thanks.

wodadog
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Feb 15, 2008 3:21 pm

Re: Plugin for [youtube] videos

Postby wodadog » Sun Mar 02, 2008 9:02 am

hi
this is a top plugin

would you be able to explain how to use all the parameters that you have created - width/height, playlists, etc

eg if this is the string to show {[youtube]}xxxxxx{/[youtube]} - where do you add the parameters, and how!

thanks

frank

wodadog
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Feb 15, 2008 3:21 pm

Re: Plugin for [youtube] videos

Postby wodadog » Tue Mar 11, 2008 1:18 am

Hi this Plugin is awersome

i can use it in articles no problem

but I am trying to create a customs html module, which will appear on the front page

but when i display it on the front page all i get is the code

is this possible

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Tue Mar 11, 2008 8:23 am

Hi, all!

Thanks for all your feedback. I'm really bussy these days, and haven't the time to answer all your questions. Soon I will update it to a new version that will fix some of your problems. The current version will only work in articles, but the new one will work everywhere, including Custom HTML modules.

Stian

AmelFl
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Sat Mar 17, 2007 7:27 pm

Re: Plugin for [youtube] videos

Postby AmelFl » Fri Apr 18, 2008 6:41 pm

crap

I tried like 3 diff [youtube] plugin and non of them seem to work for me

this is what I get

Image

what the hell am I doing wrong?

Stian
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 247
Joined: Sat May 20, 2006 7:58 am
Location: Norway
Contact:

Re: Plugin for [youtube] videos

Postby Stian » Fri Apr 18, 2008 8:04 pm

Eh, you are using [ instead of {, as stated very cleary in the instructions. Hm, crap...

Stian

AmelFl
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Sat Mar 17, 2007 7:27 pm

Re: Plugin for [youtube] videos

Postby AmelFl » Fri Apr 18, 2008 10:14 pm

Stian wrote:Eh, you are using [ instead of {, as stated very cleary in the instructions. Hm, crap...

Stian


you are right, I saw it 5 minutes later, but I tried using {} and it shows nothing now.. :(


Return to “Extensions for Joomla! 1.5”

Who is online

Users browsing this forum: No registered users and 8 guests