technabob
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] [Plugin: WP Super Cache] Delete Cache Button ProblemWhat’s the easiest way to upgrade to the development version? I’m used to using the built in WordPress upgrader. Or should I just wait for the update release to come out? Donncha, any idea when that might be?
Oh, and I second what has already been said – thanks for all your work on this plugin – you’ve made millions of sites much faster.
Forum: Fixing WordPress
In reply to: [YouTube] YouTube oEmbed auto-resizes to the wrong sizeKeep in mind that my solution adds 30px for both the Flash and HTML 5 variants of the player, and the HTML 5 version doesn’t require the additional height. So there’s a minor trade-off of slim black bars above and below content on iPad/iPhone, but it’s still way better than the ugly right and left black bars that make the 16×9 content smaller than it should be.
I think the underlying problem is that YouTube has to account for controller height on the Flash player, and since the HTML5 player is chromeless, they don’t have to there. Unfortunately BOTH players will return the same HTML for the IFRAME through oEmbed, so I don’t think there’s a solution other than for YouTube to settle on a consistent chromeless player for both HTML5 and Flash.
Forum: Fixing WordPress
In reply to: [YouTube] YouTube oEmbed auto-resizes to the wrong sizeAnd…. Here ya go. Simply add this to your functions.php and it’ll automatically add 30px height to any oEmbed from YouTube. This is only a workaround until YouTube returns the proper values in its embedded HTML. Please let me know if you encounter any problems, but it seems to successfully handle everything I’ve tested thusfar.
//change_youtube_embed_height function do_maths($matches) { $addheight= 30;//height to add $retstring= 'height="'.strval($matches[1]+$addheight).'"'; return $retstring; } function change_ytembed_height($content) { $pattern = '(height=[\'\"](\d+)[\'\"])'; //pattern to look for if (false !== strpos($content,"youtube")) { $content = preg_replace_callback($pattern, do_maths, $content); } return $content; } add_filter('embed_oembed_html','change_ytembed_height'); //end change_youtube_embed_heightThe amount of height to add is in the $addheight variable, and the pattern to match is in the $pattern variable, so it should be fairly easy to adapt this to do other math against values coming back in the HTML from oEmbed.
Forum: Fixing WordPress
In reply to: [YouTube] YouTube oEmbed auto-resizes to the wrong sizeI’m closing in on a solution for this. I just need to figure out a way to create a preg_replace regex which will find all heights and increment them by a set amount (the height of the control bar). I’m struggling a bit with this, but will post back once I can figure it out.
Forum: Fixing WordPress
In reply to: [YouTube] YouTube oEmbed auto-resizes to the wrong sizeNah, I’m not using Jetpack at all. I’m using the built-in wordpress embeds in WP 3.3, and get black bars on all 16×9 content from YouTube embeds.
I’d think a filter similar to this:
http://www.bsdeluxe.com/removing-the-height-from-wordpress-embeds/
or
http://wp-snippets.com/654/adjust-vimeo-auto-embed-size/Would allow us to just modify the height attribute of all your YouTube embeds by adding the height of the bar.
Forum: Fixing WordPress
In reply to: [YouTube] YouTube oEmbed auto-resizes to the wrong sizeHas anyone managed to report this issue to YouTube? I wouldn’t even know where to begin, but this is really an annoying issue.
Is there some way to write a WordPress filter to modify the returned oEmbed value to add the height of the bar as a workaround until they can fix the issue (which I’m sure isn’t high on their priority list).
Forum: Fixing WordPress
In reply to: oEmbed and KickstarterFWIW, here’s the JSON returned by Kickstarter:
{"html":"<iframe frameborder=\"0\" height=\"410px\" src=\"http://www.kickstarter.com/projects/crypteks/crypteks-usbtm-encrypted-and-lockable-usb-solution/widget/video.html\" width=\"480px\"></iframe>","title":"Crypteks USB\u2122 - Inspired Design meets Ultra-Security","author_name":"Crypteks Inc.","provider_url":"http://www.kickstarter.com/","provider_name":"Kickstarter","version":"1.0","type":"rich","height":410,"author_url":"http://www.kickstarter.com/profile/crypteks","width":480}Thanks, I’ll give that a shot when I can take a little time to rebuild indexes. I seem to recall that it took a while the first time.
Yes, works great – fixes some nagging issues with the still being all stretched in the old player too.
I only wish there were support for the IFRAME code instead of the Flash code, but maybe that’ll come at some point.
Viper should at least merge your patch into the main code if he has time (which I know he doesn’t 🙂
Thanks, that’s great. I’ve actually disabled Digg Digg for now and just manually added my Social links to my site, but I’ll still be sure to give your update a shot.
Well, there’s the culprit…
http://www.diggdigg2u.com/digg-digg-v4-5-2/Looks like they upgraded to 1.6 in their plugin. Hopefully, they’ll roll back the jQuery, since theirs is a very widely used plugin.
For now, I’ll see if I can roll back their plugin.
Hmmm. Only two other plugins updated when I went to 3.1.3:
Digg Digg (v.4.5.2)
PuSHPress (v.0.1.7)I’ll check these out and see if I can narrow it down.
P.S. It was working fine in 3.1.2
Forum: Plugins
In reply to: [Plugin: Search Unleashed] searches time out, endless loopDid you guys ever figure this out? I guess I need to disable this plug-in for now. Too bad – it seems like a nice one.
Forum: Installing WordPress
In reply to: 2.7 Flash Uploader ProblemYeah, that fixed it for me too. I upgraded using the automatic upgrade plugin and for some reason this file was missed. A manual upload of “swfupload.swf” fixed it right up.