QR Code Generator

By robin - May 3, 2011

Hey all

I've posted a new plugin to the User Submitted add-ons site. It's called QR Code Generator.

The plugin makes it easy to generate a QR Code for transmitting text, urls, contacts, events, etc. from your CMS Builder powered website.

http://www.interactivetools.com/add-ons/?user_submitted=1

I hope you find it useful,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] QR Code Generator

By gkornbluth - May 3, 2011

Hi Robin,

I just excitedly installed your QR Code Generator (which I think is a really cool idea for a plugin. Thank you for creating it!).

I hope you can help me with a little implementation problem I'm having.

Using the url.php example code, I generated a QR code of the URL http://www.example.com

When I try to decode the generated QR code with QR droid, I get http://http%3A%2F%2Fwww.example.com

If I remove the http:// from the example.com URL, I get the error - qrCode: Invalid value for option 'url'!

I’ve attached the QR Code image.

Any ideas?

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Attachments:

qr-url.jpg 18K

Re: [gkornbluth] QR Code Generator

By sidcam - May 4, 2011

Thanks for sharing!

I too had to immediately drop everything and test it out and am getting the same results (AWSOME IDEA, HOWEVER). All I did was cut and pasted your examples onto a test page for a contact, website and email and all 3 had issues.

What it's doing is it's generating symbols as Unicode. The %3A is : and the %2F is /

I've tried two phones with different readers so far. I'll try to snag someone else's phone tomorrow to see if I get the same results with a different platform.

AGAIN THANKS FOR SHARING THIS!!!

Sid

Re: [robin] QR Code Generator

By Toledoh - May 4, 2011

I really excited about this! It's something that has been coming up in conversation again and again.

I can see me using QR codes to link to product pages etc, so every product, or article or thread of some sort has a QR code. I can then copy and past this image generated to emails, printed things etc.

Is there any other ways to use it? Does anyone have any apps that not only read the QR code, but actually track their usage somehow?

open for discussion!
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] QR Code Generator

By gkornbluth - May 4, 2011

Hi Tim,

Doing a Google search on:

tracking usage with qr codes

brings up lots of stuff.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [robin] QR Code Generator

By Dave - May 4, 2011

Hi everybody,

There's also a great article here that Kenny pointed me to:
http://www.socialmediaexaminer.com/how-qr-codes-can-grow-your-business/

Let us know how you use QR Codes and any additional code content types you'd like supported.

Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [robin] QR Code Generator

By gkornbluth - May 4, 2011

Thank you Robin,

Works much better now.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [robin] QR Code Generator

By gkornbluth - May 5, 2011

Hi all,

I’m trying to create a viewer that shows the QR codes for the detail pages for a number of records in a multi-record section called “reflections” but I’m stuck on how to append the specific record number to the url string.

Here’s the code I’m using. The problem area is in red:
<table>
<tr>
<?php foreach ($reflectionsRecords as $record): ?>
<?php foreach ($record['image'] as $upload): ?>
<?php $num = $record['num'] ?>
<td align="center" valign="bottom"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight']?>" />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<?php
echo qrCode(array(
'type' => 'url',
'size' => '150',
'url' => 'http://www.elleschorrphotography.com/gallery5detail.php?(append record number here)'
));
?>

<br />
<?php echo $record['title'] ?><br />This is the record number: <?php echo $num ?><br /><hr /><br />
</td>
<?php $maxCols=2; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
<?php endforeach ?>
<?php endforeach ?>
</tr>
</table>


Any help appreciated.

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] QR Code Generator

By robin - May 5, 2011

Hey Jerry,

This should do the trick:
<?php
echo qrCode(array(
'type' => 'url',
'size' => '150',
'url' => 'http://www.elleschorrphotography.com/gallery5detail.php?' . $num
));
?>

Alternatively, if you use double quotes you can put the variable directly in the string:
<?php
echo qrCode(array(
'type' => 'url',
'size' => '150',
'url' => "http://www.elleschorrphotography.com/gallery5detail.php?$num"
));
?>


Hope that helps,
Robin
Robin
Programmer
interactivetools.com