Back to vBulletin 4.x Add-ons

Add QR Codes for current page anywhere
Mod Version: 1.00, by charlesr

vB Version: 4.1.8 Rating: (0 vote - 0 average) Installs: 6
Released: 13 Jun 2012 Last Update: Never Downloads: 21
Supported Template Edits Additional Files Re-usable Code Translations  

This is based on some javascript under MIT license (do what you want) found here: https://jeromeetienne.github.com/jquery-qrcode/

Upload the qrcode folder.

Add the following code to whichever templates you want it to appear on e.g. vbcms_content_article_page
Make sure you change http://www.yoursite.com to your own url!!

Code:
        <!-- QR Code: Page URL -->
        <b>Mobile Jump / Share:</b><br>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.yoursite.com/qrcode/jquery.qrcode.js"></script>
<script type="text/javascript" src="http://www.yoursite.com/qrcode/qrcode.js"></script>
<div id="qrcodeCanvas"></div>
<script>
	jQuery('#qrcodeCanvas').qrcode({
		width: 140,
		height: 140,
		text	: document.URL
	});	
</script>
        <!-- End of QR Code -->
Modify the width and height section of the code above to your needs. Note, QR Code size can go a little smaller but I recommend testing it with your phone. Bigger is fine

http://www.bordersdown.net/content.php/486-Sorcery-Review-Sony-PS3 (see base of review text)

Tested in 4.1.8, but should work in any version.

This is my first offer of a mod, so hope I uploaded everything correctly. I'm subbed to this thread anyway.

Download

File Type: %1$s qrcode.zip (7.6 KB, 25 downloads)


vblts.ru supports vBulletin®, 2022-2024