Resource icon

Unmaintained QR Code for Attachments 1.0

No permission to download
  • Author Author ragtek
  • Creation date Creation date
This was requested here and i've coded this, but the user never contacted me, so let's release it for free:)


This add-on will add a link under the attachments, which will open a overlay containing a qr image, which contains the link to the attachment.

QR codes are the little square barcode type things that are compatible by default with Android smartphones and available to use with some apps for other phones.

This add on adds a QR code to any attached file so if you wanted to download that attachment on your mobile you'd scan the QR code with your camera and it would download the file onto your mobile.

If you don't have TMS installed, you need to add the link yourself, because there's no template hook available:(

Open template attached_files

search for
Code:
<dl><dt>{xen:phrase views}:</dt> <dd>{xen:number $attachment.view_count}</dd></dl>

replace with:

Code:
<dl><dt>{xen:phrase views}:</dt> <dd>{xen:number $attachment.view_count}</dd></dl>
<h6 class="filename"><a href="{xen:link attachments/qr, $attachment}" class="OverlayTrigger">{xen:phrase ragtek_qr}</a></h6>

repository available at github: https://github.com/ragtek/AQR/wiki

feel free to use & fork it
  • qr.webp
    qr.webp
    22.3 KB · Views: 383
  • qr2.webp
    qr2.webp
    21.9 KB · Views: 421
Author
ragtek
Downloads
177
Views
677
First release
Last update

Ratings

5.00 star(s) 2 ratings

Latest reviews

Awesome plugin, thank you.
Good Work!
Top Bottom