Recent Topics

1 Dec 20, 2005 22:51    

Update 2:
Now that the beta of b2evolution 1.8 is out, I've released this plugin. [url=http://manual.b2evolution.net/Plugins/youtube_plugin]Go get it![/url].

Update:
I have a new version of this plugin for b2evolution 1.7 beta. It takes advantage of some of the new plugin hooks. Numbers 3 and 4 from my list of issues are dealt with using the new tool menu tabs that you can create with a plugin. Number 5 below is now taken care of with the plugin settings. If you always post videos from the same youtube user account, then go to Settings->Plugins->YouTube Plugin and under the settings, check the box that says "Use this username by default" and put your username in the form, then save the settings. Now the YouTube button in the Write tab will jump straight to the listing of your videos. Get the file below and remove the .beta.txt from it, then put it in your plugins directory. I'll leave the 1.6-alpha version up for anyone who is still using that. Here's the [url=http://www.brendoman.com/dev/blogs/plugins/_youtube.plugin.php.beta.txt]YouTube plugin, version 0.5[/url].

------------------------------
YouTube.com is a site that hosts videos. It's similar to Fickr in some ways. If you've never used YouTube, basically, you create a video, then upload it. They create a flash version of your movie that you can load into any web page. The turnaround time is pretty good.

The problem before was that when you wanted to post your video on your b2evo blog you had to go to YouTube.com, get the ID for the video. Copy some code into your post, put the id into the code a couple of times, then post. And the post would only go through if you modified your _formatting.php file to allow the object tag.

This plugin lets you do it all from your b2evolution backoffice. And you don't have to edit any files. First, download this file, remove the .txt and place it in your plugins folder:

http://www.brendoman.com/media/_youtube.plugin.txt

Then install the plugin in the Settings>Plugins tab. Now when you go to write a post, there's a new button called "YouTube". Click on it and a window pops up. Enter a username and you get a list of videos posted by that user. (Use "personman" if you don't have an account and want to try it out.) Then click on the "Add it to your post" link next to one of the videos and the code will be added back into your post. Click preview or Save and the renderer will convert the youtube pseudotag into an obect tag and load up the video.

This works for b2evolution 1.6-alpha. When the beta comes out I'll have to change a few things.

I would love to hear some feedback. There are more things I may add. Let me know if you think it needs them . . .

1. paged results for users who have posted a lot of videos
2. Search by tag instead of just by user.
3. Right now the tools tab shows a short message when it's not in popup window mode. I'd like to get rid of that
4. Related to 3, the popup window has all of the tools. I could make a separate file, but I wanted to do it all in one file. Any ideas?
5. I could use a cookie to remember the last username entered. So if you're always posting your own videos, and from the same browser, then you don't have to retype the name.
6. I've also thought about making the popup window close as soon as you click on a link to add code to your post. I leave it open now, just to be consistent with the filemanager popup. What do you prefer?

Enoy the plugin and let me know what you think.

Edit: Hat tip to YaBBa for suggesting that I use a renderer to get around the html checker.

2 Dec 20, 2005 23:47

Could we see a preview of this in action?
So like the blog that you are using it on...

But it sounds good to me ;) but i don't think i could find a use for it :(

4 Dec 20, 2005 23:56

Cool, i don't like the way YouTube has done their flash files, i prefer the standard media components in flash than that but thats not something to do with you though.
Does the flash file load the movie into the flash dynamicly or is the movie embeded in the flash, or would i need to find that out myself....
Coz if it was dynamicly loaded i could have a look at using the standard components i talked about.

I was wondering if you could make one then for http://spikedhumor.com that would be grand!

But it really looks sweet! So good work to you!

5 Dec 21, 2005 00:02

YouTube has a developer API: http://www.youtube.com/dev and that's the only way I was able to do this. I send a request, get results in xml, then parse it. I don't see anything like that for spikedhumor and don't expect to, since they have a lot of ads, they probably don't want people loading their content remotely.

6 Dec 21, 2005 00:11

For each video on spikedhumor there is:


Grab this video!
Some useless code then:
<EMBED type="application/x-mplayer2" src="http://media.spikedhumor.com/9521/dunkfest.wmv" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" bgcolor="#000000" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="0" videoborder3d="-1" width="310" height="213" autostart="true" designtimesp="5311" loop="false"></EMBED>

I don't know, if i have some spare time i'll look into it.
And i'll download your plugin when my test blog is working again.[/quote]

7 Dec 21, 2005 01:12

as EdB would say :-

Gigglin' like bitches we are!

Phoenix plugin capabilities are cool. *tips hat off to developers*

¥

8 Dec 21, 2005 01:53

I would like to try this plugin, and have done the first bit, but am stuck on the bit that says "Then install the plugin in the Settings>Plugins tab."

In my admin area in Settings / Plugins tab, is there an install button that I should see?

9 Dec 21, 2005 02:01

Are you using b2evolution 1.6-alpha? It's really just available for early testing now, so you may not be unless you've set up a blog for testing purposes. If you are using 1.6, then go to the Settings tab, then click on the plugins subtab and it will show you a list of available plugins. YouTube Plugin will be in that list (if you remembered to remove the .txt from the filename.). Click on the link next to it that says "Install" and it will be installed.

