Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • lmw1 Friend
    #137195

    If you embed a youtube video on your website, is there a way to “NOT” link to youtube when you click on the video that’s playing?

    Just curious.

    LMW1

    wooohanetworks Friend
    #286857

    You can wrap a code around the video/module and it will open another link. But most likely the play button will not work no more and also none of the other buttons. Any click on the video player would cause the action you define with the code you set around the module. I would do this only with the simple players that do not have buttons and would manually set the video on autoplay and repeat. It could also be that the buttons still work and on double click the new link will be openend. I tried it once and do not know no more how it exactly was. You have to check it out, and see below…

    Check Google for “autoplay you tube videos”, “custom you tube video players” and if you do not know how to wrap a code around it, it is like with a picture you link, just apply it somehow to the video…. It works better with videos from Google Video but with YouTube it should also work out fine.

    Example:

    When you embed a video with the code from the site directly you have this code…add the code in red

    <a href=”#”><object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/QATAtvkDPVA&hl=de&fs=1″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/QATAtvkDPVA&hl=de&fs=1″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object></a>

    And the video should not be linked to YT no more, theoretically, I cannot test it right now, but it should work, you can replace the “#” with an url of your choice. This “#” would move the page to the top again or when inside a Joomla module, nothing may happen at all.

    When you want to use a simple YT Video Module, there you may only have to add the url of the video into the admin to play it and embed it. There you would have to open the modules php files and add some code similar to the one above on the right place like where the code is about the display of the video and the url added, check it out…

    scotty Friend
    #286863

    lmw1;106581is there a way to “NOT” link to youtube when you click on the video that’s playing?

    Yes. Best way is to use a custom player like this one which also allows you to place custom logo on vid. Not a very high quality one but there are others. Just google “custom youtube player”.

    wooohanetworks Friend
    #286865

    The real solution for the hardcore coders…;)

    scotty Friend
    #286867

    wooohanetworks;106591The real solution for the hardcore coders…;)

    At least I have a solution. Not 6 paragraphs of nonsense.

    wooohanetworks Friend
    #286870

    Right, like you said, you are still a beginner so to learn how to use codes will not be something for you, I am sorry.

    And as you mention it, every plugin and another plugin brings down the performance of a site and I like to remember you of your useful post about the 10 stupidiest admin tricks, one was to take any third party extension and so on…I did not know that you do not understand by now how to utilize some mod_custom, to add some code and to finely avoid a few things that come up when I use your way….SORRY!!!

    (Nonsense….my solution is one that even is better than your plugin stuff….you just do not want to “stick to the codes”..)

    scotty Friend
    #286872

    Your solution?

    Where?

    You didn’t post any.

    You told him to place it all in a link to “#”. This link (when it’s used properly) returns you to the top of the page. Why would you advise him to do that? How are his visitors supposed to click the play button?

    As I said… 6 paragraphs of nonsense.

    lmw1 Friend
    #286876

    Gentlemen, thank you “both”. Now I have 2 new ways of doing something, and both your answers worked wonderfully!

    Thanks men!

    Respectfully,
    LMW1

    scotty Friend
    #286879

    lmw1;106603and both your answers worked wonderfully!

    :eek::eek::eek:

    // Scotty begins to doubt himself and runs off to check Woohs solution //

    Ehh nope. It doesn’t work.

    It can’t. The “#” is an anchor. As it’s an empty anchor it returns to the top of the page (normally) but in this case as there are links within the embedded ‘object’ which are read before the closing tag </a> of the “#”, it becomes obsolete. If it did work, the video would be unplayable.

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

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

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