-
AuthorPosts
-
January 16, 2009 at 10:36 pm #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 Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
January 16, 2009 at 11:08 pm #286857You 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…
1 user says Thank You to wooohanetworks for this useful post
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 17, 2009 at 12:20 am #286863lmw1;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”.
1 user says Thank You to scotty for this useful post
wooohanetworks Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
January 17, 2009 at 1:12 am #286865The real solution for the hardcore coders…;)
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 17, 2009 at 1:24 am #286867wooohanetworks;106591The real solution for the hardcore coders…;)
At least I have a solution. Not 6 paragraphs of nonsense.
wooohanetworks Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
January 17, 2009 at 1:41 am #286870Right, 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 Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 17, 2009 at 3:17 am #286872Your 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.
January 17, 2009 at 3:37 am #286876Gentlemen, thank you “both”. Now I have 2 new ways of doing something, and both your answers worked wonderfully!
Thanks men!
Respectfully,
LMW1scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
January 17, 2009 at 4:05 am #286879lmw1;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.
-
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by scotty 15 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum