Tag: example

  • The Perfect ISPConfig Ubuntu 18.04 Server

    The Perfect ISPConfig Ubuntu 18.04 Server

    ISPConfig on Ubuntu 18.04

    Ubuntu 18.04 with Apache, BIND, Dovecot, PureFTPD and ISPConfig

    This tutorial shows how to prepare an Ubuntu 18.04 server (with Apache2, BIND, Dovecot) for the installation of ISPConfig, and how to install ISPConfig. The web hosting control panel ISPConfig allows you to configure the following services through a web browser: Apache or nginx web server, Postfix mail server, Courier or Dovecot IMAP/POP3 server, MySQL, BIND or MyDNS nameserver, PureFTPd, SpamAssassin, ClamAV, and many more. This setup covers Apache (instead of nginx), BIND, and Dovecot. I have changed a fair bit of the original tutorial, even the one they have up there now for 18.04 isn’t complete, which is where this one came from … I thought if I was going to have to correct a lot of their instructions, I may as well publish them here on my own tools for when I need them again. The fact it helps the rest of you that view it, double bonus. (I also like to have everything available on one page when I am working through stuff, so I have also removed the annoying pagination.)

    (more…)
  • HTML 5 Audio Tags are not all equal with Javascript and PHP

    HTML 5 Audio Tags are not all equal with Javascript and PHP

    Recently I was asked to create an audio proxy, whereby no files were contained within DOCROOT. Straight forward I thought, how hard can it be when all it requires is a range resume delivery system. Well, I was once again thwarted by the changes Apple make to their products without telling anyone.

    (more…)

  • How to create Custom Coupon Types in WooCommerce

    Coupons are one of WooCommerce’s greatest assets; everyone loves a discount. However, the default types and restrictions may not be exactly what you’re looking for and you may need to extend the functionality. After being recently commissioned to extend the coupon functionality of a stable (all be it old), 2.3.11 installation, finding the right places to hook into WooCommerce to extend the coupon system proved time consuming.

    (more…)

  • get_product_search_form

    The filter used for intercepting the default WooCommerce product search form. Assigning a new function to this filter allows the search form to be redesigned to specific requirements

    [php]<?php

    function webdav_get_product_search_form () {
    // Insert custom code here
    $output = ”; // function should return html code in a string
    return $output;
    }

    add_filter (‘get_product_search_form’, ‘webdav_get_product_search_form’, 10, 1);
    ?>[/php]