Posted by kyle.vh on June 26, 2007 at 11:44pm
Are there any instructions for how to install this youTube plugin?
http://sourceforge.net/tracker/index.php?func=detail&aid=1669296&group_i...
I know how to install a module (in: sites/all/modules).
I've already installed tinyMCE and I'm able to embed/upload pics, etc...
Specifically, I'm wondering why there are three downloadable items on the link above.
Should I use the lastest only?
Should I use some combination of the three?
Any other concerns?
I read the readme's, but they say to check TinyMCE documentation, which seems to be lacking any info on this specific topic.
Any help is greatly appreciated,
kyle vh
Comments
=-=
Seems to me you would need the plugin and the drupal workaround archive as well. Personally, I suggest you test this on a test installation and not on your production site to insure that it won't wreck your installation. instructions for how to install this should be found in the downloads you linked to.
instructions
Instructions are not in the downloads.
The readme's say to go to the tinyMCE documentation page, but there's no info there.
What's a test installation?
just one that I never plan to use, but mess around on?
thanks,
=-
One that allows to test modules and changes before implementing them in a production site.
Agreed, not clear
Yes, the instructions do seem to be missing with the TinyMCE YouTube plugin/module for Drupal.
Below are the steps I took, yet I do NOT see a YouTube button in my TinyMCE editor. Any ideas from someone who has this working? Thanks!!
1. Uploaded the /youtube/ folder to /modules/tinymce/tinymce/jscripts/tiny_mce/
(I also tried uploading to /modules/tinymce/plugins/)
2. Opened the files (3): /modules/tinymce/themes/tinymce_*.js
3. Added ",youtube" to the end of the "plugins:" line.
4. Also, added ",youtube" to the end of one of the "theme_advanced_buttons_X_add:" lines in each file.
5. Uploaded the modified files, refreshed the create content page.
Bummer, no YouTube button!
The creators of the WordPress YouTube plugin (Viper's) had the right idea: no user configuration required!
"It doesn't matter how you get there if you don't know where you're going."
--The Flying Karamasov Brothers
My review of David Mercer's "Drupal: Creating Blogs, Forums, Portals and Community Websites"
same problem, button missing
I followed all the steps too, but my button is missing on the editor.
It is however present on the 'Edit tinymce profile' 'Buttons and plugins' section on Drupal, and despite checking the box next to the youtube icon, it still doesn't show in my tinymce editor.
Did anyone figure out how to fix this?
YouTube plugin button not appearing on TinyMCE editor
No-Go here as well.
The option is available in the profile-editor, but when selected, the button does not appear on the the TinyMCE editor.
Also worth mentioning...
I tried following the instructions in the post http://drupal.org/node/154877#comment-253803, but the only step that I could actually do was #4 because my editor_plugin.js file was apparently very different than the one the author was working with. I only mention it in case the two are related.
Drupal 5.7
TinyIMCE 5.x.1.2
LTC.Wrath-BRIG-XO
http://dfbrigade.org
wrath|at|dfbrigade.org
LTC.Wrath-BRIG-XO
http://dfbrigade.org
wrath|at|dfbrigade.org
Please use TinyCME version 2
Please use TinyCME version 2
majorVersion = "2";
minorVersion = "1.3";
releaseDate = "2007-11-27";
check tiny_mce_src.js for more details.
Minh Hoang Duc
Please use TinyCME version 2
Please use TinyCME version 2
majorVersion = "2";
minorVersion = "1.3";
releaseDate = "2007-11-27";
check tiny_mce_src.js for more details.
Minh Hoang Duc
I've done everything you
I've done everything you listed. When I go to the page settings of tinymce in drupal I enabled the youtube plugin button.
When i go to the comment form i can't see the button. How can u explain this?
I'm using:
drupal tinymce plugin 5.x-1.9
tinymce Version: 3.2.0.1
youtube tinymce plugin Date Last Updated: 2008-07-19 04:20
Need help :(
Some installation instructions
You're not kidding there are no instructions for this. Here's what I came up with after a couple of hours of fiddling and debugging.
Here's what I did:
1) unzip the plugin youtube.zip into /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/
2) add the following to /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins//youtube/editor_plugin.js :
if( src.indexOf("http://youtube.com/watch?v=") > -1 )src = src.replace("http://youtube.com/watch?v=", "");
after the line (line 204):
if( src.indexOf("http://www.youtube.com/watch?v=") > -1 )src = src.replace("http://www.youtube.com/watch?v=", "");
This patch is to allow you to use both the www and non-www version of a YouTube URL.
3) also change the following line (216):
embedHTML += '<embed src="' + flash_mov + '" type="application/x-shockwave-flash" wmode="transparent" type="application/x-shockwave-flash" width="' + attribs["width"] + '" height="' + attribs["height"] + '"></embed></object>';to:
embedHTML += '<embed src="' + flash_mov + '" type="application/x-shockwave-flash" wmode="transparent" width="' + attribs["width"] + '" height="' + attribs["height"] + '"></embed></object>';This patch removes a redundant application type declaration.
4) update your plugin registration file: /sites/all/modules/tinymce/plugin_reg.php anywhere inside the function
function _tinymce_plugins():$plugins['youtube'] = array();$plugins['youtube']['theme_advanced_buttons1'] = array('youtube');
5) Navigate to /admin/settings/tinymce on your Drupal site and activate the new YouTube button.
I'm sure that step 4 is the one everyone is missing. In any case, good luck!
Inventor Spot is a Drupal 5.1 site
Current Drupal site: InventorSpot
Awesome, thank you!
Thanks for the step by step instructions! (Man, I was way off base with my steps!)
"It doesn't matter how you get there if you don't know where you're going."
--The Flying Karamasov Brothers
My review of David Mercer's "Drupal: Creating Blogs, Forums, Portals and Community Websites"
Thanks!
Thanks!
Something goes wrong on step number 2.
Thanks to your help I was able to get the youtube plugin working nicely... except that when I try to add the code for step 2 so that I can enter urls without the www., my urls start looking like this:
http://www.youtube.com/v/http://youtube.com/watch?v=SHYXrqoS08o which obviously won't work :)
my if statements look like this:
if( src.indexOf("http://www.youtube.com/watch?v=") > -1 )src = src.replace("http://www.youtube.com/watch?v=", "");
if( src.indexOf("http://youtube.com/watch?v=") > -1 )
src = src.replace("http://youtube.com/watch?v=", "");
if( src.indexOf("http://www.youtube.com/v/") < 0 )
src = "http://www.youtube.com/v/"+src;
Any ideas?
Best,
Blayne Chastain
www.AshleyHosting.com
Customized Web Hosting Solutions for Ecommerce, CMS & More
Blayne Chastain
www.AshleyHosting.com
Customized Web Hosting Solutions for Ecommerce, CMS & More
Thanks for this furmans,
Thanks for this furmans, very useful. For the UK version of YouTube I had to add another change. Following step 2 above, add
if( src.indexOf("http://uk.youtube.com/watch?v=") > -1 )src = src.replace("http://uk.youtube.com/watch?v=", "");
just before
if( src.indexOf("http://www.youtube.com/v/") < 0 )src = "http://www.youtube.com/v/"+src;
and that will correct UK YouTube urls.
I followed step 4 above but that line was commented out in the file dated 2 Apr 07.
The problem I have is that in FF it works but goes off to YouTube page rather than embedding. In IE7 it first needs click to activate then it hangs on "Loading" but it has stayed embedded.
I've tried the media plugin as well. That will need a similar fix for UK urls but I manually changed the entered url to the correct format. It's just the same - FF works but not embedded, IE7 hangs on loading. Any thoughts?
After spending a long time
After spending a long time trying slight code variations with not very repeatable results, I discovered that in FF you go to the YouTube page if you click the picture but it's embedded if you click the play button in the middle :-). This is how it is if you directly embed the html from YouTube as well. Does anyone know of a way to change this as I'd prefer to keep it embedded wherever you click.
Still hangs in IE7.
Updating flash player fixed IE7 YouTube issue
I've updated the flash player, even though I thought I'd only just downloaded the latest one already, and it now works in IE7. Does anyone know how to turn off clicking on the picture so it doesn't take you to YouTube?
The new player came up with related videos at the end of playing. I didn't want this as it would draw people away from the site so I added "&rel=0" to the end of the src string which fixed it. I've also changed the media plugin to work with UK (and non-www) urls as well as adding ""&rel=0". The file to change is modules\tinymce\tinymce\jscripts\tiny_mce\plugins\media\jscripts\media.js. Changed code looks like
// YouTube
if (v.indexOf('http://www.youtube.com/watch?v=') == 0 || v.indexOf('http://youtube.com/watch?v=') == 0 || v.indexOf('http://uk.youtube.com/watch?v=') == 0) {
f.width.value = '425';
f.height.value = '350';
v = v.replace('http://youtube.com/watch?v=', '');
v = v.replace('http://www.youtube.com/watch?v=', '');
v = v.replace('http://uk.youtube.com/watch?v=', '');
f.src.value = 'http://www.youtube.com/v/' + v + '&rel=0';
return 'flash';
}
Doesn't work
Good manual, I configure my drupal exactly how this manual, in the TinyMCE configuration appears the YouTube pluggin, I checked but when I create a new content it's doesn't appear on TinyMce menu bar... This happens too on media pluggin.. any ideas or help???
Thanks
Try installing the media
Try installing the media plugin
I probably does what you want + more
http://drupal.org/node/249946
------
GiorgosK
Geoland Web development / web marketing
------
GiorgosK
Geoland Web development / web marketing
Media Temple Special Offer Codes
Media
yep... this install and goes perfect.. thanks
I've done everything you
I've done everything you listed. When I go to the page settings of tinymce in drupal I enabled the youtube plugin button.
When i go to the comment form i can't see the button. How can u explain this?
I'm using:
drupal tinymce plugin 5.x-1.9
tinymce Version: 3.2.0.1
youtube tinymce plugin Date Last Updated: 2008-07-19 04:20
Need help :(
plugin installed & working, but html getting filtered
I've added the object, param & embed tags (with all properties) in the extended_valid_elements param of tinymce.init(), yet none of my embeded videos show up.
The html is getting removed from the item I'm editing.
Is there something else in tinymce to make this working?
Could this be related to the
Could this be related to the Input Format? Try Full HTML.
My review of David Mercer's "Drupal: Creating Blogs, Forums, Portals and Community Websites"
My review of David Mercer's "Drupal: Creating Blogs, Forums, Portals and Community Websites"
not in drupal... :(
I'm acually using this youtube plugin for tinymce on a different cms and am here because I can't find anyone else talking about it.
I figured just getting tinymce to allow the html would be the same no matter what platform.
=-=
each CMS handles their filtering a bit differetly. Best place to askthis question is on a forum dedicated to your CMS.
_________________________________________________________________________
This has been a broadcast of the public Drupal Search system. We thank you for watching! : )
What about drupal Videos?
Hello,
Is there a way of setting up TinyMCE so as to get a button to insert videos created with the videos module?
I would like to insert video nodes within other nodes which are editable through TinyMCE.
Is this a possibility? Are there any plugins for tinyMCE, any modules I can use?
Thanks in advance
I found out that using Media
I found out that using Media Plugin for tinymce
can also handle YOUTUBE videos
here is instructions
http://drupal.org/node/249946
------
GiorgosK
Geoland Web development / web marketing
------
GiorgosK
Geoland Web development / web marketing
Media Temple Special Offer Codes