Wednesday, March 9, 2016

How to embed Youtube video using Joomla 3?

Embedding a YouTube video in an exceedingly} Joomla article may be very straightforward. Even beginners will love manually while not victimisation any further extension or plugin. however theresquare measure so some configuration issues you’ve got to influence before playing a palmyembedding.
By default, Joomla editor filters out iframe and a few alternative HTML tags for the sake of web sitesecurity. Besides, the total Joomla system may additionally be designed to get rid of the HTML tags inserted by explicit user teams. To resolve the problems, follow the directions below.

Allow iframe in Your Text Editor

Taking TinyMCE editor as an example, you need to take the following steps to remove the restriction for iframe. Note: if you are not sure which editor is currently used, edit your profile and browse the Basic Settings.
Default Text Editor

Step 1. Go to Extensions > Plugin Manager and find the Editor – TinyMCE plugin in the list.

Editor - TinyMCE Plugin

Step 2. In the plugin settings, scroll down to Prohibited Elements. This line defines which HTML elements are not allowed and will be removed from the text automatically. The default value includes “script”, “applet” and “iframe”, so now you need to delete iframe from the text box, and then save changes.

Remove iframe from Prohibited Elements

Disable Text Filtering for Trusty User Groups

Joomla world Configuration includes a special section for text filters. despite that text editor you employ on your website, the settings there goyou ought to build a amendment to the settingstherefore on enablebound users to plant videos with iframe.
To access the settings, you need to go to System > Global Configuration, and click on the tab saying “Text Filters”.

Global Configuration - Text Filters

Under the tab you’ll be able to see all user teams accessible on your web site and every of them has separate settings that you’ll be able to customise as you would like. As shortly as you outline the “Filter Type” as “No Filtering”, all users within the corresponding user cluster would have the liberty to use no matter code as well as iframe.
To minimize the vulnerabilities of your web site whereas guaranteeing the convenience of inserting necessary code, you want to limit the allowance of no filtering to people who really want it. Less is best.

Configure Text Filters

Embed a YouTube Video in an Article

Firstly, you need to get the embedding code of the video. Under the video play-screen, click on “Share”, and then select “Embed”. Under the tab, there is a line of the embed code. Just copy the code.

YouTube Video Embed Code

Then, produce a replacement article. within the text editor, click on the “source code” button, and insert the introduce code where you wish the video to show. Also, you’ll be able to modify the worthof dimension, height, frame border and full screen supported the look of your website.

Add Embed Code in Source Code

As TinyMCE is a WYSIWYG editor, after saving the code, you can see a video appear on the edit screen.

Embed YouTube Video

Saving the article and refreshing the frontend of your Joomla site, you will find that the video display in the article properly.
 Reamore at here

No comments:

Post a Comment