Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
QR Code Generator

 

 


robin
User / Moderator


May 3, 2011, 6:15 PM

Post #1 of 23 (8104 views)
Shortcut
QR Code Generator Can't Post

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


gkornbluth
Veteran

May 3, 2011, 8:23 PM

Post #2 of 23 (8101 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

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!
http://www.thecmsbcookbook.com
Attachments: qr url.jpg (17.3 KB)


sidcam
User

May 3, 2011, 10:24 PM

Post #3 of 23 (8096 views)
Shortcut
Re: [gkornbluth] QR Code Generator [In reply to] Can't Post

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


Toledoh
Enthusiast

May 4, 2011, 1:19 AM

Post #4 of 23 (8087 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

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 Forrest
Toledoh Enterprises
www.toledoh.com.au


gkornbluth
Veteran

May 4, 2011, 5:30 AM

Post #5 of 23 (8076 views)
Shortcut
Re: [Toledoh] QR Code Generator [In reply to] Can't Post

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!
http://www.thecmsbcookbook.com


Dave
Staff / Moderator


May 4, 2011, 7:32 AM

Post #6 of 23 (8073 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

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
 


robin
User / Moderator


May 4, 2011, 5:46 PM

Post #7 of 23 (8045 views)
Shortcut
Re: [gkornbluth] QR Code Generator [In reply to] Can't Post

Hey,

I've made a small change to the plugin to correct the problem Jerry discovered with " http://".

The new version is available at the add-ons site.

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

Thanks,
Robin


(This post was edited by robin on May 4, 2011, 5:47 PM)


gkornbluth
Veteran

May 4, 2011, 7:48 PM

Post #8 of 23 (8040 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

Thank you Robin,

Works much better now.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


gkornbluth
Veteran

May 5, 2011, 9:24 AM

Post #9 of 23 (8017 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

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:

Code
<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!
http://www.thecmsbcookbook.com


robin
User / Moderator


May 5, 2011, 9:45 AM

Post #10 of 23 (8015 views)
Shortcut
Re: [gkornbluth] QR Code Generator [In reply to] Can't Post

Hey Jerry,

This should do the trick:

Code
<?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:

Code
<?php  
echo qrCode(array(
'type' => 'url',
'size' => '150',
'url' => "http://www.elleschorrphotography.com/gallery5detail.php?$num"
));
?>


Hope that helps,
Robin


gkornbluth
Veteran

May 5, 2011, 10:32 AM

Post #11 of 23 (8009 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

Hi Robin,

It certainly does help. The page works perfectly now.

I had the single end quote after the . $num and didn't know about the double quote.

Just another tip to include in the Cookbook...

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


sidcam
User

May 5, 2011, 11:50 AM

Post #12 of 23 (8006 views)
Shortcut
Re: [Dave] QR Code Generator [In reply to] Can't Post

Dave-

You asked how we're using QR's. I'm in real estate and we're incorporating QR codes on all of our printed materials, business cards and eventually signs.

Right now I'm designing a new MLS search for my site. I intend to use the PDF plugin to allow people to generate printer friendly flyers and maps for any listing they're looking at. With this QR plugin I now intend to incorporate a series of QR's on those PDF's and webpages so prospects can quickly use their phone to interact with Google Maps to map/navigate to the listing and when they are in their car with their printouts they can quickly pull up the listing on their phone to see the photos again, connect with us to schedule a showing (phone, sms, etc) as well as perform Facebook Likes and other social media tasks that ultimately link back to my website.

Thanks, Sid


kcmedia
User

May 8, 2011, 2:46 PM

Post #13 of 23 (7894 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

Hi Robin

i have been talking to a client of mine and they run 2 motorbike stores and we would like to use QR codes to put on each bike in the store is this posible at all?
so people can use the code to get more information on the bike maybe a video of the bike and reviews and pictures.

so someone comes into the store and uses the code that is printed on the price tag. How does all of this sound.
Thanks

Craig
KC Media Solutions
www.kcmedia.biz


Dave
Staff / Moderator


May 8, 2011, 5:21 PM

Post #14 of 23 (7889 views)
Shortcut
Re: [kcmedia] QR Code Generator [In reply to] Can't Post

Hi Craig,

Yes you can absolutely do that. Just have the QR Code link to the product page for the bike (or the mobile version of the product page).

That's a great idea.

Dave Edis - Senior Developer
interactivetools.com
 


kcmedia
User

May 8, 2011, 5:24 PM

Post #15 of 23 (7887 views)
Shortcut
Re: [Dave] QR Code Generator [In reply to] Can't Post

ok great i think we are going to do them.

One question though how can we print them out so we can stick them to the bikes?
Thanks

Craig
KC Media Solutions
www.kcmedia.biz


Dave
Staff / Moderator


May 8, 2011, 5:33 PM

Post #16 of 23 (7885 views)
Shortcut
Re: [kcmedia] QR Code Generator [In reply to] Can't Post

