Page 1 of 3

Plugin for [youtube] videos

Posted: Tue Dec 04, 2007 11:30 am
by Stian
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

Re: Plugin for [youtube] videos

Posted: Wed Dec 05, 2007 10:06 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Fri Dec 07, 2007 4:36 pm
by capkix
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. 

Re: Plugin for [youtube] videos

Posted: Fri Dec 07, 2007 6:19 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Sat Dec 08, 2007 4:18 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Sat Dec 08, 2007 7:09 pm
by capkix
Fantastic!!!

Great turn around for feature implementation.

Re: Plugin for [youtube] videos

Posted: Sat Dec 08, 2007 8:26 pm
by LukeDouglas
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?

Re: Plugin for [youtube] videos

Posted: Sat Dec 08, 2007 8:38 pm
by Stian
Luke,

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

Stian

Re: Plugin for [youtube] videos

Posted: Sat Dec 08, 2007 11:49 pm
by LukeDouglas
Bummer but thanks for the quick reply.

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

Re: Plugin for [youtube] videos

Posted: Sun Dec 09, 2007 2:54 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Sun Dec 09, 2007 11:03 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Mon Dec 10, 2007 3:18 pm
by tobiascontreras
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?

Re: Plugin for [youtube] videos

Posted: Mon Dec 10, 2007 3:48 pm
by Stian
Hm, I'll check this out in a couple of hours and come back to you...

S

Re: Plugin for [youtube] videos

Posted: Mon Dec 10, 2007 5:09 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Mon Dec 10, 2007 5:26 pm
by tobiascontreras
Excellent, it works.

Thanks a lot

Re: Plugin for [youtube] videos

Posted: Sat Dec 15, 2007 5:00 pm
by colmcille
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

Re: Plugin for [youtube] videos

Posted: Sat Dec 15, 2007 5:56 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Wed Dec 19, 2007 1:05 am
by felfert
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.

Re: Plugin for [youtube] videos

Posted: Sat Dec 22, 2007 7:03 pm
by mickscool
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???

Re: Plugin for [youtube] videos

Posted: Sat Dec 22, 2007 9:23 pm
by felfert
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/allvid ... se_id=6251

Cheers
-Fritz

Re: Plugin for [youtube] videos

Posted: Sun Jan 20, 2008 9:12 am
by coolwillye
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.

Re: Plugin for [youtube] videos

Posted: Sun Jan 20, 2008 7:00 pm
by Stian
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

Re: Plugin for [youtube] videos

Posted: Sun Jan 20, 2008 9:55 pm
by coolwillye
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.

Re: Plugin for [youtube] videos

Posted: Tue Jan 22, 2008 1:03 am
by coolwillye
Is there anything in the code that would restrict the security for accessing [youtube] videos?  Thanks.

Re: Plugin for [youtube] videos

Posted: Sun Mar 02, 2008 9:02 am
by wodadog
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

Re: Plugin for [youtube] videos

Posted: Tue Mar 11, 2008 1:18 am
by wodadog
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

Re: Plugin for [youtube] videos

Posted: Tue Mar 11, 2008 8:23 am
by Stian
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

Re: Plugin for [youtube] videos

Posted: Fri Apr 18, 2008 6:41 pm
by AmelFl
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?

Re: Plugin for [youtube] videos

Posted: Fri Apr 18, 2008 8:04 pm
by Stian
Eh, you are using [ instead of {, as stated very cleary in the instructions. Hm, crap...

Stian

Re: Plugin for [youtube] videos

Posted: Fri Apr 18, 2008 10:14 pm
by AmelFl
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.. :(