Install an iframe above the main page

(Translate)
Hello
I want to install an iframe above the main page. Or can I insert iframe into PWS_index2.php.
Thank you.

Serge

The demo site uses the two β€œscripts” to add code before and after the dashboard.
Before a simple β€œ< br >” is inserted to have some space before the top part.
A visitor counter is inserted and appears below the footer part.


Use . . /pwsWD/_my_settings/before.txt

<!--  $scrpt_vrsn_dt  = 'before.txt|01|2021-04-17';  # release 2012_lts 
#
put a link to what you want to include at the empty line below  
#                      -->

Insert your php or html in that file below the line with β€œ# -->”
Your frame will be shown before the first part with the menus.


Similar for items you want to diuplay below the footer f.i. visitor counters,
you should use . . ./pwsWD/_my_settings/hooks.txt

<!--  $scrpt_vrsn_dt  = 'hooks.txt|01|2020-11-06';  # release 2012_lts 
#
put a link to what you want to include at the empty line below  
#                      -->
<p style=" margin: 0 auto;">
 
 </p>

Insert your code in the empty line within β€œ<p” to β€œ

”
It will be centerend below the footer


Better not adept the scripts which start with PWS_ and certainly not PWS_index2.php
That is the core script for the PWS_Dashboard and is often replaced.
** :stop_sign: No user adaptable code in that script. :stop_sign: **

Succes,
Wim

1 Like

(Translate)
Thanks for information.
I have a discrepancy, how to solve this problem.
Thank you.
Serge

<!--  $scrpt_vrsn_dt  = 'before.txt|01|2021-04-17';  # release 2012_lts 
#
put a link to what you want to include at the empty line below  
#                      -->
</td><iframe src=" https://localsat.net/vpvuesnow/wx2.html " width="3000" height="300" frameBorder="0" scrolling="no">Browser not compatible. </iframe >

Better remove the β€œ< / td >” before the "< iframe " and adept the width to 960

<!--  $scrpt_vrsn_dt  = 'before.txt|01|2021-04-17';  # release 2012_lts 
#
put a link to what you want to include at the empty line below  
#                      -->
<iframe src=" https://localsat.net/vpvuesnow/wx2.html " width="960" height="300" frameborder="0" scrolling="no">Browser not compatible. </iframe>

And include a link to your website.
Better do that in your avatar, that would help for all messages

Wim

Thanks for help.

About the link in the avatar, I prefer finalization.
Here’s the working link: 807 M Home Weather Station (wd version)

Kind regards

Serge