test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • questbg Friend
    #137784

    Hi Everyone

    For a change I had a few spare moments today so was messing around with the YouTube module on our test site (currently the module is not published on the live site).

    I modified the module and added the following code:

    <li><a class="video" href="http://www.youtube.com/v/ZgNxUdnkoEA&hl=en" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width:425, height:355 } )"> The Mighty Steve Rothery </a></li>

    Then went to front page of site, and sure enough the link appeared in the tab:

    Click on the link and video appears in a highslide window:

    However, at the end of the video clip, it then loads ‘Related Videos’ which looks a real mess:

    Is there any possible way to stop it pulling the related clips at the end and just play the one video I want?

    Or, is this something that’s governed by YouTube and I’m stuck with? If so, I think I’ll not bother :((

    Thanks
    Chris

    bennitos Friend
    #289509

    Hi again! 🙂

    Yes you can actually stop the related vids by adding &rel=0 to your code.

    In your case it would be:


    <li><a class="video" href="http://www.youtube.com/v/ZgNxUdnkoEA&hl=en&rel=0" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width:425, height:355 } )"> The Mighty Steve Rothery </a></li>

    For a little more information on the subject and the used code see:
    http://www.varesano.net/blog/fabio/disable+related+videos+embedded+youtube+player

    questbg Friend
    #289510

    Thanks again bennitos … once again, spot on! 😀

    It now works fine so I shall activate the module in the live site.

    Best Regards
    Chris

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  questbg 15 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum