Do you need to know how to code? Or do you need to be able to think and use Artificial Intelligence?

Yes Yes Yes. The topic is already beaten. Everyone got sick of this artificial intelligence (AI), so I decided to try it out.

The first to test, of course, was the well-known ChatGPT. By the way, if you are from the Russian Federation or Kazakhstan, then there may be difficulties with registration, since +7 numbers are not yet available for registration. You need a SIM card for Europe or the Americas. Fortunately, I lived in Turkey for a month and I have a Turkish SIM card. She was perfect for registering with ChatGPT. But what a disappointment it was at the first attempts to use it.

  1. Servers are not always available. You simply cannot log in while the servers are silent. And the only thing you can do is leave your mail so that you receive a letter with a notification about turning on the servers.
  2. When you do manage to enter the chat, and when you play enough with the simplest questions, you will notice that he just lags. This is probably due to excessive popularity and as a result of the frantic load on the servers.

But if you use it for coding?

To write a simple code, you need to spend a lot of time to learn a programming language. And with AI, you just need to write what you want, and he will do it for you. But there is a big BUT.

This is BUT, in the number of characters that is allotted for the AI to answer you. AI will gladly start writing code for you, and will even put comments in lines explaining what it does. And then BAM and the server does not answer. The number of requests is large. And the code remains unfinished.

Perhaps this can be solved with a paid subscription. 20 $ month for a person who constantly codes is a normal solution. For me, where I need to code something once a month, this is a so-so solution.

Paid subscription to ChatGPT

ChatGPT's competitor, a search engine from Microsoft, came to the rescue - bing. To run it, you need to open a tab in our all-unloved EDGE browser. Everything is the same, only the servers are more reliable.

And there is a limit of 2000 characters on the input and output of information. But there is a life hack. When the AI has written you the first 2000 characters of code, just write “continue” to it and it will continue from the same place where it left off. All you have to do is paste this code in a notepad and voila.

That's how I wrote a whole WordPress plugin just by writing my wishes to the notorious AI.

The plugin works on this site, on the page Selling Prius

It wasn't perfect, of course, but it was exactly what I wanted.

I remember before you had to scour the entire Internet in search of a normal plugin or go to freelance sites so that they could write such a plugin for you. And then a couple of requests, a couple of tests and voila - the plugin is ready.

Settings in the plugin in the admin panel

Yes, I know that you could just hide the page. Or just write code in the page itself. But the idea was to write a plugin.

Here is his code:

Plugin Name: VB Page Overlay
Plugin URI:
Description: A stub for one page with text of your choice. Completely written by AI at my request.
Version: 1.0
Author: VladimirBortnik
Author URI:
function vb_page_overlay_menu() {
add_options_page('VB Page Overlay', 'VB Page Overlay', 'manage_options', 'vb-page-overlay', 'vb_page_overlay_options');
add_action('admin_menu', 'vb_page_overlay_menu');
function vb_page_overlay_options() {
if (!current_user_can('manage_options')) {
wp_die(__('You do not have sufficient permissions to access this page.'));
$pages = get_pages(); echo&#039;<div class="wrap">&#039;; echo&#039;<h2>VB Page Overlay</h2>&#039;; echo&#039;<form method="post" action="/en/options.php/" data-trp-original-action="options.php">&#039;; settings_fields(&#039;vb-page-overlay-settings&#039;); do_settings_sections(&#039;vb-page-overlay-settings&#039;); echo&#039;<table class="form-table">&#039;; echo&#039;<tr valign="top">&#039;; echo&#039;<th scope="row">Page:</th>&#039;; echo&#039;<td><select name="vb_page_overlay_page">&#039;; foreach ($pages as $page) { $selected = (get_option(&#039;vb_page_overlay_page&#039;) == $page-&gt;ID) ? &#039;selected&#039; : &#039;&#039;; echo&#039;<option value="' . $page->ID . '" ' . $selected>&#039; . $page-&gt;post_title . &#039;</option>&#039;; } echo &#039;</select></td>&#039;; echo&#039;</tr>&#039;; echo&#039;<tr valign="top">&#039;; echo&#039;<th scope="row">text:</th>&#039;; echo&#039;<td><input type="text" name="vb_page_overlay_text" value="' . get_option('vb_page_overlay_text') . '" /></td>&#039;; echo&#039;</tr>&#039;; echo&#039;<tr valign="top">&#039;; echo&#039;<th scope="row">Text Size:</th>&#039;; echo&#039;<td><input type="number" name="vb_page_overlay_text_size" value="' . get_option('vb_page_overlay_text_size') . '" /></td>&#039;; echo&#039;</tr>&#039;; echo&#039;<tr valign="top">&#039;; echo&#039;<th scope="row">Text Color:</th>&#039;; echo&#039;<td><input type="color" name="vb_page_overlay_text_color" value="' . get_option('vb_page_overlay_text_color') . '" /></td>&#039;; echo&#039;</tr>&#039;; echo&#039;</table>&#039;; submit_button(); echo&#039;<input type="hidden" name="trp-form-language" value="en"/></form>&#039;; echo&#039;</div>';
function vb_page_overlay_settings() {
register_setting('vb-page-overlay-settings', 'vb_page_overlay_page');
register_setting('vb-page-overlay-settings', 'vb_page_overlay_text');
register_setting('vb-page-overlay-settings', 'vb_page_overlay_text_size');
register_setting('vb-page-overlay-settings', 'vb_page_overlay_text_color');
add_action('admin_init', 'vb_page_overlay_settings');
function vb_page_overlay() {
if (is_page(get_option('vb_page_overlay_page'))) {
$text = get_option('vb_page_overlay_text');
$text_size = get_option('vb_page_overlay_text_size');
$text_color = get_option('vb_page_overlay_text_color');
echo&#039;<div style="position: fixed; top: 120px; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: rgba(0, 0, 0, 0.5);">&#039;; echo&#039;<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); font-size:' . $text_size . 'px; color:' . $text_color . ';">&#039; . $text . &#039;</div>&#039;; echo&#039;</div>&#039;; echo&#039;<style>.entry-content ~ * { pointer-events: auto !important; }</style>'; }
add_action('wp_footer', 'vb_page_overlay');

Just create a folder in Plugins and write this code in notepad, save it in php and place it in this folder.

Share your love

Leave a Reply

Your email address will not be published. Required fields are marked *