Page 1 of 1

[BBCode] QR code with Highslide zoom

Posted: 02 Dec 2011, 10:59
by doktornotor
Quick Response Code (QR Code) - in case you do not know what I am talking about. :P

This should work as is if you have Highslide Attachment or ReIMG Image Resizer (from MODDB) installed, otherwise, you need to download and copy Highslide somewhere (e.g. scripts/ directory) and load it from overall_header.html, e.g. like this.

Code: Select all

<!-- IF S_VIEWTOPIC -->
<script type="text/javascript" src="{ROOT_PATH}scripts/highslide/highslide-full.packed.js"></script>
<link rel="stylesheet" type="text/css" href="{ROOT_PATH}scripts/highslide/highslide.css" />
<!-- ENDIF -->
Anyway, back to the BBCode:

BBCode usage:

Code: Select all

[qrcode]{URL}[/qrcode]
HTML replacement:

Code: Select all

<div class="highslide">
<a href="http://chart.apis.google.com/chart?chs=250x250&cht=qr&chl={URL}" class="highslide" title="Click to Enlarge QR Code" onclick="return hs.expand(this, { wrapperClassName: 'dark', slideshowGroup: 'highslide' })"><img src="http://chart.apis.google.com/chart?chs=250x250&cht=qr&chl={URL}" alt="QRCodeThumbnail" title="" style="max-width:30px; max-height:30px;" /></a></div>
Help line:

Code: Select all

Post a QR Code Link: [qrcode]http://url[/qrcode]
Docs:
Google Chart Tools: Infographics if you want to customize the look in other ways (size etc.)
Highslide JS API Reference

Demo link

[BBCode] QR code with Highslide zoom

Posted: 02 Dec 2011, 15:06
by Terr0r
Have you a screenshot before you editing and afther you editing

[BBCode] QR code with Highslide zoom

Posted: 02 Dec 2011, 15:34
by doktornotor
This is a custom bbcode. Hence, there is nothing available before adding it. Otherwise, how about clicking the demo link?

[BBCode] QR code with Highslide zoom

Posted: 09 May 2012, 05:54
by neuropass
great share. demo is not working though...

[BBCode] QR code with Highslide zoom

Posted: 29 Sep 2014, 09:27
by qiaof
Thank you, working for me with 3.0.12