Menu

#6 PHPQRCODE PHPMAKER Question

v1.0 (example)
open
nobody
None
5
2014-05-08
2014-05-08
No

I am trying to use PHPQRCODE to generate a QR code on my details page. If I give it a standard URL it works fine.

{"id":"PHPQRCode","name":"QR Code","qrcode":null,"qrcode_field":"http://mysite.com","size":3,"size_field":null,"margin":2,"margin_field":null}

But when I try to pass along a variable

{"id":"PHPQRCode","name":"QR Code","qrcode":null,"qrcode_field":"http://mysite.com/<?php echo urlencode(CurrentPage()->attachment->CurrentValue) ?>","size":3,"size_field":null,"margin":2,"margin_field":null}

it shows the exact code I have entered in the Custom View Tag with the variable correct but not the image

{"id":"PHPQRCode","name":"QR Code","qrcode":null,"qrcode_field":"http://mysite.com/uploads/125250841-568652.pdf","size":3,"size_field":null,"margin":2,"margin_field":null}

The qrcode_field is correct but something in my code is preventing it from rendering the image. Any assistance here would be greatly appreciated.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.