plugin:qrcode2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:qrcode2 [2018-03-10 12:12] – [qrcode2 Plugin] obel1x | plugin:qrcode2 [2021-12-11 17:38] (current) – obel1x | ||
---|---|---|---|
Line 5: | Line 5: | ||
author | author | ||
email : obel1x@web.de | email : obel1x@web.de | ||
- | type : syntax | + | type : syntax,helper |
- | lastupdate : 2018-03-18 | + | lastupdate : 2019-12-08 |
- | compatible : 2017-02-19e | + | compatible : 2017-02-19e, Greebo, Hogfather |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : QR bitcoin barcode qrcode | tags : QR bitcoin barcode qrcode | ||
- | downloadurl: | + | downloadurl: |
- | donationurl: | + | donationurl: |
---- | ---- | ||
===== Installation ===== | ===== Installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
- | Install the plugin using the [[plugin: | + | If above method is not working, download the plugin at my homepage directly at\\ |
- | [[http:// | + | [[https:// |
- | [[https:// | + | |
and refer to [[: | and refer to [[: | ||
- | Note: This Plugin makes use of the library "PHP QR Code encoder" | + | Note: This Plugin makes use of the library "PHP QR Code encoder" |
===== Examples/ | ===== Examples/ | ||
Line 40: | Line 40: | ||
</ | </ | ||
- | See the plugin in action [[http://obel1x.de/ | + | ==== Use the helper Class ==== |
- | or at [[https://obel1x.de/dokuwiki/doku.php? | + | If you like to use it from other plugins, you can use the helper- class, like this: |
+ | < | ||
+ | Here are 2 ways to use it (first one gives more control on the result) : | ||
+ | if (!plugin_isdisabled(' | ||
+ | $qrcode2Helper = plugin_load(' | ||
+ | | ||
+ | $src = $qrcode2Helper-> | ||
+ | print "< | ||
+ | // second example | ||
+ | $qrcode2Helper-> | ||
+ | } | ||
+ | </ | ||
===== Syntax ===== | ===== Syntax ===== | ||
See above, no other things to know about. | See above, no other things to know about. | ||
- | ===== Configuration and Settings | + | ===== Configuration, settings |
No configuration, | No configuration, | ||
+ | |||
+ | Check, that php has the Libarary " | ||
===== Development ===== | ===== Development ===== | ||
Line 57: | Line 69: | ||
=== Change Log === | === Change Log === | ||
+ | * **2019-12-08** | ||
+ | * Enhancement by Simon DELAGE / sdelage@gmail.com New helper-Class added. use it like: | ||
* **2018-03-18** | * **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 | + | * Bugfix by Georg Schmidt / gs-develop@gs-sys.de: 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. | In my case, it does not work, because the URL to the plugin was wrong. | ||
Line 65: | Line 79: | ||
My dokuwiki is using "/ | My dokuwiki is using "/ | ||
whereas your one is using "/ | whereas your one is using "/ | ||
- | |||
## The attachment contains a fix. | ## The attachment contains a fix. | ||
## It is not tested with userewrite == 1. | ## It is not tested with userewrite == 1. | ||
Line 71: | Line 84: | ||
My solution working (only for userewrite = 2) : | My solution working (only for userewrite = 2) : | ||
- | " | + | " |
- | is effectively | + | |
" | " | ||
In " | In " | ||
- | |||
$renderer-> | $renderer-> | ||
to | to | ||
Line 82: | Line 93: | ||
This is based on https:// | This is based on https:// | ||
- | |||
I hope, this fix is working on all systems. | I hope, this fix is working on all systems. | ||
Feel free to contact me for fixing that problem. | Feel free to contact me for fixing that problem. | ||
Line 94: | Line 104: | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | |||
None. | None. | ||
plugin/qrcode2.1520680350.txt.gz · Last modified: 2018-03-10 12:12 by obel1x