12 Dec 21, 2005 15:42

Is this a phoenix plugin? If so is it a 'downloadable phoenix' or a CVS version plugin? I don't do videos since I rarely move, but for an app I'm doing I'm thinking others might dig on having it available. I'm planning on releasing my masterpiece when Francois gets off his lazy butt and makes an official release ;)

13 Dec 21, 2005 15:48

EdB, this is for 1.6-alpha. That's the one you can download. I hear that the beta (in CVS now) will require some changes to plugins. But if you're running the version from the download page, then this should work fine.

14 Dec 21, 2005 15:54

John, none of those validation errors are coming from this plugin. They're all coming from the flash pie chart in the sidebar. This is a test blog and the pie chart is just a test of the PHP/SWF charts lib built into 1.6.

My bad :oops: Well done

15 Jan 04, 2006 17:27

Funny it doesn't seem to work in my blog. I do have 1,6 alpha and the plugin installed. But when I log in with my loginname for youtube "mojoman" nothing happens not video list no nothing.

16 Jan 04, 2006 17:43

I put in your username and it showed your video in b2evolution for me. Do you know if your server has cURL enabled?

17 Jan 04, 2006 22:39

Was talking to my host and they don't support it... Does that mean that I cannot use the plugin? Must learn more about php and sql... Love the b2community though :D

18 Jan 04, 2006 22:45

I'll add in support for fopen. My webhost turns off allow_url_fopen, so I have to use cURL. But I can make it work with both.

19 Jan 04, 2006 23:10

allow_url_fopen = On :lol: Great!! Tnx a lot!

21 Jan 05, 2006 02:07

Tested your version. It did have a problem though. When tools.php opened up and I put in the login name I got this error.

This is YouTube plugin:
XML error: Invalid document end at line 1

Did put _youtube.plugin.php in a xml checker and it did pass. Not sure what can do it.. But I'm sure you do!

http://www.kamero.se

22 Jan 05, 2006 03:06

I set up an installation of 1.6-alpha on another server and made this plugin work with fopen. You can get the shiny new version 0.2 at the same link as before.

23 Jan 05, 2006 03:26

Great!!!!!!!! Thanks a lot ur the greatest :lol: Now I must just have good videos only.... You have been very helpful :!:

http://www.kamero.se

24 Jan 05, 2006 03:31

You're welcome. I'm glad it works for you. I knew I needed to add in support for servers that don't have cURL, but I had been putting it off. Thanks for giving me the motivation.

25 Jan 08, 2006 12:43

personman, I've just tried it on current CVS head, so here's a patch for making it Phoenix-beta aware:

diff -u _youtube.plugin.php _youtube.plugin.php.txt
--- _youtube.plugin.php 2006-01-08 12:34:55.000000000 +0100
+++ _youtube.plugin.php.txt     2006-01-05 03:02:13.000000000 +0100
@@ -30,7 +30,10 @@
        /*
         * These variables MAY be overriden.
         */
-       var $apply_rendering = 'opt-out';
+       var $is_tool = true;
+       var $apply_when = 'opt-out';
+       var $apply_to_html = true;
+       var $apply_to_xml = true;


        /**
@@ -101,7 +104,7 @@
         *                                                      (Output format, see {@link format_to_output()})
         * @return boolean true if we can render something for the required output format
         */
