Daftar Isi
The steps to add YouTube plugins are as follows:
1. Add the requirements below to the file app/assets/javascripts/application.js
//= requires ckeditor/init
2. Create a file and add the configuration below to:
app/assets/javascripts/ckeditor/config.js
CKEDITOR.editorConfig = Function (config) {
config.extraPlugins = ‘youtube’;
}
3. Create a file and add the icon below to it:
app/assets/javascripts/ckeditor/plugins/youtube/images/icon.png
4. Create a file and add the language below for the language:
For English, add the files:
app/assets/javascripts/ckeditor/plugins/youtube/lang/en.js
Code:
CKEDITOR.plugins.setLang(‘youtube’, ‘fr’, {
button: ‘Embed Youtube video’,
title: ‘Embed a Youtube video’,
txtEmbed: ‘Paste the embed code here’,
txtUrl: ‘Paste the URL of the Youtube video’,
txtWidth: ‘Width’,
txtHeight: ‘Height’,
chkRelated: ‘Show suggested videos at the end of the video’,
txtStartAt: ‘Start at (ss or mm:ss or hh:mm:ss)’,
chkPrivacy: ‘Enable enhanced privacy mode’,
chkOlderCode: ‘Use old embed code’,
noCode: ‘You must enter an embed code or URL’,
invalidEmbed: ‘The embed code you entered does not appear to be valid’,
invalidUrl: ‘The URL you entered does not appear to be valid’,
or: ‘or’,
noWidth: ‘You must enter the width’,
invalidWidth: ‘Inform a valid width’,
noHeight: ‘You must enter the height’,
invalidTime: ‘Inform a valid start time’
});
For Japanese, add the files:
app/assets/javascripts/ckeditor/plugins/youtube/lang/ja.js
Code:
CKEDITOR.plugins.setLang(‘youtube’, ‘ja’, {
button: ‘Embed Youtube video’,
title: ‘Integration of YouTube videos’,
txtEmbed: ‘Please paste the embed code’,
txtUrl: ‘Please paste the URL’,
txtWidth: ‘width’,
txtHeight: ‘height’,
chkRelated: ‘Show related videos at the end of the video’,
txtStartAt: ‘Start at’,
chkPrivacy: ‘Enable enhanced privacy mode’,
chkOlderCode: ‘Use previous embed code’,
noCode: ‘Please enter your embed code or URL’,
invalidEmbed: ‘An invalid embed code was entered’,
invalidUrl: ‘An invalid URL was entered’,
or: ‘or’,
noWidth: ‘Please specify the width’,
invalidWidth: ‘There is an error specifying the width’,
noHeight: ‘Please specify the height’,
invalidHeight: ‘There is an error specifying the height’,
invalidTime: ‘Inform a valid start time’
});
For Portuguese, add the files:
app/assets/javascripts/ckeditor/plugins/youtube/lang/pt.js
Code:
CKEDITOR.plugins.setLang(‘youtube’, ‘pt’, {
button: ‘Insert a Youtube video’,
title: “Insert a Youtube video”,
txtEmbed: ‘Paste the embed code for a YouTube video here’,
txtUrl: ‘Paste the URL of a YouTube video here’,
txtWidth: ‘Width’,
txtHeight: ‘Height’,
chkRelated: ‘Show suggested videos at the end of the video’,
txtStartAt: ‘Start at (ss or mm:ss or hh:mm:ss)’,
chkPrivacy: ‘Enable enhanced privacy mode’,
chkOlderCode: ‘Use old embed code’,
noCode: ‘You must provide an embed code or URL’,
invalidEmbed: ‘The code provided does not appear to be valid’,
invalidUrl: ‘The URL provided does not appear to be valid’,
or: ‘or’,
noWidth: ‘You must enter the width of the video’,
invalidWidth: ‘Enter a valid width’,
noHeight: ‘You must enter the height of the video’,
invalidHeight: ‘Enter a valid height’,
invalidTime: ‘The time entered is not valid’
});
5. Create a file and add the plugins below to:
app/assets/javascripts/ckeditor/plugins/youtube/plugins.js
6. Tadd ckeditor to assets file config/initializers/assets.rb
Rails.application.config.assets.precompile +=%w(ckeditor/* )
7. Tshow in ckeditor
8. When the “youtube” icon When you click, it will appear as below.
To view videos on our website, you need the YouTube video URL and paste it into the column “Paste Youtube video URL”.
To learn more about Ruby on Rails tutorials, visit Learn Ruby on Rails
PakarPBN
A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.
In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.
The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.
