![]() |
QR codes into Downloads II mod
I've the intention to add automatically a QR for each file into the Downloads II mod I've installed into my website, to allow users downloading file from their smartphones.
I've yet found the code I need to reach this point, but it won't work properly for my case. Check it: The html... HTML Code:
<img src="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=convert-this&choe=UTF-8&chld=L|4"> This is the return image: https://vborg.vbsupport.ru/external/2011/07/66.jpg So I put the page url in place of "convert-this" to have the QR code for each download page. I've modified the code as you can see: HTML Code:
<img src="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=http://www.moddingstudio.com/downloads.php?do=file&id={vb:raw file.id}&choe=UTF-8&chld=L|4"></img> What can I do to correct this issue? (I think this can be useful for many people, also for vb pages or cms articles) Thank you in advance! (And sorry for my bad english, but I'm italian) |
Quote:
HTML Code:
<img src="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=http://www.moddingstudio.com/downloads.php?do=file&id='.$file.id.'&choe=UTF-8&chld=L|4"></img> |
SOLVED: Google charts recognizes the "&" digit as parameters separator.
It's enough to change the "&" digit in the url into "%26"... resulting code: HTML Code:
<img src="http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl=http://www.moddingstudio.com/downloads.php?do=file%26id={vb:raw file.id}&choe=UTF-8&chld=L|4"> You can check out the final result clicking here: http://www.moddingstudio.com/downloa...do=file&id=181 |
Very cool :up:.
|
All times are GMT. The time now is 01:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|