We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Hi,

    I'm trying to add some video and slideshare content to my pages, but when I load the pages the video doesn't show.

    I can see it in the soirce code but it's just not displaying on the actual page.

    Anyone have any ideas why it's not working?

    Thanks.

    Here's the code:

    <object width="640" height="385" data="http://www.youtube.com/v/kAG39jKi0lI?fs=1&hl=en_US" type="application/x-shockwave-flash">
    <param name="data" value="http://www.youtube.com/v/kAG39jKi0lI?fs=1&hl=en_US" />
    <param name="allowFullScreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <param name="src" value="http://www.youtube.com/v/kAG39jKi0lI?fs=1&hl=en_US" />
    <param name="allowfullscreen" value="true" />
    </object>


    And here's the page

    https://hotly.com.au/secrets/strategic-storytelling/clever-storytelling

    There should be a video after the hero image and before the start of the main text.

    I've also noticed from the source code that the code is being slightly rewritten, but I don't think that should affect it. Have to check that more closely.

    Here's how it ends up on the page

    <object data="http://www.youtube.com/v/kAG39jKi0lI?fs=1&hl=en_US" type="application/x-shockwave-flash" width="640" height="385">
    <param name="data" value="http://www.youtube.com/v/kAG39jKi0lI?fs=1&hl=en_US">
    <param name="allowFullScreen" value="true">
    <param name="allowscriptaccess" value="always">
    <param name="src" value="http://www.youtube.com/v/kAG39jKi0lI?fs=1&hl=en_US">
    <param name="allowfullscreen" value="true">
    </object>
    .

    Not sure what's rewriting it.

    I'm using Ace editor, so maybe that's interfering.

    This question has been answered by lkfranklin. See the first response.

    [ed. note: markg last edited this post 5 years, 9 months ago.]
      Content Creator and Copywriter
    • discuss.answer
      • 17301
      • 932 Posts
      Object and Embed were depreciated back in 2015. You need to use iframe:

      <iframe width="640" height="385" src="https://www.youtube.com/embed/tgbNymZ7vqY"></iframe>
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 18367
        • 834 Posts
        Quote from: lkfranklin at Aug 09, 2018, 05:57 AM
        Object and Embed were depreciated back in 2015. You need to use iframe:

        <iframe src="https://www.youtube.com/embed/tgbNymZ7vqY" width="640" height="385"></iframe>

        Ah, many thanks.

        These are all old posts that I'm updating and the original code on some goes back to 2010.
          Content Creator and Copywriter
        • Your site runs on HTTPS while those embeds were using HTTP. That's mixed content and probably got blocked. @lkfranklin's iframe embed uses https, so that's two birds with one stone wink
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 18367
            • 834 Posts
            Yeah thanks Mark, all fixed now.

            As I said these are some old but still evergreen posts I'm updating.
              Content Creator and Copywriter