This topic is locked
[SOLVED]

 QR Code

4/17/2017 8:18:12 AM
PHPRunner General questions
mtpocket author

Hi,
How can I change the size of the QR Code on the list, view & print pages? It's so big & occupies a large area of the row.
Thanks

M
mhollibush 4/24/2017



Hi,
How can I change the size of the QR Code on the list, view & print pages? It's so big & occupies a large area of the row.
Thanks


I am curious on how to get this to work in the first place... I can't find any information on the settings...

once I get it working, I would like to make it sizable as well

romaldus 4/24/2017

Instead of phprunner qrcode, i use custom qrcode such as "PHP QR Code".

http://www.asprunner.com/forums/topic/22390-send-html-email-with-qr-code/

C
cristi 4/26/2017

In your uploaded website go to .../include/runnerJS/controls and open ViewQRCode.js, search for ".qrcode({width:128,height:128,text:text})" and change the values to your preference (96 x 96 looks good enough...). you can go even lower but you might want to test if your phone can scan it without problems...

mtpocket author 4/27/2017



In your uploaded website go to .../include/runnerJS/controls and open ViewQRCode.js, search for ".qrcode({width:128,height:128,text:text})" and change the values to your preference (96 x 96 looks good enough...). you can go even lower but you might want to test if your phone can scan it without problems...


Thanks, found it, mine was sitting on 256x256.
Super cool

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82063&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

mtpocket author 4/27/2017



I am curious on how to get this to work in the first place... I can't find any information on the settings...

once I get it working, I would like to make it sizable as well


You should know how to make QR Code smaller on this post.
I've got a field in table called QR Code. After I've added a record the ID field is replicated to QR Code field. Similar to having 2 x ID fields obviously 2 different names. In Visual Editor for the QR Code field, view as, I select QR Code. Now proceed to Events, select the table in question, after record added & insert this code below.
global $conn,$strTableName;

$strUpdate = "UPDATE Local_Collections SET QR= 'http://localhost:8085/X/Local_Collections_view.php?editid1=".$keys["ID"]."';

where ID= '".$keys["ID"]."'";

db_exec($strUpdate,$conn);
Now the content of the QR Code will take you straight to your view page of the record ID if you should scan with your mobile device.
NB. The user might require permission to authenticate before viewing content of QR Code.
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82067&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
Hope this helps.