QR Code

20 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 28, 2011   (RSS)

By gkornbluth - June 20, 2011

Hi Robin,

Any way to name the generated QR Code files based on a "title" field in the requesting record instead of them all being called chart.png?

One of my clients has already gotten confused and put the wrong codes in the wrong places.

(Hope I didn't just overlook this in the documentation)

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

By robin - June 21, 2011

Hey Jerry,

The google api that the chart generator uses always names the images as "chart.png". Without resorting to something fancy like using jquery to rename the images after the fact I think you're stuck with chart.png.

Robin
Robin
Programmer
interactivetools.com

By gkornbluth - June 21, 2011

Hi Robin,

What do you think it would take to solve this issue using Jquery?

I think this naming thing could be a real stumbling block as QR codes become more widely used.

Thanks,

Jerry
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

By robin - June 22, 2011

Hey Jerry,

This method might help:
http://api.jquery.com/attr/

I wonder - why does your client care about the file name? Are they generating them just to save the image to use elsewhere?

Thanks,
Robin
Robin
Programmer
interactivetools.com

Re: [gkornbluth] QR Code

By Toledoh - June 24, 2011

Hey Guys.

QR Codes are great, as they can hold a lot of data. However, the more data they hold, the more complex they become. The less data, the faster the response is, especially with smart-phone apps.

There's a plethora of URL shortening such as http://goo.gl/

I've attached a sample image. It's of 2 QR codes pointing to the same address - one of the full URL, one of a shortened URL. The difference is quite dramatic.

So... is there the ability to automatically shorten URL's and use that shortened URL to generate the QR Code?
Cheers,

Tim (toledoh.com.au)
Attachments:

sample.png 3K

Re: [Toledoh] QR Code

By gkornbluth - June 24, 2011 - edited: June 24, 2011

Hi Tim,

Interesting that you should bring that up.

I'm exploring the same question right now.

Here are s few things that I found so far (I haven"t got a clue how to use them, but they may give someone an idea or two)

http://www.mdj.us/snews-cms/hacks-mods/automatically-add-autogenerated-short-urls-to-your-snews-cms/ a now defunct sourceforge project http://lilurl.sourceforge.net/,

and then do a Google search for open source short url generator.

I'll post what else I find and hope you'll do the same.

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

By Toledoh - June 27, 2011 - edited: June 28, 2011

This may be of interest:

http://www.fivetechnology.com/blog/2011/06/27/creating-qr-codes-and-tracking-progress-with-google-analytics/

But, it highlights even more, the need for URL shortening...

I've added this to a page:
<img src="<?php echo qrCode(array(
'type' => 'url',
'url' => "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"],
'mode' => 'url',
'size' => '200',
)); ?>&utm_source=source&utm_medium=medium&utm_term=term&utm_content=content&utm_campaign=name" class="padBottom" alt="QR Code" />


However, I get
<img class="padBottom" alt="QR Code" src="http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=http%3A%2F%2Fworkshoptuesdays.com.au%2Frenovationfix%2Fcoupon2.php%3Fcode%3D21hgh214y314bh13&chld=%7C0&utm_source=source&utm_medium=medium&utm_term=term&utm_content=content&utm_campaign=name"> which doesn't seem to work... when I scan the code, it seems to skip the tags - or is this meant to happen?
Cheers,

Tim (toledoh.com.au)

Re: [gkornbluth] QR Code

By Toledoh - June 28, 2011

Re: [Toledoh] QR Code

By Toledoh - June 28, 2011

Hi All,

Would someone with more knowledge than myself be able to incorproate this into the QRCode plugin? Or should it be a plugin by itself?

http://www.phpriot.com/articles/google-url-shorening-api

Each install of the plugin would then require an API Key... but they are free.
Cheers,

Tim (toledoh.com.au)