Hi, btw I really appreciate this module.

I know that you can hide related youtube videos using rel=0 in embed code. But this field takes the url - is there a way I can modify this module so that it always adds the rel=0, and still have the field take plain urls?
It would be awesome capability to have a checkbox to hide related youtube videos...
Or is there a way to do this?

Members fund testing for the Drupal project. Drupal Association Learn more


jec006’s picture

Category: feature » support
Status: Active » Fixed


If you go to the configuration for Video Styles at : admin/config/media/vef_video_styles/list/

And edit the style you use to display the video (configured in the display settings) under youtube there is an option to show or not show related videos.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

robertom’s picture

Version: 7.x-2.0-beta5 » 7.x-2.x-dev
Category: support » bug
Status: Closed (fixed) » Needs review
410 bytes

Hi, sorry for my bad english

The generated embedded code have a &rel attribute, but don't add =0 when related videos is set to not show.

there are similar problem for &showinfo and other parameters that have a 0 value.

I would add a proposed patch

BD3’s picture

I can confirm that #3 fixed the issue for me.

philipz’s picture

Status: Needs review » Reviewed & tested by the community

Worked for me too, thanks!

serg2’s picture

Patch works for me too.
Opened a new issue as this this patch applies the correct settings provided in styles, not just 'Hiding related videos'.
I reference this post & patch.
Hope that was the correct thing to do, thanks.

mcunningham’s picture

Yes, the patch works. Please commit!

plopesc’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Patch committed af38cf8

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

saidbakr’s picture

I have the latest version of the module : 7.x-2.0-beta11 and I still have this issue, the related videos is still available after the end of the video. I tried to set a Google's project to get Google's YouTube api hoping it solve the issue but it does not solve the issue.

thomas.frobieter’s picture

Same problem here like #10 - any solutions?

Vincent_Jo’s picture

same here (#10)
... my customer is not amuzed to see "related videos" by his competitors at the end of the videos ;-)

remaye’s picture

Vincent_Jo’s picture

Confirming "dirty fix" from #13

thanks a lot!