Just make a separate viewer page that positions them for printing on labels. Or even use CreatePDF if you need to line them up a certain way.

So you might have bikes.php and bikes_labels.php

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


kcmedia
User

May 8, 2011, 6:04 PM

Post #17 of 23 (7879 views)
Shortcut
Re: [Dave] QR Code Generator [In reply to] Can't Post

Hi Dave

thanks for that i will keep you all updated on the progress of this project.

keep up the good work guys.
Thanks

Craig
KC Media Solutions
www.kcmedia.biz


gkornbluth
Veteran

May 9, 2011, 8:26 AM

Post #18 of 23 (7825 views)
Shortcut
Re: [kcmedia] QR Code Generator [In reply to] Can't Post

Hi Craig,

When you get the formatting worked out for the labels, could you post the details?

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


equinox69
User

Nov 17, 2011, 12:11 PM

Post #19 of 23 (6392 views)
Shortcut
Re: [robin] QR Code Generator [In reply to] Can't Post

Hi Robin, I just installed your QR Code Generator as I'm very enthused about it! I'm having a problem, though. After the install and activation, I click on the "Example Code" link. In the third box down under "Example Output" I get the error
"Couldn't load viewer library, check filepath in sourcecode."

Haven't had this issue with other plugins on this site. What shall I do?


gkornbluth
Veteran

Nov 17, 2011, 8:22 PM

Post #20 of 23 (6328 views)
Shortcut
Re: [equinox69] QR Code Generator [In reply to] Can't Post

Hi equinox69,

I took a look at the load viewer library code in the examples and they are all identical and all of my examples work in CMSB 2.13.

Are you having a problem with just one example or all of them?

If your QRCodeGenerator plugin is in your plugins folder, and your examples are in an examples folder in the plugin folder which is in your cmsAdmin folder the examples should work OK.

If you're having an issue with just one example, check the load viewer library code in that one against one of the working examples. (You probably would have done that already though)

If you're having a problem with all of them, try adding:

Code
, '../../../../../../'

after the last group in the array, before the );

Just a thought.

Good luck,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


equinox69
User

Nov 17, 2011, 9:29 PM

Post #21 of 23 (6321 views)
Shortcut
Re: [gkornbluth] QR Code Generator [In reply to] Can't Post

Hi Jerry,
I followed the readme.txt file. I uploaded the qrcode generator plugin to the plugins folder.

http://www.sitename.com/rdAdmin/plugins/QRCodeGenerator/

Then I logged in to the CMS admin panel (called /rdAdmin),
at http://www.sitename.com/rdAdmin/admin.php

clicked on "plugins" in the left panel under the Admin section and it goes to:
http://www.sitename.com/rdAdmin/admin.php?menu=admin&action=plugins

Then I click "Activate" to the QR Code Generator plugin and the plugin moves from the inactive plugins group to the active plugins group. I now can click either "deactivate" or "example code" and I chose "example code"

On the next screen I get a list of choices like: * Plain Text, * Web Address, * Email Address, *etc.. No matter which one I choose the bottom box under Example Output gives the message:
"Couldn't load viewer library, check filepath in sourcecode."

The middle box, titled "Source Code" when I've clicked the Plain Text example gives the following:

Code
URL: /rdAdmin/plugins/QRCodeGenerator/examples/plaintext.php 
File: /home/content/46/7318446/html/rdAdmin/plugins/QRCodeGenerator/examples/plaintext.php
&lt;?php echo qrCode(array( 'type' =&gt; 'text', 'text' =&gt; 'Hello world!' )); ?&gt;


This site is using version 2.13, as well.


gkornbluth
Veteran

Nov 18, 2011, 4:50 AM

Post #22 of 23 (6264 views)
Shortcut
Re: [equinox69] QR Code Generator [In reply to] Can't Post

Hi equinox69,

Your previous post didn't say that you uploaded the examples directory to your plugins folder as well.

I assume you did?

There's a line in the examples that looks for a folder called cmsAdmin as the path to the library.

Code
 $libraryPath = 'cmsAdmin/lib/viewer_functions.php';

try changing that to:

Code
 $libraryPath = 'rdAdmin/lib/viewer_functions.php';


Hope that works for you.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


equinox69
User

Nov 18, 2011, 2:41 PM

Post #23 of 23 (6205 views)
Shortcut
Re: [gkornbluth] QR Code Generator [In reply to] Can't Post

Mr. Kornbluth, worked like a charm! Thank you!

I didn't think to specify that because the readme.txt instructions said to upload the plugin (and the examples folder is inside the plugin automatically), and then activate it. The instructions do not mention changing anything such as that in the code. Other plugins, when that is needed, generally have an instruction (like the Watermark plugin), whereas most work "as is" when uploaded and activated. I'll try your suggestion. Thanks!


(This post was edited by equinox69 on Nov 18, 2011, 3:17 PM)