Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Remove Youtube "Related Videos" from Module


Go to End


1657 Views

Avatar
1

Community Member, 5 Posts

1 December 2008 at 9:46pm

I am successfully using the youtubeservice module and am very happy with it. Can anybody suggest a way to remove the related videos? I'm almost clueless with PHP.

This is what YouTube gives me when I choose to exclude the "Related Videos":

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/VIDEOIDHERE&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7i8aNCaNgro&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

So basically it seems like it's adding

&rel=0
to the link. I tried adding this in a couple of places in the module without any luck. Any suggestions?