2 balupton Dec 20, 2005 23:47

Sure, here's my test blog: http://www.brendoman.com/dev/blogs
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!
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.
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]
as EdB would say :-
Gigglin' like bitches we are!
Phoenix plugin capabilities are cool. *tips hat off to developers*
¥
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?
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.
Nice implementation but validation is a horror storey..
[URL=http://validator.w3.org/check?verbose=1&uri=http%3A//www.brendoman.com/dev/blogs/]Failed validation, 47 errors[/URL]
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. The flash object inserted by my plugin [url=http://validator.w3.org/check?uri=http%3A%2F%2Fwww.brendoman.com%2Fdev%2Fblogs%2F%3Fskin%3Dguadeloupe&charset=%28detect+automatically%29&doctype=Inline&verbose=1]validates just fine[/url].
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 ;)
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.
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
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.
I put in your username and it showed your video in b2evolution for me. Do you know if your server has cURL enabled?
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
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.
allow_url_fopen = On :lol: Great!! Tnx a lot!
Ok, I think this will do it. As I said, my host doesn't allow me to open urls with fopen, so can you test this for me? The link is the same as in my first post:
http://www.brendoman.com/dev/blogs/plugins/_youtube.plugin.php.txt
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!
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.
Great!!!!!!!! Thanks a lot ur the greatest :lol: Now I must just have good videos only.... You have been very helpful :!:
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.
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().
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.
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.
hmmm... I installed the plugin but no change at the writing tab appeared in any way. what possible reasons could this have? :-/
What b2evo version are you using?
1.6 alpha
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?
I re-loaded it and re-installed it in the settings but it's not working :/
Herm,
I emailed you on this, but just to clarify, and for anyone else following along:
[url=http://www.brendoman.com/dev/blogs/plugins/_youtube.plugin.php.txt]Here's the 1.6-alpha compatible version.[/url]
[url=http://www.brendoman.com/dev/blogs/plugins/_youtube.plugin.php.beta.txt]Here's the 1.7 compatible version.[/url]
Well thanks again it's working now :)
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!
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.
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..
Umm... so where can i get the latest version of this plugin as http://www.brendoman.com/dev/blogs/plugins/_youtube.plugin.php.beta.txt does not work...
I'm running b2evo 1.8
Cheers
http://sourceforge.net/projects/evocms-plugins
You can export the latest version using svn.
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.
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
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.
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 ;)
Why couldn't the user just put a <!--more--> and all their videos below that?
.. .. .. .. 8| :-/ ;) good point...
[url=http://en.wikipedia.org/wiki/Occams_Razor]entia non sunt multiplicanda praeter necessitatem[/url]
cant download. it says
Please, do not access this page directly.
The youtube plugin is now avaliable from the b2evoPlugins SVN.
https://sourceforge.net/projects/evocms-plugins/
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.
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.
change get_htsrv_url() to $htsrv_url ;)
¥
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.
ooo. sorry. didnt know its for 1.8.
u still have the plugin for ver 1.6 ?
cant download from your site.
Oh yeah, I do have a version for 1.6. *digs it up* Here you go:
http://www.brendoman.com/media/_youtube.plugin.txt
remove the .txt and add a .php . It uses a pop-up window, unlike the new version, but it should work fine.
Hello!
I tryed to install this Plugin, but in my version, there is no option to add plugins - see the screenshot (German language):
http://fusseltuning.de/bugnet/b2evolution_plugin.gif
What can I do?
thanks.
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.
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
How have you integrated FCKEditor?
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.
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.
Awesome :)
So we got the go to add plugins to the wiki? Or you just starting the movement ;)
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?
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?
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
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&action=edit_settings&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.
Thanks for the investigation, kf_man.
I've just released version 0.8.2 of the plugin:
http://sourceforge.net/project/showfiles.php?group_id=160495&package_id=197024
The fix is to use $this->get_README_link() instead.
This had been removed in HEAD, but I'll re-add it as a compatibility wrapper.
Also, I'll change get_help_link() in v-1-8 to return an empty string/no icon in cases where $url does not get set.
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.
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".
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!
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.
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
I've added the plugin to the plugin SVN:
http://svn.sourceforge.net/evocms-plugins
However, it makes no difference, if you don't have the core changes (there are no changes to the youtube plugin needed for this to work).
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."
???
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
¥
hello,
does this plugin also work with b2evo v 0.9.0.12
kind regards
Joachim
Nope, this only works with the latest beta of the software. That version is very old, have you thought about upgrading?
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
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.
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
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.
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!
@kding.... this only works in version 1.8.1
I see. Thank you!
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.
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.
kf_man: good point.
I've changed it accordingly: http://svn.sourceforge.net/viewvc/evocms-plugins/youtube_plugin/trunk/_youtube.plugin.php?r1=111&r2=110&pathrev=111
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.
Does this plugin work with the latest (1.8.2) release?
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).
Great! Thanks much.
hmm not working for anything but YouTube :/
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??
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].
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.
I know... but seems to not support cURL nor fopen... fSockOpen if the last try at least will work on me
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.
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!
If I click on "Other sites", nothing happens!
I have b2evoltion 1.8.2 and use Firefox. Do I have to change some settings?
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
Yes, the YouTube Search works!
If I klick on "Other Sites" I geht the following error:
"othersites is not defined
Quelldatei: http://****/admin.php?ctrl=edit
Zeile: 1"
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.
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.
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.
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.
This plugin has become a major part of my blog. Thank you!
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
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.
woohoo I am so excited to have this!!
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.
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 :|
¥
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
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.
I dunno, he was a very broadminded soul :p
¥
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.
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 :|)
¥
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.
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.
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.
English-italian here.
Glad to help you all.
Tell me what I have to translate.
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.
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.
I can't post that video on my site, either. I think it may be a youtube permissions thing.
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.
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.
http://www.youtube.com/v/t8e5hxdmq4c is a 404 - "Not Found".
Interesting. http://youtube.com/watch?v=t8e5hxdmq4c works, but when I tried to blog it via the youtube plugin it failed for me too.
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.
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...
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.
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".
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).
Oh, btw, this plugin is in the SourceForge svn repository. So, if Daniel will give you access, you can put your changes in yourself.
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?
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.
halashton: JFI, here's the YouTube support page about this: http://www.google.com/support/youtube/bin/answer.py?answer=56109&ctx=sibling
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.
I have installed but no YouTube button is made?
I use 1.9.3
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
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?
Update: I was able top get it to work on bevo 1.9.3. All I did was re-upload the files to the server and it worked fine. Apparently this plugin is a little delicate on 1.9.3, but it works great!
If you want to see, take a look: http://www.easydietcenter.com/index.php/2007/08/03/kids_healthydiet
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?
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 :(