Author Topic: Temperature in Header  (Read 637 times)

0 Members and 1 Guest are viewing this topic.

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 382
    • The Vines Weather
Temperature in Header
« on: May 07, 2025, 04:04:32 PM »
Hello all
I can't remember where I can enable the large temperature display in the header, next to the gizmo.
I use AltDashoard. Can it be enable in this or just the original dashboard?
Thanks
Chris

Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 282
    • Weather Doc's Weather
Re: Temperature in Header
« Reply #1 on: May 08, 2025, 07:30:09 AM »
Do you mean like this on the right side (61° F):

 [ You are not allowed to view attachments ]

It's in this section of code in header.php that starts with <div class="headerTemp">:

Code: [Select]
    <div id="header">
      <h1 class="headerTitle">
        <a href="index.php" title="Browse to Homepage"><img src="images/banner-nc.png" border="none" height= "55"></a>
<a href="wxstatus.php" title="System Status"><img src="images/status.png" border="none" height= "58" align="right"></a><!-- <?php echo langtransstr($SITE[&#39;organ&#39;]); ?> -->
      </h1>
  <div class="headerTemp">
    <span class="doNotPrint">
    <span class="ajax" id="ajaxbigtemp"><?php print isset($tempnodp)?"$tempnodp$tuom":"&nbsp;"?>
  </span>
</span>
    </div>

Offline vinesweather

  • Forecaster
  • *****
  • Posts: 382
    • The Vines Weather
Re: Temperature in Header
« Reply #2 on: May 08, 2025, 08:29:04 AM »
Many thanks weatherdoc. I only added the 2nd part, my header code looks like this now for altdashboard6:

Code: [Select]
<div id="page"><!-- page wrapper -->
<img src="https://vinesweather.com/logo/vlogo.jpg" width="100%" border="0" alt="The Vines Weather"/>
<!-- header -->
  <div class="headerTemp">
    <span class="doNotPrint">
    <span class="ajax" id="ajaxbigtemp"><?php print isset($tempnodp)?"$tempnodp$tuom":"&nbsp;"?>
  </span>
</span>
    </div>
      <div class="subHeader">
        <?php echo $SITE[&#39;location&#39;]; ?>
<?php if($SITE[&#39;allowLanguageSelect&#39;]) { // insert code for language select ?>
   <br />
<!-- begin language select -->
<?php echo print_language_selects(); ?>
<!-- end language select -->
<?php // end code for language select ?>
      </div>
      <div class="subHeaderRight">
  <?php 
if (isset($showGizmo) and $showGizmo) {
  include_once("ajax-gizmo.php");
} else {
  print "&nbsp;<br/><br/>\n"// needed as placeholder if no gizmo
}
  ?>


 
  </div><!-- end subHeaderRight -->
</div>

<!-- end of header -->
   

For those who may ask the same question.

Thanks again!



Offline weatherdoc

  • Senior Contributor
  • ****
  • Posts: 282
    • Weather Doc's Weather
Re: Temperature in Header
« Reply #3 on: May 09, 2025, 08:07:08 AM »
Many thanks weatherdoc. I only added the 2nd part, my header code looks like this now for altdashboard6:

Glad my post and the code helped - I see your temperature is now displayed in the header on your website.

 

anything