QR Code Generator

By Codee - November 18, 2011

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:
URL: /rdAdmin/plugins/QRCodeGenerator/examples/plaintext.php
File: /home/content/46/7318446/html/rdAdmin/plugins/QRCodeGenerator/examples/plaintext.php
<?php echo qrCode(array( 'type' => 'text', 'text' => 'Hello world!' )); ?>


This site is using version 2.13, as well.

Re: [equinox69] QR Code Generator

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.
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
try changing that to:
$libraryPath = 'rdAdmin/lib/viewer_functions.php';

Hope that works for you.

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