Архив рубрики: Публикации

Best plugin for youtube output in WordPress – Youtube Channel Gallery

Long searched for a suitable plugin to display video from youtube on the site with the engine WordPress. There are a lot of options. And most of them are paid. Prices range from $10 to $200, and the quality and capabilities of plugins are often very poor.

 

As a result, I found a FREE plugin for video output 🙂 Saving your time, it’s called Youtube Channel Gallery by Javier Gomez Pose.

 

This plugin can output video from multiple channels. Its functionality is wider than that of similar plugins.

 

How to use it:

  1. install the plugin
  2. add anywhere via “text” a construction of the form

    [Youtube_Channel_Gallery user="googledevelopers" key="your_Google_API_key" maxitems="16" thumb_columns_tablets="4" title="1"]

where in the user field insert the id of your channel, and in the key field insert the API goolge key (taken here). There are also a bunch of other output options, details in the description of the plugin in wordpress repository.

 

You can add as many constructs as you want, i.e. output as many channels as you want.


How to add Google Adsense in WordPress child theme

To insert ads into a child theme on an Adsense site: add the following code to function.php:

////////////////////////

///Google AdSense:

//

add_action('wp_head', 'wpse_43672_wp_head');

function wpse_43672_wp_head(){

    //Close PHP tags 

    ?>

<script data-ad-client="ca-pub-<publisher-numberic-code>" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    <?php //Open PHP tags

}

////////////////////////

Don’t forget to replace the publisher’s numeric code (also removing the angle brackets around it).

p.s.

But in general it is more convenient to insert this code through a wordpress widget 🙂


Как вставить Google Adsense в дочернюю тему WordPress

Чтобы вставить на сайт Adsense рекламу в дочернюю тему: в function.php добавляем следующий код:

////////////////////////

///Google AdSense:

//

add_action('wp_head', 'wpse_43672_wp_head');

function wpse_43672_wp_head(){

    //Close PHP tags 

    ?>

<script data-ad-client="ca-pub-<цифровой код издателя>" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    <?php //Open PHP tags

}

////////////////////////

Не забудьте заменить цифровой код издателя (убрав угловые скобки).

p.s.

Но вообще удобнее вставлять этот код через виджет 🙂


Linux Mint 21.1 «Vera»: Стабильность, традиции и свежий взгляд

Linux Mint 21.1 «Vera», выпущенный в конце 2023 года, представляет собой долгосрочный релиз (LTS), который будет поддерживаться до 2027 года. Эта версия дистрибутива основана на Ubuntu 22.04 LTS «Jammy Jellyfish» и привносит ряд изменений, улучшений и новых функций, сохраняя при этом верность традициям Linux Mint в плане стабильности, удобства использования и классического рабочего стола. Читать

Настройка WireGuard на MikroTik

Схема WireGuard в MikroTikLab

Сегодня речь пойдёт о долгожданной настройки VPN WireGuard на Mikrotik RouterOS 7.3.1. Ранее данный тип соединения не был доступен, но с выходом «семерочки» мы теперь можем создавать данный тип туннеля.

Из основных плюсов его это: Читать

Проброс портов в Mikrotik – инструкция по настройке

Один из самых частых вопросов у новых пользователей routeros как настроить в mikrotik проброс портов или по-другому трансляцию портов. В данной публикации мы детально, по шагам покажем как настроить dst-nat на микротике и что делать, куда смотреть если проброс не работает. Для общего понимая этого материала вам нужны базовые знания работы NAT, устройство ip пакета (то, что в нем есть адрес источника и отправителя) и TCP и UDP протоколы. Потренироваться можно на эмуляторе eve-ng или под VirtualBox запустить виртуальный роутер скачав образ с оффициального сайта RouterOS.  Надеюсь что вы все это знаете, можно приступать. Читать