Инструменты пользователя

Инструменты сайта


wiki:plugin:qrcode2

qrcode2 Plugin

Совместим с «Докувики»

  • 2024-02-06 "Kaos" неизвестно
  • 2023-04-04 "Jack Jackrum" неизвестно
  • 2022-07-31 "Igor" неизвестно
  • 2020-07-29 "Hogfather" да

plugin QR Code Plugin

Последнее обновление:
2025-06-09
Предоставляет
Syntax, Helper

Похож на qrcode

Теги: barcode, bitcoin, qr, qrcode

Installation

Search and install ​the plugin using the Extension ​Manager.

If above method is not working, download the plugin at my homepage directly at
https://github.com/obel1x/dokuwiki-plugin-qrcode2/releases
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 is included in Version of Build 2010100721. Well, works great.

Examples/Usage

To use it, insert something like

<QRCODE "bitcoin:32h6JxmVnsPEMuoaL6hzDGoGW44VG83rf4">

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

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

<QRCODE "https://dokuwiki.obel1x.de/content:qrcode">

Use the helper Class

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('qrcode2')) {
    $qrcode2Helper = plugin_load('helper','qrcode2');
    // first example
    $src = $qrcode2Helper->get_img("mailto:johndoe@example.com?subject=promotion", true);
    print "<img class='qrcode' src='".$src."' alt='*johndoe*' />";
    // second example
    $qrcode2Helper->get_img("http://example.com", false, 128);
}

Syntax

See above, no other things to know about.

Configuration, settings and dependencies

No configuration, no settings are required.

Check, that php has the Libarary «GD2» installed!

Development

No more Development 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

  • 2025-06-09
    • Would not work on Librarian Version of DW, so updated the Plugin and moved to github
    • Attention: Changed Syntax for Usage, replaced
{{QRCODE>xxx}}

by

<QRCODE "xxx">
  • 2019-12-08
    • Enhancement by Simon DELAGE / sdelage@gmail.com New helper-Class added.
  • 2018-03-18
    • 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
  • 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 environments.

ToDo/Wish List

None.

FAQ

None yet.

Только авторизованные участники могут оставлять комментарии.
wiki/plugin/qrcode2.txt · Последнее изменение: VladPolskiy

Если не указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki