charlesr
06-12-2012, 10:00 PM
This is based on some javascript under MIT license (do what you want) found here: http://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 www.yoursite.com to your own url!!
<!-- 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 :)
Demo Here (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.
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 www.yoursite.com to your own url!!
<!-- 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 :)
Demo Here (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.