The QR Code symbol area requires a margin or "quiet zone" around it to be used. The margin is a clear area around a symbol where nothing is printed. QR Code requires at least a four QR Code pixel wide margin at all sides of a symbol.
If you manually set the image size of your QR Code it may happen (based on content capacity) that the encoded image is "pixel blurry" (the size of one QR Code pixel varies) and thus is hard to read for your reading device. This generally happens if your QR Code image size is very small (smaller than 100 pixels). In order to print out a "Best Read Mode" image, use the size field to specify a "Zoom" level (0-9, with 0=no zoom, 1=100%, 2=200%, etc. ) for an optimal QR Code image size of your content.
In the posts editor type
[qrcodetag/]
and a QR code with a link to the current URL will be rendered[qrcodetag]content[/qrcodetag]
to render a QR code with content
You can overwrite any default value passing it as a parameter in the shortcode, e.g.
[qrcodetag size="150" link="true"]content[/qrcodetag]
will render a QR code with a dimension of 150px and sets a link to the QR code image.
In order to use the tooltip function, type this code
[qrcodetag tooltip="QR Code content"]your link or text[/qrcodetag]
whereas QR Code content is the QR Code image content and your link or text is the visible text - mind the difference to the previous usage!
Warning! WordPress Bugs!
Do not mix self closing QR Code Tags (first example) with QR Code Tags with content (second example) within one page! There is a bug in the WordPress (v2.8) parser which returns unexpected results then!
Do not use empty shortcodes like [qrcodetag][/qrcodetag]
- this is a WordPress bug, too. Instead use [qrcodetag]_[/qrcodetag]
(a single underscore as content!)
To use the QR Code Tag inside your template or PHP enabled posts, use the global $qrcodetag
object:
global $qrcodetag;
echo $qrcodetag->getQrCodeUrl($content, $size, $encoding, $ecc, $margin, $version);
In order to display a 100 x 100px QR Code in the page template you would include this PHP code:
<img src="<?php
global $qrcodetag;
echo $qrcodetag->getQrCodeUrl('mycontent',100,'UTF-8','L',4,0);
?>">
This Wordpress QR Code Tag Plugin is partly based on Super Cool QRCode Widget by Matias S.
WordPress plugin pluginName.' v'.$this->pluginVersion ?> by Dennis D. Spreen