YouTube Embed Code Changes for Admins - Not Super Admins

My Pro Site blog owners have been having problems embedding videos and A-Stores, etc. To test the problem I first went to one site and embedded regular YouTube embed code in the HTML tab. Like this:

<iframe src="http://www.youtube.com/embed/FQlZ3ORRV2I" frameborder="0" width="399" height="203"></iframe>

It worked fine. I told the user step by step how do to it, but she still had problems. (Code disappearing or not being visible.)

Today, I added myself as an admin to her site (as opposed to working on it as the super admin). I went to the same test post and simply resaved (updated) the page, with no changes. When I did so, all the embed code (like that above) changed to shortcode, like this:

[youtube http://www.youtube.com/watch?v=FQlZ3ORRV2I

This latter code, btw, does not retain the sizing info, etc.

So now I suspect the problems are resulting from some strange setting that is keeping them from adding code the way the super admin does and from the way a NORMAL WordPress install does.

Help?

Edit:

Fortunately, I can still edit this post (would be nice if replying to posts were allowed before a staff member replies). I found the problem. Unfortunately, no one (including admins) on a multisite are allowed to embed code. They can only (as far as I can tell) use oEmbed, which limits what services they can use and the features they can access. Blah.

  • Timothy Bowers
    • Chief Pigeon

    Hey there.

    Fortunately, I can still edit this post (would be nice if replying to posts were allowed before a staff member replies).

    Its not?

    I wonder how members have discussions before a staff member get involved. I'm sure it was not this way when I was a member but will test that out and see with a demo account.

    Unfortunately, no one (including admins) on a multisite are allowed to embed code. They can only (as far as I can tell) use oEmbed, which limits what services they can use and the features they can access. Blah.

    Ya its to stop potential XSS/cross site scripting attacks.

    You can still do sizing:

    http://codex.wordpress.org/Embeds

    You can also opt to wrap the URL in the [embed] shortcode. It will accomplish the same effect, but does not require the URL to be on its own line and the "Auto-embeds" setting to be enabled. It also allows you to set a maximum (but not fixed) width and height, like so: [embed width="123" height="456"]...[/embed]

    Take care.

  • ProSapien
    • The Crimson Coder

    Timothy, thanks for the info on oEmbed. Appreciate it.

    Do you know of a way to embed an AStore (Amazon Store)? I have a pro site owner who wants one, but it also involves iframes. :disappointed:

    Figured out the problem with the new thread. Apparently the reply box (in Safari, at least) appears full width, UNDER all the sidebar stuff. That means it is UNDER about 8" of white space in the content column, so unless I scroll down a couple of screens, it doesn't show up.

    I've enclosed a screen shot, but you can't see that there are many inches of white space before the content box.

    Thanks.

  • Timothy Bowers
    • Chief Pigeon

    Hey again.

    Do you know of a way to embed an AStore (Amazon Store)? I have a pro site owner who wants one, but it also involves iframes. :disappointed:

    Well... Letting people have unfiltered HTML could be dangerous for you even if the customer means well, mistakes happen.

    Anyway:

    Admin --> Network Admin --> Pro Sites --> Modules/Gateway

    You can use the Unfiltered HTML module. I've actually not used it myself but it implies that it won't filter HTML and so I would presume that iFrames should work. Add it to a high level and charge a premium for that.

    You can enter iFrames though, right.. So you could offer a setups for a fee and that should be the safest option.

    I wonder if any of these would be viable alternatives for you:

    http://wordpress.org/extend/plugins/amazon-link/

    http://www.wpzonbuilder.com/ (Commercial)

    http://wordpress.org/extend/plugins/amazon-affiliate-link-localizer/

    http://wordpress.org/extend/plugins/wordpress-amazon-associate/screenshots/

    I've not done much with Amazon so please forgive me if these don't work for an Amazon store or if the plugins don't work.

    Figured out the problem with the new thread. Apparently the reply box (in Safari, at least) appears full width, UNDER all the sidebar stuff. That means it is UNDER about 8" of white space in the content column, so unless I scroll down a couple of screens, it doesn't show up.

    Ah...

    Well we have some changes to that coming, so once that is all set in we'll have to have a look and make sure it looks better in Safari then.

    I've enclosed a screen shot, but you can't see that there are many inches of white space before the content box.

    For some reason that isn't there.

    Take care.

  • aecnu
    • WP Unicorn

    Greetings ProSapien,

    Just checking if this issue was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?

    If so, no need to reply, that's great news.

    If not, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Otherwise, happy days, glad you got it sorted :slight_smile:

    Thank you for being a WPMU Dev member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.