Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Well, first for YouTube, oEmbed is built into WordPress and it takes care of that. So I’d get rid of the other plugin using those shortcodes, since you don’t need it. Just [embed]http://youtu.be/iWiX8IUw36c[/embed] will work, no plugins needed.

    Second, SFC processes shortcodes. So if the other plugin was capable of processing the shortcode on the admin side of things, then the shortcode would be processed into the embed code, SFC would pick it up and convert it into the proper video meta tags, and your shared post on Facebook would then actually have the video in it.

    So, basically whatever shortcode plugin you’re using that creates that shortcode isn’t quite doing it right. Use embed instead. It’s easier and it always works.

    Thread Starter NuKeD

    (@nuked)

    Thanks for responding.
    My first idea was to use the [embed] WordPress, but not working.

    For example, I embed a video without plugins with fixed size of 936px width and height: 587px and wordpress shows me another different size: width: 783px and height: 587px. :s

    To me this is a problem because it breaks my design.

    For this I had to use a plugin because I do not know how to fix it.

    If I could edit any part of WordPress core to set the exact size. My site just going to have the same size for all videos.

    Thank you for your help.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The size of an embed defaults to the max-size of the theme’s container. So if the theme has correctly defined its content width, then that’s the size the embed will fit to.

    If the theme isn’t defining things properly, or you want to override it, then you can do [embed width=123 height=456]...[/embed]

    Thread Starter NuKeD

    (@nuked)

    Thx. I fix.

    I have another question.

    Why in the file sfc-media.php see these sizes?

    Line 120:

    $og['og:video:height'] = 398;
    $og['og:video:width'] = 224;

    Videos facebook wall are very close.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Those are the sizes YouTube itself uses in their own metadata for most of the videos I’ve been able to find. Occasionally they’ll use a different size for non-widescreen videos, but the majority of the videos are widescreen and they handle the non-wide ones with boxing anyway.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Remove Shortcodes’ is closed to new replies.