ElkArte Community

Project Support => Support => Topic started by: meetdilip on September 08, 2014, 12:17:41 pm

Title: How to embed YouTube
Post by: meetdilip on September 08, 2014, 12:17:41 pm
How to embed YouTube ? Help me out please....
Title: Re: How to embed YouTube
Post by: emanuele on September 08, 2014, 12:22:48 pm
https://www.youtube.com/watch?v=10KObAQFmlY

Paste the link. ;)

After you have enabled "Enable auto-embedding of video links" in admin > forum  > Posts and Topics >.Post Settings.
Title: Re: How to embed YouTube
Post by: meetdilip on September 08, 2014, 12:29:24 pm
Thanks. But I think we are better off without that border and title.
Title: Re: How to embed YouTube
Post by: emanuele on September 08, 2014, 12:38:44 pm
The beauty of css:
Code: [Select]
.elk_videoheader {
display: none;
}
;)
Title: Re: How to embed YouTube
Post by: meetdilip on September 08, 2014, 03:24:55 pm
Quote from: emanuele – The beauty of css:
Code: [Select]
.elk_videoheader {
display: none;
}
;)

Which file ?
Title: Re: How to embed YouTube
Post by: meetdilip on September 08, 2014, 03:34:37 pm
Got it. Index_light.css , also need to set the .elk video  element's border a 0 px.
Title: Re: How to embed YouTube
Post by: emanuele on September 08, 2014, 04:08:47 pm
A small suggestion:
http://www.elkarte.net/community/index.php?topic=1103.0
this "custom.css" (or even custom_light.css) are there to let you do changes to the aspect of the forum without having to touch the default file.
That way, if for any reason the default css changes you don't have to worry about re-apply the changes. ;)
Title: Re: How to embed YouTube
Post by: Spuds on September 08, 2014, 04:40:52 pm
Just to note, one nice thing about the way it works is that first shows a clickable preview thumbnail of the video.  Once the image is clicked the video is embeded in to the page to play.  This is a bit less overhead for the page load.

Without the header you can't hide the video, but thats not really very important, and indeed the border is a bit uninspired !
Title: Re: How to embed YouTube
Post by: meetdilip on September 08, 2014, 11:04:57 pm
Quote from: Spuds – Without the header you can't hide the video, but thats not really very important, and indeed the border is a bit uninspired !

Err, Sorry if I should not say this, Vanilla does it without header (IIRC).
Title: Re: How to embed YouTube
Post by: Jorin on September 09, 2014, 02:33:31 am
Quote from: emanuele – A small suggestion:
http://www.elkarte.net/community/index.php?topic=1103.0
this "custom.css" (or even custom_light.css) are there to let you do changes to the aspect of the forum without having to touch the default file.
That way, if for any reason the default css changes you don't have to worry about re-apply the changes. ;)

Missed that one. Great! I will try to use it with my support board when I upgrade it to ElkArte 1.0.0 the next days.  :)
Title: Re: How to embed YouTube
Post by: emanuele on September 09, 2014, 12:37:07 pm
Yep, it's quite helpful if you want to change few things without having to create a new theme.
Title: Re: How to embed YouTube
Post by: radu81 on October 01, 2014, 06:31:46 am
Quote from: emanuele – this "custom.css" (or even custom_light.css) are there to let you do changes to the aspect of the forum without having to touch the default file.
That way, if for any reason the default css changes you don't have to worry about re-apply the changes. ;)
I like the idea of having a custom css file ;) Great!