-       function RenderItemAsHtml( & $params )
+       function Render( & $params )
        {
                if( ! parent::Render( $params ) )
                {       // We cannot render the required format
@@ -116,15 +119,6 @@
        }


-       /**
-        * Also render XML.
-        */
-       function RenderItemAsXML( & $params )
-       {
-               return $this->RenderItemAsHtml( $params );
-       }
-
-

        /**
         * Event handler: Called when displaying editor buttons.
@@ -134,7 +128,7 @@
         * @param array Associative array of parameters
         * @return boolean did we display ?
         */
-       function AdminDisplayEditorButton( & $params )
+       function DisplayEditorButton( & $params )
        {
                ?>
        <input type="button" value="YouTube" class="ActionButton"                       onclick="pop_up_window( 'tools.php?mode=upload', 'fileman_upload' );" />
@@ -162,7 +156,7 @@
         * @param array Associative array of parameters
         * @return boolean did we display a toolbar?
         */
-       function AdminToolPayload( $params )
+       function ToolMenu( $params )
        {
        if ($_GET['mode'] == 'upload') {
                if (isset($_GET['ytuser']) ) {


This might save you some of your valuable time.. ;)

About the issues with the entry in the Tools menu: you could register a own tab for that (with the beta Plugin API). See the test plugin for AdminAfterMenuInit(), AdminTabAction() and AdminTabPayload().

26 Jan 08, 2006 15:08

Great, thank you, blueyed! I saw the tool menu subtabs in the demo site and I am planning on using one. That will be a big help with this plugin and others, too. Thanks again for your help.

27 Jan 09, 2006 22:40

I did an install from 1.7-beta CVS and updated this plugin (thanks again, blueyed). I put some of the new plugin hooks to use. Go back to the first post in this thread to read more about it.

28 Feb 12, 2006 01:01

hmmm... I installed the plugin but no change at the writing tab appeared in any way. what possible reasons could this have? :-/

29 Feb 12, 2006 01:11

What b2evo version are you using?

31 Feb 12, 2006 01:16

The linked version of the plugin in the first post seems to be for Phoenix Alpha, so this should fit.

Have you installed the plugin in Settings/Plugins?

32 Feb 12, 2006 01:21

I re-loaded it and re-installed it in the settings but it's not working :/

34 Feb 12, 2006 02:54

Well thanks again it's working now :)

35 Apr 07, 2006 01:25

personman, I've fixed the plugin for the current CVS (1.8), to use it on my own blog.

Also, I've made a bit of cleanup (PHP notices et al) and would like to review it some more.

I have version 0.5 downloaded. Can I import it to http://sf.net/projects/evocms-plugins/ ?

Of course, you'll get added as a developer, because I do not want to take over maintainer- nor ownership.. :)

Thanks for a cool plugin!

36 Apr 07, 2006 03:11

Sure, that sounds fine to me. Add it. I've been working on updating it, too. I'm playin around with using Ajax to do it all from the write tab with no reloading. I'm mostly just trying out some of the JS that I'm learning, but I may end up releasing these changes in a later (or forked) version of the plugin. I'm also adding in searching by tag as well as user. You need a public ssh key to make me a developer user account on SVN? As always, thanks for your help.

37 Apr 07, 2006 17:09

personman,

you'll need a SourceForge.net account and then I'll add you to the project's developers, which gives you also write access.

How far are you with updating? Because, I think, that we should not create different branches of it.

A thought I'd had was also about giving plugins an easy way to just have a popup of themselves - not in the Tools tab.

Also, with the AJAX approach you take: contact me through e-mail and we can discuss hooks that would be useful.

For now, I'd say that I import the 0.5 download version to SF.net and apply my changes to it..

40 Apr 17, 2006 22:09

Thanks :D

Also
http://www.brendoman.com/dev/blogs/

is giving me

Fatal error: Call to a member function get() on a non-object in /home/.kalmuk/brendoman/brendoman.com/dev/blogs/plugins/_dnsbl_antispam.plugin.php on line 475

Its the preview link on the first page.

41 Apr 18, 2006 12:23

Found a problem;

When posting text after the youtube insert, it will end the <p> tag.

E.g.

Take a look at Linkin Park's Wish, it's a cover from a NIN song.
[youtube]UgKBwdtxFSU[/youtube]
Man i <em>wish </em>i was there!

Will return;
http://files.balupton.com/graphics/screenshots/youtube_render_problem.gif

So you can see that the 'Man i ...' sentence is not in a <p> tag like it should be...

Thanks
Besides that it's awesome!
-balupton

42 Apr 18, 2006 14:59

Thanks, I'm glad you like it. I think that's more of a problem with the auto P renderer. If you need more control, uncheck that and do the p tags manually.

43 Apr 18, 2006 15:36

Yer i figured it would be that, but seeing it only happens with your plugin it could be a problem in either.

And i have a suggestion for it.
I'm working on a gallery plugin and it will display something like;
This post contains a gallery. [Show]
At the end of each post's contents.

And when they click it the gallery will be shown like how trackbacks/comments are when the post is viewed by itself.

Would be good if this functionality was avaliable for youtube as a post may contain multiple videos that the user couldn't care less about.

Call it Cinema ;)

44 Apr 18, 2006 15:41

Why couldn't the user just put a <!--more--> and all their videos below that?

45 Apr 18, 2006 15:52

.. .. .. .. 8| :-/ ;) good point...

47 May 20, 2006 07:17

cant download. it says

Please, do not access this page directly.

49 May 20, 2006 13:42

soul^blade, "Please, do not access this page directly." means that you are using either a plugin/skin which is meant for 0.9.x with 1.6+ or the other way round.

50 May 20, 2006 13:48

blueyed wrote:

soul^blade, "Please, do not access this page directly." means that you are using either a plugin/skin which is meant for 0.9.x with 1.6+ or the other way round.

err no, i meant that i cant view http://www.brendoman.com/dev/blogs/plugins/_youtube.plugin.php.txt
even tho its a text file.

balupton : cant use it. im using 1.6. i get this error:

		<link rel="stylesheet" href="plugins/youtube_plugin/youtube.css" type="text/css" />
		<script type="text/javascript" src="youtube_plugin/youtube.js"></script>
		<script type="text/javascript" src="youtube_plugin/prototype.js"></script>
		<script type="text/javascript" src="youtube_plugin/scriptaculous.js"></script>

		<script type="text/javascript">
			function sndReq(page) {
				var tag = document.getElementById('yttag').value;
				var url = '<br />
<b>Fatal error</b>:  Call to undefined function:  get_htsrv_url() in <b>/home/d3vourco/public_html/burn/plugins/_youtube.plugin.php</b> on line <b>133</b><br />


i even tried putting the files in the root folder and the plugin folder. no go.

no worries. ill try to edit the codes and remove all features except the [youtube]code[/youtube] thinggy.

51 May 20, 2006 14:55

change get_htsrv_url() to $htsrv_url ;)

¥

52 May 20, 2006 15:16

It's written for b2evolution 1.8. Even if you make YaBBa's change it's not going to work. 1.6 doesn't have some of the plugin hooks that it needs.

53 May 21, 2006 03:19

ooo. sorry. didnt know its for 1.8.

u still have the plugin for ver 1.6 ?
cant download from your site.

57 May 22, 2006 15:14

KLE907: This plugin is for version 1.6 or later of b2evolution. You're using version 9.0.10, which is quite old. This plugin won't work for you, and what is more, the version you're running leaves you open to some security and spam problems. At the very least, you should upgrade to 0.9.2. If you want this plugin to work, then you'll need to upgrade to 1.6-alpha.

58 Jul 07, 2006 11:43

I have an FCKEDITOR and Phoenix 1.6 alpha; I can display correctly the "YOUTUBE" button, and also log in with the user name and display all the videos; BUT, when I click in "add this to the post", nothing occurs.
Indeed, when I disable FCKEDITOR, all goes right, I get this piece of code into my text box:


[youtube]IESg9ANXStQ[/youtube]


And all works fine.
How to fix it?

If this can't be done, could you please tell me something about modifying _formatting.php to be compliant with object tag? Since by now I can correctly embed google video's, but not youtube (they mess up the layout!).

Thank you as usual.

Francesco

59 Jul 07, 2006 19:38

How have you integrated FCKEditor?

60 Jul 08, 2006 00:39

With your (is it yours, isn't it?) plugin, and it works out SO FINE :D
So, I want youtube plugin to work, but I cannot give up with FCKEDITOR...a solution is possible?

Thanks.

61 Jul 12, 2006 16:52

Now that the beta of b2evolution 1.8 is out, I've released this plugin. [url=http://manual.b2evolution.net/Plugins/youtube_plugin]Go get it![/url]. If you're using 1.8, then ignore the rest of this thread and use the plugin version. It works much better.

papzadsl, I don't know anything about FCKeditor or how you're implementing it. Your guess is as good as mine.

62 Jul 12, 2006 16:56

Awesome :)

So we got the go to add plugins to the wiki? Or you just starting the movement ;)

63 Jul 12, 2006 17:20

Cool - except for one thing. Since I already know the youtube ID for the video I want to link to I don't have an easy method to use it. May I suggest that after I click the big YouTube button on the bottom I get a text field that I can paste my code into and use a "quick link" button (that you would have to provide) to insert [youtube]youtubecode[/youtube] into my post?

Now that you're a [url=http://forums.b2evolution.net/viewtopic.php?t=7942]professional programmer[/url] it should be easy!

----------

Edit: The 'question mark' icon on the toolbar (after clicking the big button) doesn't do anything. Is that something you put in, or something b2evolution automagically puts in?

64 Jul 13, 2006 00:35

papzadsl, I've found a way to let plugins interact with a WYSIWYG editor and will try to make it work with the youtube_plugin.

[hours passed]

In fact, I know have a working implementation with tinyMCE, which I've switched to, when I gave up with FCKeditor yesterday. But I'll look into enhancing the FCKeditor plugin (which has been just a proof of concept, when I've created it) also, of course.

Stay tuned, though it may take some days.. :/

@EdB: The question mark is a Javascript popup help link, which should also work as a normal link and you probably have JS enabled for the plugin itself, haven't you?
So, I guess the "$readme" magic word has not been merged into b2evo 1.8 or something the like. Could you check what HTML (if any) gets outputted around the "?" icon?

65 Jul 13, 2006 00:39

blueyed wrote:

papzadsl, I've found a way to let plugins interact with a WYSIWYG editor and will try to make it work with the youtube_plugin.

Stay tuned, though it may take some days.. :/

Thank you soooooo much; I'd rather prefer to wait some days than switch back to tinyMCE, which I've tried many months ago, and felt bad with it. Indeed, FCKeditor supplies all the things I need, and I don't have to go crazy to get it work just as I want.

Btw, if you already have a 1.8 tinyMCE plugin, I surely give it a try; maybe the latter version would have improved the things I repute wrong.

Thanks again for your efforts; I'll stay tuned :D

66 Jul 15, 2006 20:31

blueyed wrote:

papzadsl, I've found a way to let plugins interact with a WYSIWYG editor and will try to make it work with the youtube_plugin.

[hours passed]

In fact, I know have a working implementation with tinyMCE, which I've switched to, when I gave up with FCKeditor yesterday. But I'll look into enhancing the FCKeditor plugin (which has been just a proof of concept, when I've created it) also, of course.

Stay tuned, though it may take some days.. :/

@EdB: The question mark is a Javascript popup help link, which should also work as a normal link and you probably have JS enabled for the plugin itself, haven't you?
So, I guess the "$readme" magic word has not been merged into b2evo 1.8 or something the like. Could you check what HTML (if any) gets outputted around the "?" icon?

The $readme magic word has not been merged into 1.8 and I get a notice when I try to use the plugin.

Notice: Undefined variable: url in /var/www/kyleblog/inc/_misc/_plugin.class.php on line 2087

The html code underlying is

		
		<div class="edit_toolbar" id="yttoolbar"  style="text-align:left;display:none">
			<a href="javascript:void(0)" onclick="Effect.toggle('yttoolbar', 'appear')" title="Hide the YouTube toolbar"><img src="rsc/icons/close.gif" alt="hide" id="ythide" /></a>
			<div style="float:right; margin:3px"><a  class="action_icon" href="http://kyle.blogdns.org/admin.php?ctrl=plugins&amp;action=edit_settings&amp;plugin_ID=73" title="Edit plugin settings!"><img src="http://kyle.blogdns.org/rsc/icons/edit.gif" border="0" align="top" width="16" height="15"  title="Edit plugin settings!" class="middle" alt="Edit"/></a></div>
			<div style="float:right; margin:3px"><br />
<b>Notice</b>:  Undefined variable:  url in <b>/var/www/kyleblog/inc/_misc/_plugin.class.php</b> on line <b>2087</b><br />
<a  target="_blank"><img src="http://kyle.blogdns.org/rsc/icons/help-browser.png" border="0" align="top" width="16" height="16"  class="middle" alt="Help"/></a></div>
			<span id="ytsearch"> Search <img src="plugins/youtube_plugin/youtube.png" alt="YouTube" class="middle" />

				<input type="text" id="yttag" onKeyDown="if(event.keyCode==13) { sndReq(1); return false; }" />
				<input type="button" value="Go" onclick="sndReq(1)" />
			</span>
			<img src="plugins/youtube_plugin/loading.gif" id="ytloading" alt="Loading..." style="display:none; margin:3px" class="middle" />
			<div id="ytresults" style="display:none"></div>
		</div>

I looked at the line of code in the error and it is where the button is generated. What happens is that the $readme keyword does not meet any of the conditions and the url is never set. If you take readme out of the plugin or put an else into the plugin_class that sets url equal to '', then it doesn't give the notice. If you take the $readme out of the youtube_plugin, then it puts a link to the wiki page instead.

68 Jul 17, 2006 20:36

blueyed, one other thing I noticed is that the default priority should probably be about 60 so that this plugin renders the code before the "Auto P" plugin does its thing. My page refused to validate because the Auto P plugin was going through and putting <p> tags around my [youtube]blah[/youtube] statements. It would end up with <p> around a <div>, which does not validate.

69 Jul 17, 2006 21:11

Good point. I've changed it to 30 and released version 0.8.3.

However, there's no need to upgrade if you have 0.8.2, because you can manually change the priority of a plugin in "App settings / Plugins".

70 Jul 18, 2006 15:42

So, it is now FCKeditor compliant?
I tried it by removing my FCKeditor plugin, and it is simply AMAZING! Hope to use it with my FCKeditor, let me know if it's possible!

71 Jul 18, 2006 19:53

papzadsl, it won't be possible.. sorry. There need to be Javascript callbacks and everything. This won't probably get added with b2evo 1.8.1, because it's not a fix really, but 1.9.
In fact, it's working with the TinyMCE plugin I've started and b2evo CVS HEAD.
You'll have to wait, sorry.

72 Jul 19, 2006 22:10

Thanks anyway for the effort, dear blueyed.
Could you please upload the tinyMCE plugin (the one for use the wysisyg editor), and its youtube plugin? I would try to use this editor, maybe it's good enough to me.

Really thank you.

Francesco

74 Jul 20, 2006 14:40

When I go to install your plugin, I get this error message:
"The plugin requires version 1.1 of the plugin API, but 1.0 is installed. You will probably have to upgrade your b2evolution installation."

???

75 Jul 20, 2006 19:19

papzadsl, I've changed the "requires"-dependency to a "recommend" one.

Either download the new file or change it as follows:


--- _tinymce.plugin.php (Revision 88)
+++ _tinymce.plugin.php (Arbeitskopie)
@@ -90,7 +90,7 @@
        function GetDependencies()
        {
                return array(
-                               'requires' => array(
+                               'recommends' => array(
                                        'api_min' => array( 1, 1 ),
                                ),
                        );

*edit*
disabled smilies so => works

¥

76 Aug 09, 2006 18:31

hello,

does this plugin also work with b2evo v 0.9.0.12

kind regards
Joachim

77 Aug 09, 2006 18:59

Nope, this only works with the latest beta of the software. That version is very old, have you thought about upgrading?

78 Aug 09, 2006 20:31

i´m a very bad updater :(
is there a good description for updating b2evo v 0.9.0.12 to 1.6 or 1.8?
what happaend to my _main.php which looks completly different to any standard-skin from b2evo? what about my hacks?
a lot of questions :lol:
kind regards
joe

79 Aug 09, 2006 22:22

1.8.1 should get released in the next days, I'd wait for that.

Search http://manual.b2evolution.net/ for upgrading your skin. There are some pages and if you try to convert your skin on a locally installed b2evo first, it should work out ok.

80 Aug 11, 2006 01:52

Personman,
Sounds pretty good but I got the following error on the demo page

Fatal error: Call to a member function get() on a non-object in /home/.kalmuk/brendoman/brendoman.com/dev/blogs/plugins/_dnsbl_antispam.plugin.php on line 475

Thanks
Troy

[url=http://www.wirefan.com]WireFan.Com - Social Bookmarking[/url]

personman wrote:

Sure, here's my test blog: http://www.brendoman.com/dev/blogs

81 Aug 13, 2006 18:44

I cannot embed google video!

I have b2evo 1.8 and the 0.8.1 version of the plugin..

Your website says to use the [gvideo] tags with the video url.. but it doesn't work.

Plugin works for YouTube.. but not for google video.. or ifilm for that matter.

82 Sep 02, 2006 20:02

I am newbie to installation of a plugin. When it is required to "Activate the plugin" or "install the plugin" I can not see any button I can use on backend office: Settings::Plug-ins::Available plugins table using the [Install] link.

My backend office on this looks like this (version 0.9.0.12) :

What is wrong? Please help!! Thank you!

85 Sep 07, 2006 05:55

Ahh, so this works for all Video Hosts out there now? Like Google Video, Yahoo Video, iFilm, Grouper, etc.?

Hmm... though not that important, but maybe a change in the plugin name? I bypassed this plugin because its a YouTube plugin ;) I understand it started to be a YouTube only plugin hench the name. :)

Thanks.

86 Sep 20, 2006 04:45

would it be possible to make the div that is inserted have a class of "youtube"? I did this in my personal copy and it seems easy enough to add for everyone. It's nice when working with custom CSS, especially the print css I have where I don't want it to try and print out the youtube videos.

88 Sep 20, 2006 18:12

Thank you for the quick fix, I'll update to that version with the next full release or when I get around to grabbing it of SVN.

89 Sep 24, 2006 06:23

Does this plugin work with the latest (1.8.2) release?

90 Sep 25, 2006 17:58

All the 1.8 releases use the same plugin api with no/tiny changes. So yes it will work (providing you got the 1.8 version of the plugin).

92 Oct 09, 2006 09:32

hmm not working for anything but YouTube :/

93 Oct 09, 2006 14:37

Small problem: My host banned the fopen PHP instuction. They told me to use fsockopen instead...

Can you make the use of fsockopen / fopen a setting??

94 Oct 11, 2006 16:37

The plugin now has a link called "Other sites", which displays buttons for adding in videos from sites other than youtube. Youtube has a developer API that allows you to search videos from external sites, so that's why the plugin has a UI for youtube and is called the youtube plugin. For other sites you'll have to copy the video id and paste it in between the tags that are inserted when you click on a button. If you don't see the 'Other sites' link, then upgrade to the newest version of the plugin [url=http://plugins.b2evolution.net/index.php/2006/10/10/youtube_plugin]here[/url].

95 Oct 11, 2006 16:39

gbrusella,
The plugin tries to use cURL first, then fopen. Does your host not support either of those? I suppose I could make it use fsockopen as a last resort, but curl is by far the best option.

96 Oct 11, 2006 16:55

I know... but seems to not support cURL nor fopen... fSockOpen if the last try at least will work on me

97 Oct 11, 2006 17:06

I'll look into it. IMHO, if a web host is going to be paranoid enough to block fopen url then they should at least be modern enough to support curl.

98 Oct 11, 2006 19:09

personman: hosts are really stupid sometimes.. ;)

I think it would be a good idea to have a general API/class in b2evo that takes care of falling back as wide as possible, so other plugins could use this easily also. Please contact me through email, if you have any questions about it. You may just abstract it out into a single class in the youtube plugin and I would add it to core.

Thanks for a nice plugin!

99 Oct 12, 2006 16:26

If I click on "Other sites", nothing happens!

I have b2evoltion 1.8.2 and use Firefox. Do I have to change some settings?

100 Oct 12, 2006 16:40

Suzan,
Does the YouTube search work for you? There's probably some javascript error occurring when you click on that link. In Firefox, go to Tools > Error console, then clear the console and click on the link. Please report any errors that appear in the console to me.

Danny

102 Oct 12, 2006 17:50

Suzan, try ctrl-F5 or shift-F5 to forcefully reload the page.
Probably the old Javascript got cached..
If so, you should use a dummy GET param on the Javascript src attribute, like "youtube.js?v=2", Danny, if it gets changed.

103 Oct 12, 2006 19:10

Indeed, now it works!

I've though I've reloaded but.... it's seems the old javascript was sticky! ;-)

Thanks a lot.

May I suggest another site for this plugin?

sevenload.de

This is a nice german site.

104 Oct 12, 2006 19:49

Great, I'm glad it works. I don't speak German, but I looked on sevenload.de and could not find any instructions for embedding their videos in a web site. If you can you find the code required for that I'll add it to the plugin.

blueyed, I just checked in a change that adds ?v=<?php echo $this->version ?> to the end of the javascript includes. Thanks for the suggestion.

105 Oct 12, 2006 22:49

Thanks for supporting convenience plugin.
I install Youtube plugin successfully and tested with Firefox no problem but there are some Javascript errors when test with IE. Anyone had similar trouble? Help me please.

107 Oct 19, 2006 08:39

personman,

The plugin now has a link called "Other sites", which displays buttons for adding in videos from sites other than youtube. Youtube has a developer API that allows you to search videos from external sites, so that's why the plugin has a UI for youtube and is called the youtube plugin. For other sites you'll have to copy the video id and paste it in between the tags that are inserted when you click on a button. If you don't see the 'Other sites' link, then upgrade to the newest version of the plugin here.

This is really great. We get a few people asking about b2evolution plugins for Revver videos. The only thing missing is a way of passing the affiliateId parameter - as a Revver user, you earn 20% of all ad revenue off of shared videos with that affiliateId entered.

If you like, we also have an open developer api available at http://developer.revver.com/api

We offer a lot more than just video searching - you can create user accounts and upload video directly from the API. Actually, the entire revver.com site is built using our API.

If you end up adding additional support for Revver, let me know and I can add a link back from the Revver developer pages if you like :)

Asi Behar
Web Services - Revver

108 Oct 19, 2006 14:46

Asi,
Thanks for bringing the revver api to my attention. I didn't know about it. I've never used revver and I made the youtube plugin because I used youtube. I'm very interested in adding support for another api, so I'll have to check it out when I get the time.

If anyone uses revver and would like to see support for searching and adding videos from within b2evolution, please speak up.

In the meantime, if you want to add your revver id to the youtube plugin, just edit the plugin file, find the part that spits out the revver code, and drop your id in there.

109 Oct 24, 2006 17:48

woohoo I am so excited to have this!!

110 Oct 30, 2006 16:53

Version [url=http://sourceforge.net/project/showfiles.php?group_id=160495&package_id=197024]0.9.5 of the YouTube plugin[/url] is available for download now. I've added support for break.com and metacafe.com (Thanks for the idea, Marcio). I also improved the way it connects to youtube so it should work on more webhosts.

This plugin has been downloaded over 1200 times and the feedback I've seen is very positive. Thanks to everyone who has taken time to give feedback and suggestions.

For the next release I would like to add support for more languages. But I'm just a dumb American who only speaks English, so I need your help. If anyone would like to translate the strings of text that the plugin displays and the readme file, please post here. If it would help, I can post all of the text here in the forum or elsewhere.

111 Oct 30, 2006 16:59

personman wrote:

But I'm just a dumb American who only speaks English, so I need your help.

At least you've got two thirds of those statements right ;)

I can nudge a few people to do the translations if you like? Including one who can translate yank into english :|

¥

112 Oct 30, 2006 17:06

For the next release I would like to add support for more languages. But I'm just a dumb American who only speaks English, so I need your help. If anyone would like to translate the strings of text that the plugin displays and the readme file, please post here. If it would help, I can post all of the text here in the forum or elsewhere.

For your efforts thank you very-very much.
I would help you to translate to hungarian.
I think, it's simple and I am happy to help you.
Please send me the strings to my email.

Regards, AZso

113 Oct 30, 2006 17:07

You're right, YaBBa. I'm actually a dumb American who can speak English and a little bit of Ancient Greek. If Socrates wanted to use the plugin, I could hook him up. But, I don't think he's into YouTube, wormsmeat that he is.

114 Oct 30, 2006 17:08

I dunno, he was a very broadminded soul :p

¥

115 Oct 30, 2006 17:16

I think I spoke a little too soon. [url=http://manual.b2evolution.net/Localization#Plugins]This page in the manual[/url] says that the plugin localization won't work until b2evolution 1.9. So, there's not rush on this, I guess. If anyone has time to work on it, great. But I may change the plugin before 1.9 comes out, so you'll have to redo some things. The best bet is probably to wait.

116 Oct 30, 2006 17:22

If I remember rightly, you can include the locali[s|z]ation code into a pre 1.9 plugin (like you used to do with htsrv_url) .... but don't quote me on that, blondes are renowned for being dumber than yanks (although it's a bloody close call :|)

¥

117 Oct 30, 2006 17:26

I started using this plugin and had the videos public at YouTube. After a few stupid comments I tried to make the videos private but they would not play. Is there a way I can fix this at YouTube or has this been fixed in never version of the plugin? I am running version 0.8.1 of the plug in.

118 Oct 30, 2006 17:33

If your videos are private, then only logged in users who you give permission can view your videos. That means that embedding them won't work at all. You'll have to set them back to public if you want them to play in your blog. You can, however, disable comments on a video without making it private.

119 Oct 30, 2006 17:39

I see there is an option at YouTube to still allow you embed to another webpage even if it is set to private, but private breaks this plug in. Thanks for your help personman.

120 Oct 30, 2006 17:43

English-italian here.
Glad to help you all.
Tell me what I have to translate.

121 Nov 10, 2006 21:12

This is exactly what I was looking for... one question, though: am I missing something that the video doesn't play on my blog, but rather just opens the acutal You Tube site where the video is hosted?

EDITED TO ADD: I figured out what it was - if you click anywhere except the arrow in the center of the video, you get taken to You Tube, otherwise it plays the video as embedded.

122 Dec 06, 2006 20:38

My lastest video I have posted on my blog with this plugin never loads. It just has white space for the size of the video but no red X or anything like that. I am running version 0.8.1 of the plugin and all the other videos I have posted to my blog still work. The video id is t8e5hxdmq4c and I was hoping someone could see if they know what the problem is.

123 Dec 14, 2006 04:04

I can't post that video on my site, either. I think it may be a youtube permissions thing.

124 Dec 14, 2006 20:39

The permissions are set identically between this video and others that work (I have checked and rechecked mulitple times). I wondered if it could be something with the youtube id string. This is the first one of about a dozen or so that is all lower case.

125 Dec 14, 2006 22:04

I tried posting the video using the embed code that youtube gives ans it does the exact some thing. It's a youtube problem, not a plugin problem.

128 Dec 15, 2006 00:00

I appreciate the help from everybody. I think I will just upload it again and get a new id number so grandma and grandpa can watch.

129 Jan 09, 2007 04:26

Hiho...

as u know or dont... here in Brazil the website youtube is blocked... cause of a video that shows a television hoster in brazil having sex in beach (daniela cicarelli)...

thats not the problem cause u can access a proxy and see the videos...

but when u put some youtube video in a blog and brazilian users try to access it dont play...

is there anything i can change in the youtube plugin to connect trought an proxy and then get the video? otherwise im going to host my videos (100+) in metacafe or other one...

130 Jan 17, 2007 02:02

Great plug in.... my only request would be to have it open in a new window kinda like the Amazon one and clicking an insert button to add it.

The way it is, you get a viewing of 3 and sometimes you have to scroll a bit to find what you are looking for.

I usually just end up going to youtube directly, finding what I want and copying the video ID and writing the tag myself. :(

Other than that... it's a cool plug in.

131 Mar 30, 2007 02:06

I don't like it when my page doesn't validate, so I started working on validating videos embedded via this plugin. youtubes are okay, but google and dailymotion aren't. In fact anything that uses "embed" is going to fail validation. I'm not sure if I'm using the latest version of the plugin or not. I think I am, but I'm not sure. Anyway the first detail I cleaned up was for a dailymotion video I linked. Find at roughly line 250 in the plugin's plugin file something that looks like this, then make it be this:

			'<div class="'.$this->Settings->get('class_container').'"><object type="application/x-shockwave-flash" data="http://www.dailymotion.com/swf/$1" width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/$1"></param></object></div>',


Oh and take note that I changed the dimensions of the object to better suit the video I was linking. dailymotion seems to have a range of sizes, so it's kinda hard to know what would work best. I went with the sizes of the youtube object just because that's what I did.

Next up is google's dependence on "embed".

132 Mar 30, 2007 03:35

Thanks, Ed. I'll get these merged into the plugin before the next version. Keep 'em coming. I made sure youtube was valid, but as I added more services I just copied the code the sites provided. I'm also going to get rid of prototype and use jquery for the js. So I probably won't come out with the next version until jquery is part of b2e core (version 1.10 or 2.0).

133 Mar 30, 2007 03:36

Oh, btw, this plugin is in the SourceForge svn repository. So, if Daniel will give you access, you can put your changes in yourself.

134 Mar 30, 2007 06:57

I might ask for access, but I'd rather highlight stuff like this to you (as the author) just in case you see or know a reason why a change that works for me isn't a good idea for the plugin.

Hey did you see my little "this makes quick buttons" plugin?

135 Mar 30, 2007 14:22

Ok, thanks. I'm fine with you doing it either way.

Yes, I saw your plugin. I think I have those buttons in mine, they're just hidden behind a few clicks. You have to click YouTube, then Other sites. If people want them in a normal toolbar, that's cool. I don't post enough videos to want that myself. If you want, we can add the toolbar to the youtube plugin, too. I would just want it to be an option that's turned off by default.

137 Jun 20, 2007 12:26

Hi, I install the plugin youtube 0.9.5 on evo 1.9.3, and when I use the search appears:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

What's mean this?, do yu have a idea?,
thanks
O.

138 Jul 28, 2007 22:02

I have installed but no YouTube button is made?

I use 1.9.3

139 Aug 03, 2007 02:06

The plugin works fine for me.

How can I change the size of the video? The column I play the video in is only 375 pixels wide, and the youtube video is wider than that

140 Aug 03, 2007 04:22

I installed the plug in on blog that I run using version 1.8.7 and it worked like a charm. Then, I installed it on another blog I run - version 1.9.3. It doesn't work.

Is this plugin available in a version that will work with 1.9.3?

142 Sep 13, 2007 00:06

I have this installed but when I search for the video I want, it can never find it. Today I am trying to embed this:
http://www.youtube.com/watch?v=kHmvkRoEowc

So I enter this: kHmvkRoEowc in the search box and its' not found. I tried other methods and it either doesn't bring up the right video or it brings up way too many. What am I doing wrong?


Form is loading...