shortster
Member
Posted 5 months ago #
When you check the embed code of a video on youtube, you see it has a frameborder attribute on the iframe, and it's set to 0. This is to prevent the iframe from having a border. The inline style this plugin provides is not enough to prevent the border from showing on all browsers.
Please add frameborder="0" to line 336 of generate-embed-code.php and I will be a happy camper.
http://wordpress.org/extend/plugins/youtube-embed/
Consider it added to the next release!
David.
shortster
Member
Posted 5 months ago #
Great service David!
Cheers, Sjoerd
shortster
Member
Posted 5 months ago #
So now that we're talking features.. :)
Could you please add an option to remove the video title as well? Just add &showinfo=0 to the query string to prevent the title from showing.
There already is that option ;) Simply add info=no to the parameter string.
David.
shortster
Member
Posted 5 months ago #
But where can I edit the parameter string in the plugin options? I mean, I don't want my blog authors to have to start adding parameters to the youtube embed code.
I don't think I will be able to explain to them how and why they have to add parameters, if you know what I mean ;)
You can set the parameter on a video-by-video basis or, like any other parameter, it can be set to a default in the Profiles section of the administration screen.
David.
shortster
Member
Posted 5 months ago #
I've found the problem. In the options in the profiles section you can set:
"Information - Display the video title and uploader before the video starts"
When checked "&showinfo=1" is added to the embed parameter string. However youtube defaults to showing the title, so unchecking this option will also show the title, because then the parameter is not added.
The easiest solution would be to change the text in the profiles section to:
"Information - Hide the video title and uploader before the video starts"
And on line 274 (generate-embed-code.php) change to showinfo=0
Ah, thanks - well spotted! I'll correct it in the next release.
David.