qr code generation in printerfriendly view fails

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

4/29/2024 7:20:50 AM
Gravatar
Total Posts 28
regards, Svein-Martin Holt Norway

qr code generation in printerfriendly view fails

The google api for creating qr codes in the printerfriendly pageview is not working anymore and I try to figure out where to setup a new qr code generator.

Do some of you know in which file this can be changed?

In the current setup this call is executed: ttps://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=webadresse

A changed call could be: https://api.qrserver.com/v1/create-qr-code/?size=100x100&format=jpg&data=webadresse

 

regards,

Svein-Martin Holt

5/17/2024 2:58:28 PM
Gravatar
Total Posts 2253

Re: qr code generation in printerfriendly view fails

Hi,

We have updated this function to be configurable and it will now default to the api.qrserver.com service. 

To use a different service, a user.config setting like the following will need to be set.

<add key="QRCodeGeneratorUrl" value="https://api.qrserver.com/v1/create-qr-code/?size={0}x{1}&format={2}&data={3}" />

We will likely replace this soon with a built-in generator so we aren't reliant on 3rd party sites.

The code for this was in Web/Controls/Google/QRCodeImage.cs. We are moving it to Web/Controls/QRCodeImage.cs.

Thank you,
Joe

5/22/2024 5:32:56 PM
Gravatar
Total Posts 28
regards, Svein-Martin Holt Norway

Re: qr code generation in printerfriendly view fails

Hi

 

Thank you for the response.

I tried to install the key, but its not working.

I added also the cs file.

May bee I need to upgrade the site? I have not done upgrade for some time.

 

Regards, SveinM