- Posts: 6
COMMUNITY FORUM
Disable youtube related videos
- Jaime Steele
-
Topic Author
- Offline
- New Member
Less
More
14 years 8 months ago #35450
by Jaime Steele
Disable youtube related videos was created by Jaime Steele
Hi I'm using all videos as a plugin to K2 - can someone tell me how to disable related videos in youtube as a rule?
Many thanks
Jaime
Many thanks
Jaime
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
Less
More
- Posts: 4696
14 years 8 months ago #35451
by Katia
Replied by Katia on topic Re: Disable youtube related videos
Related videos are performed by Youtube, which means that you cannot disable them via AllVideos settings.
Please Log in or Create an account to join the conversation.
- Jaime Steele
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 6
14 years 8 months ago #35452
by Jaime Steele
Replied by Jaime Steele on topic Re: Disable youtube related videos
by adding rel=no into the embed code you can.
Is this not something that can be inserted into the allvideos code to append every link?
Is this not something that can be inserted into the allvideos code to append every link?
Please Log in or Create an account to join the conversation.
- Guy Sidford
-
- Offline
- New Member
Less
More
- Posts: 1
14 years 6 months ago #35453
by Guy Sidford
Replied by Guy Sidford on topic Re: Disable youtube related videos
edit /plugins/content/jw_allvideos/includes/sources.php
change
to
change
<object type=\"application/x-shockwave-flash\" style=\"width:{WIDTH}px;height:{HEIGHT}px;\" data=\"https://www.youtube.com/v/{SOURCE}&hl=en&fs=1\" title=\"JoomlaWorks AllVideos Player\">
to
<object type=\"application/x-shockwave-flash\" style=\"width:{WIDTH}px;height:{HEIGHT}px;\" data=\"https://www.youtube.com/v/{SOURCE}&hl=en&rel=0&fs=1\" title=\"JoomlaWorks AllVideos Player\">
Please Log in or Create an account to join the conversation.
- marcinszczyg
-
- Offline
- New Member
Less
More
- Posts: 10
14 years 6 months ago #35454
by marcinszczyg
Replied by marcinszczyg on topic Re: Disable youtube related videos
Thank you!
Save my day.
Save my day.
Please Log in or Create an account to join the conversation.
- Sherie
-
- Offline
- New Member
Less
More
- Posts: 1
13 years 9 months ago #35455
by Sherie
Replied by Sherie on topic Re: Disable youtube related videos
Hi, I modified the plugin as described but I am still getting the suggested videos after my clip has played on my website. Any ideas?
Please Log in or Create an account to join the conversation.
- Massimo Marchetto
-
- Offline
- Senior Member
12 years 3 months ago #35456
by Massimo Marchetto
Replied by Massimo Marchetto on topic Re: Disable youtube related videos
Update...
row # 222 in jw_allvideos/jw_allvideos/includes/sources.php
"youtube" => "<iframe width=\"{WIDTH}\" height=\"{HEIGHT}\" src=\"www.youtube.com/embed/{SOURCE}?rel=0\" frameborder=\"0\" allowfullscreen title=\"JoomlaWorks AllVideos Player\" >",
adding ?rel=0\ at the end of src url.
row # 222 in jw_allvideos/jw_allvideos/includes/sources.php
"youtube" => "<iframe width=\"{WIDTH}\" height=\"{HEIGHT}\" src=\"www.youtube.com/embed/{SOURCE}?rel=0\" frameborder=\"0\" allowfullscreen title=\"JoomlaWorks AllVideos Player\" >",
adding ?rel=0\ at the end of src url.
Please Log in or Create an account to join the conversation.