Wordpress

create your own chat gpt interface

Create your own Chat GPT Interface plugin for WordPress using OpenAI’s API

A great way to get around the sometimes high costs of premium AI service plans is to create your own Chat GPT interface. You can the same functionality for a fraction of the cost when using your own interface that connects to OpenAI’s API. Creating an application that interfaces with OpenAI’s API using PHP (potentially […]

Create your own Chat GPT Interface plugin for WordPress using OpenAI’s API Read More »

Loading Indicator

Loading Indicator PHP Function (with JS and CSS)

Creating a Loading Indicator with PHP, JavaScript, and CSS A loading indicator is a visual cue that informs users that a process is underway, enhancing user experience by providing feedback during wait times. This snippet demonstrates how to create one using PHP, JavaScript, and CSS. This handy function wraps some HTML, CSS, and JS to create a pulsing circle and

Loading Indicator PHP Function (with JS and CSS) Read More »

PHP error log - operator not supported

[] operator not supported for strings – PHP

I had a problem with Revolution Slider on a WordPress installation when upgrading to PHP 7.2+. It would generate the error – PHP Fatal error: [] operator not supported for strings in C:[path]\wp-content\plugins\revslider\includes\framework\base-admin.class.php:71 The problem was from the plugin attempting to use the short array push syntax on a string: The solution was to modify

[] operator not supported for strings – PHP Read More »