Change a letsencrypt SSL certificate to a webroot renewal instead of spinning up a standalone server.
When you first use letsencrypt, or certbot, to add an SSL certificate to a Ubuntu or other linux flavour server it will often install the certificate as a standalone certificate. This could have been because of the guide you followed in the past or you may have an old server that you administer that has standalone certificates in place.
Standalone certificates specifically spin up their own web server in order to check the domain and run through the challenges and install the certificate. This can cause issues when another web server such as Apache or Nginx are already running on port 80 (http) and mean more complex renewal processes need to happen where Nginx needs to be [...]
Converting Formidable Forms date to a Unix Timestamp
Formidable Forms is a great WordPress plugin that provides a simple yet powerful UI for creating forms. It is now the only form plugin we use on our sites.
One of the main features we utilise Formidable forms for is its capability to send API data to any external source.
This is particularly useful for when certain products or, in our case, CRM systems do not have specific actions built into their current “integrations” or plugins.
One recent project required that we use Formidable forms to send a date to an external CRM API to update a date field.
So we setup the Send API Data action to send the resulting date field to the external CRM [...]
Quick and easy datatables with jquery
You want a nice looking, easy to use, table to display some data.
You can spend some time custom coding the table with various sorting functions and perhaps hiding the odd column but that’s all done for you already. Using Jquery Datatables.
I will show a couple of quick examples on how I now use the datatables Jquery plugin to quickly be able to control various functions of the table to make it simple and easy to use.
First off you include the two required files, A Css file and a JS file.//cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css //cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js
Then you can just include one piece of js code [...]