DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:qrcode2

This is an old revision of the document!


qrcode2 Plugin

Compatible with DokuWiki

2017-02-19e

plugin QR Code Plugin

Last updated on
2018-03-18
Provides
Syntax

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to barcode, barcodes, qrcode

Tagged with barcode, bitcoin, qr, qrcode

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. If above method is not working, download the plugin at my homepage directly at
http://obel1x.de/doku.php?id=content:qrcode or at
https://obel1x.de/dokuwiki/doku.php?id=content:qrcode (accepting the non-trusted certificate of me)
and refer to Plugins on how to install plugins manually.

Note: This Plugin makes use of the library “PHP QR Code encoder” at https://sourceforge.net/projects/phpqrcode, which delivers most of the functionality and ist included in Version of Build 2010100721. Well, works great.

Examples/Usage

To use it, insert something like

{{QRCODE>bitcoin:1HaWAdMPdikWopC8enWn4yig3iFVt9kJ3S?amount=0.00078100}}

(thank you for your donations…) in your source after activating that plugin.

Maybe you like some other string, like web-pages, so do

{{QRCODE>http://www.heise.de}}

See the plugin in action http://obel1x.de/doku.php?id=content:qrcode
or at https://obel1x.de/dokuwiki/doku.php?id=content:qrcode (secure, you know about accepting my certificate)

Syntax

See above, no other things to know about.

Configuration and Settings

No configuration, no settings are required.

Development

This was a one-time shot for me to do what i needed. No more developement is planned. If you like the base, feel free to make it better or maybe ask me to add/change something. I cannot guarantee for anything that this plugin may do or how it will be supported.

Change Log

  • 2018-03-18
    • Bugfix by Georg S.: when Dokuwiki was installed in Top-Directory of Server, URL will be wrong. This was corrected by extending syntax.php
In my case, it does not work, because the URL to the plugin was wrong.
"https://<top-level-domain>/dokuwiki/doku.php/lib/plugins/qrcode2/png.php"

My dokuwiki is using "/doku.php/wiki:tutorial?do=admin&page=config"
whereas your one is using "/doku.php?id=content:qrcode".

## The attachment contains a fix.
## It is not tested with userewrite == 1.

My solution working (only for userewrite = 2) :

"https://<top-level-domain>/dokuwiki/doku.php/../lib/plugins/qrcode2/png.php"
is effectively
"https://<top-level-domain>/dokuwiki/lib/plugins/qrcode2/png.php"

In "syntax.php" change

    $renderer->doc .= '<img src="lib/plugins/qrcode2/png.php?id='.$data.'" />';
to
    $renderer->doc .= '<img src="../lib/plugins/qrcode2/png.php?id='.$data.'" />';

This is based on https://www.dokuwiki.org/config:userewrite

I hope, this fix is working on all systems.
Feel free to contact me for fixing that problem.
  • 2017-12-10
    • Initial release

Known Bugs and Issues

  • Maybe anyone could look at the way, the library is called. Doesn't look smooth for me, i don't know how this behaves in larger dokuwiki environements.

ToDo/Wish List

None.

FAQ

None yet.

plugin/qrcode2.1520680350.txt.gz · Last modified: 2018-03-10 12:12 by obel1x

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki