There is a file which comes with the distribution named: 'CUsermenu.txt' (see code below)
I put the link to your file in it. In the file are also some other examples (direct links, load into the report area etc...)
Just try... If you load into the report area remember that HTML is directly interpreted and executed, so it is just as if you have a HTML file in your browser.
The file you want integrated in the base template is PHP and a lot of iframe. Of course you can link the file, but you cannot execute PHP directly from within. All PHP work is done on the server. Your file would need to be rewritten in javascript to be executed in the report area (with the LoadUtilsReport().
So, no PHP execution unless you fire up a php request and load the result in the report area.
It is the report area where userinfo is loaded (see the call down below).
Is that a disappointment?
Code: Select all
<!-- --------------------------------------------------------------------------------------- -->
<!-- This is an example file for the UserMenu of the CumulusUtils website generator/template -->
<!-- you can safely remove it, empty it or adjust to your own requirements ----------------- -->
<!-- Leave the HTML tags in tact, just fill in your links, Load requests and --------------- -->
<!-- --------------------------------------------------------------------------------------- -->
<div class="CUdropdown">
<button class="CUdropbtn">
<!-- Put your button text here, you can add an onclick=LoadUtilsReport('')" event to the button -->
<!-- or just put a link on the UserMenu text (with or without a dropdown). -->
UserMenu
<i class="fa fa-caret-down"></i>
</button>
<!-- The dropdown is optional, the div with CUdropdown-content can be safely removed -->
<div class="CUdropdown-content">
<a href="http://kocher.es/cumulus-saratoga/div_wxstatus.php" target="_blank">Kochers Wish</a>
<a href="https://www.windy.com/station/pws-f06f5696?53.259,6.932,8" target="_blank">Windy</a>
<a href="https://wow.knmi.nl/#1211bb08-6c93-e911-80e7-0003ff59889d" target="_blank">KNMI WOW</a>
<a href="https://www.wunderground.com/dashboard/pws/IWAGEN6" target="_blank">WU</a>
<span>--------</span>
<span onclick="LoadUtilsReport('Yadr.txt');">Any file</span>
<span>--------</span>
<a href="https://topotijdreis.nl" target="_blank">Topo NL</a>
<a href="https://waterinfo.rws.nl/#!/kaart/waterhoogte-t-o-v-nap/" target="_blank">Waterstanden</a>
<span>--------</span>
<a href="/wp/" target="_blank">The Blog</a>
</div>
</div>