
Shortcode handler for the scan widget on ScanCircle partner websites.
Only for registered ScanCircle partners. See the ScanCircle partner program.
Login to your ScanCircle partner page and select the Scan Widget tab to generate the required ScanCircle shortcode and copy/paste it into your post.
Manual installation:
scancircle to the /wp-content/plugins/ directoryscancircle plugin through the ‘Plugins’ menu in WordPress[scancircle ...] or [scancircle_results ...] shortcode in your postsSee this post in the ScanCircle partner forum
Using this shortcode, you can show the results in an IFRAME on your own website.
1. Set the “Own results page” to e.g. https://domain.com/results?language=%s&advice=%s&reference=%s
2. On this page include the shortcode [scancircle_results partner=”PARTNER-CODE” param=”URL-PARAMETER” IFRAME-ATTRIBUTES], where
– PARTNER-CODE is your partner code (this prevents cross site scripting with non-ScanCircle URLs: only http(s)://PARNER-CODE.scancircle.com/… allowed)
– URL-PARAMETER is the URL parameter containing the results URL (in this example “advice”)
– IFRAME-ATTRIBUTES are optional IFRAME attributes (e.g. width=”X”, height=”Y”)
Yes, but you need the do_shortcode function as in: <?php echo do_shortcode(‘[scancircle…]’); ?>>
[phpvar] shortcode has been deprecated as there are standard ways and plugins to do this (functionality will remain for the time being)https option to load scancircle.js using HTTPS by default unless https=0 is specified. Link to partner environment always uses HTTP (only used if JavaScript is not loaded correctly)https option added to select which: 2=both, 1=JavaScript only, 0=none (default)category option added to indicate the purpose of the scan page and/or reference code, entered data will be prepended to the reference code (separated by a colon)inputs option added to support multiple input fields (names separated by semicolon), entered data will be joined (separated by semicolons)validation option added to check input field for required data, e-mail address, phone number, any regular expression or using a custom functionrequire option now deprecated (converted to prompt option and validation="required" for backward compatibility)jquery option added to run script when document.ready (mainly for Joomla web sites which requires tag in header)[phpvar] shortcode to retrieve the PHP superglobals $_GET, $_POST and $_SERVER