QR Code Generator

Introduction

Displays a QR code dynamically on a page or post with URL to that page/post.

There are many QR generators that are avialable for use. Most of these, however, are accessbile via the admin dashboard so you can create site QR codes as media files for download. This plugin also does that but goes one step further - it allows you to use shortcode to dynamically generate a QR code for the page or post being displayed.

Major features include:

  • This dynamically generates a QR code in the front-end for the page or post that is being displayed via shortcode.
  • This plugin uses the standard PHP generator library so it can also generate a QR code to a file.
  • It can also generate a QR code for any data text via shortcode.
  • Alter size, error correction and pixel scale via shortcode arguments.
  • It is a simple QR code generator so does not support different color styles and logos - it just does what is needs to do.

    Installation

    Follow the usual Wordpress instructions to install the plugin files. Either copy a ZIP archive of the plugin folder contents into the Word Press plugins folder or install it directly from the Wordpress repositiory.

    Shortcode

    The following shortcode command can be inserted into any page, post or widget:

  • [show-qr-code] displays a tree at the shortcode position. Optional arguments can be included to influence the behaviour of the QR code using [show-qr-code arg1="value1" arg2="value2" ...]

    Usage

    The following arguments can be used in the shortcode or as POST/GET arguments:

  • [qrdata=""] The data to encode. The defult is to use the current page or post URL.
  • [file=null] The filename and path to create a media file.
  • [ecc="H"] The error coding:
  • [pixel_size="2"]
  • [frame_size="5"]
  • [uri="true"] This determines if the Referer_URI is used as the default page. If false, the Current URL is build according to Wordpress.

    Word Press Developers

    The QR code can be called using the class WlfC_QRCode. The following are available methods and arguments:

  • All of the arguments in the Usage section are available e.g. [show-qr-code qrdata="xxx"] is called as $class->qrdata="";
  • Method Build_QRCode() returns the QR code as an HTML IMG tag


    The Small Print....

    This plugin software is released under the GPLv2 (or later) GNU General Public License from the Free Software Foundation. Please check restrictions on commercial use or purchase a commercial license.

    Donate if you are able to so that the plugins can be maintained and enhanced - especially if you use it and find it useful! Feature enhancements can be paid for or requested (BTW they are considered high priority when coming from a donator!).If everyone donated just $1 for every download they use, it keeps the development going!

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    This plugin comes without support unless the licence or enhanced support is explicitly stated as provided.

    The plugin is installed at the user's own risk. No liability is accepted for any damage to data or any consequential damage whatsoever when using this plugin. In any event this is strictly limited to the annual license fee paid.

    Do not expect the code to be top quality. Much of the designs evolve from MVP and often there is redundant code in the files. Most of the code is commented but isnt always consistent. Some of the functions are not as optimised as they could be or the code as well written or structured as it could be. Some chunks of code are commented out for future use. Tinker with it all at your own peril.

    However the code is written with passion - and it works!

    Please provide honest feedback and ratings so that the plugin user commmunity can grow.

    Any support issues, feature requests or queries can be emailed to wolfecandy@ruralcheshire.co.uk. A response is not guaranteed but our head developer, Jrack Wolfe is keen to hear from you.

    © Copyright Wolfe Candy Creations 2022