Adding extra pop-up links

I would like to add 2 personalized links for some blocks of PWS Dasboard, eg. for ‘WeatherUnderground forecast’ block I would add link for Meteorograms, which are graphical forecasts for particular areas, to open the graphs under http://www.meteo.pl/um/metco/mgram_pict.php?ntype=0u&fdate=2020062212&row=402&col=203&lang=pl
and the second link Blitzortung.org - Live Lightning Map of lightning map by blitzortung.org in the Currentsky block.

Are there instructions on how to do it?

You could try the main Support page under Documentation > Description of blocks.

In general it is always worth trying the Forum Search facility before posting, in case the subject has been covered before. A quick advanced search (click on the magnifying glass) for “extra pop-ups” will bring up a few answers, like this or this.

You might be able to figure out how to do it from these examples. Then, once you have tried, you can ask for help :smiley:

Thank you for the links. I think I will make it :slight_smile:

And let us know how you get on :smiley:

I managed to add another pop-up link in the WU block. I wanted to modify image_popup.php and exchange existing link with http://www.meteo.pl/um/metco/mgram_pict.php?ntype=0u&fdate=2020062312&row=402&col=203&lang=pl
I changed a name for ‘meteorogram_wu_popup’ and uploaded it. Unfortunately something went wrong. Something more is to modify.

http://mark014.beep.pl/template/plugins/pwsWD/_test.php?test=meteorogram_wu_popup.php
Make the browser as low as possible, you can see an error message , see attachment

===
There are a few lines with a warning in the script

#                                               IMPORTANT                                        
#   $extra  =   '';  // remove the comment mark if the link already uses a timestamp
#                                               IMPORTANT                                        

If you remove that # on the line, the image will display. This is not really an image, it is a PHP script which becomes confused when adding extra parameters.

Next problem. It also needs the date to be changed every day. Otherwise the image will always be the same, image of June 23.
So I changed the link a bit so that it updates the link everyday.
Succes, Wim
Wim


meteorogram_wu_popup.php.zip (2.18 KB)

Thanks for your help. Yes, in fact this link had a fixed date. Now the forecast image shows up. Is it possible to display it in an original size, which is 630x660 px?

It also needs the date to be changed every day.
The UM model is generated every 6 hours and meteograms either. Can the link be modified in a way the graphs to be updated around 5, 11, 17 and 23 UTC? Or maybe using this link: [www.meteo.pl/um/php/meteorogram_id_um.php?ntype=0u&id=2505](http://www.meteo.pl/um/php/meteorogram_id_um.php?ntype=0u&id=2505) ?

Not easy to do. The dashboard is responsive and the popup size is fixed for all pop-ups and is adjusted for the screen size. The graphs is still shown on an smartphone.
One could display it so that it is not stretched, change the text background-size: 100% 100%; to background-size: contain;

The UM model is generated every 6 hours and meteograms either. Can the link be modified in a way the graphs to be updated around 5, 11, 17 and 23 UTC?
Yes is can be changed, that is what programming is all about.

But this is a PWS_Dashboard template supplied as is. The whole idea is that you get a starting point and adapt it yourself to your liking.
You can write or learn to write any code,

Succes, Wim


Thanks, now the size is as I wished. I understand this and appreciate your help so far. I need to find time to figure out some details that are already my own modification.