Difference between revisions of "CentOS 7.x Install mediawiki youtube plugin"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Install mediawiki youtube plugin">CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb> =CentOS 7.x Install mediawiki youtube plugin= To configure mediawi...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Install mediawiki youtube plugin]] | |||
To configure mediawiki youtube plugin use following steps: | To configure mediawiki youtube plugin use following steps: | ||
Line 30: | Line 29: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Install mediawiki youtube plugin]] |
Latest revision as of 09:19, 25 August 2022
Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Install mediawiki youtube plugin
To configure mediawiki youtube plugin use following steps:
- Open https://www.mediawiki.org/wiki/Special:ExtensionDistributor/YouTube and download extension using download link for appropriate mediawiki
- Go to mediawiki base folder
- cd ./extensions
- Extract downloaded file using:
- tar xzf <full-path>
-
- For example, tar xzf /home/saurabh/Downloads/YouTube-REL1_31-f6252db.tar.gz
- Edit LocalSettings.php for your mediawiki and append:
- #Load youtube extension
- wfLoadExtension( 'YouTube' );
- at bottom of file
- Go to special:version page of mediawiki and validate that extension is properly installed
- Test by embedding a youtube video and check if it is appearing properly
- To embed a YouTube video:
- <youtube>foo</youtube>
- where foo is the video ID from the URL. i.e. if the video's URL is https://www.youtube.com/watch?v=UwiNtMsdo1Y, then the embed code would be <youtube>UwiNtMsdo1Y</youtube>.
- To embed a YouTube video:
The steps have been validated for mediawiki 1.31. They should work on other modern versions also.
Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Install mediawiki youtube plugin