Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!

go up a few posts… its attached to one of my posts… ill put it in the zip files in a bit

go up a few posts.. its attached to one of my posts.

got it, thanks for that.

np… i think we are getting close… i’m gonna pass over the source code to saragota and will work with him to integrate as part of his standard install package…

zip updated will all the current changes… hopefully this is stable now :slight_smile: (Well code is never stable)… but close…

thanks for all the testers and great suggestions… very happy with the results!

Thanks for the help on this script. 8)

Thanks for the update, I have it up and running and it looks great.

I noticed one small error in the cell-ajax-dashboard.php code.
At the end of the script there is an extra “i” in this line of code:
case (($solarpercent >= 80) and ($solarpercenti < 90)):

I also noticed two odd things that I’m not sure how to fix.

  1. The 24-hr difference on my main site and my cell page do not match.
  2. The Moon Phases on my main site and my cell page do not match.

Thanks for the solar error… I will have to notify the source, its still in their master code also.

24-hr differ… hmm…
The code from ajax-dashboard is this

                  <?php if(isset($temp24hoursago)) { ?>
                  <?php langtrans('24-hr difference'); ?>
				  

                  <?php 
					if($commaDecimal) {
						$Tnow = preg_replace('|,|','.',strip_units($temperature));
						$TLast = preg_replace('|,|','.',strip_units($temp24hoursago)); 
					 } else {
						$Tnow = strip_units($temperature);
						$TLast = strip_units($temp24hoursago); 
					 }

					echo gen_difference($Tnow, $TLast, $uomTemp,
					langtransstr('Warmer'). ' %s'.$uomTemp.' '.langtransstr('than yesterday at this time').'.',
					langtransstr('Colder'). ' %s'.$uomTemp.' '.langtransstr('than yesterday at this time').'.'); ?>
                  <?php } // $temp24hoursago ?>

Which basically says diff is $temperature - $temp24hoursago

the code in cell-ajax-dashboard.php is:


            <?php
            $diff24h = round(strip_units($temperature) - strip_units($temp24hoursago),1);
            ?>
            <span class="ajax" id="ajax24hDiff"><?php echo $diff24h.$uomTemp; ?></span>
            <span id="ajax24hDiffarrow"><?php
               echo gen_difference
                  ( $temperature
                  , $temp24hoursago
                  , ''
                  , langtransstr('Warmer'). ' %s'.$uomTemp.' '.langtransstr('than yesterday at this time').'.'
                  , langtransstr('Colder'). ' %s'.$uomTemp.' '.langtransstr('than yesterday at this time').'.'
                  );?>
            </span>

which says diff is $temperature - $temp24hoursago

Why are they different? no idea…

As far as the moon, yeah im at a loss on that. There is something weird going on… But it only seemed to come up at the end of the month…

the funny thing is forevers main page is correct and the cell is wrong and my main page is wrong and the cell is correct… oiy… i just reading the testags…

With the new advisories can you use a county code such as WAC033 or does it have to be a zone WAZ508 ??

I would think County codes would work… try it??

well I had the County code and it showed the alert for the Zone instead for some reason but I just tried the atom alerts from my normal pages and that works so all is good but the links are full size when you go to them!!
http://www.n7xrd.tzo.com/wdisplay/web/cell.php

As it turns out the settings.php ($noaazone) drives what county or zone…

do you have useTopWarning true or false? the logic is setup to use (false) and atom-advisory2.php… maybe that needs to be a future edit…

I have it set for true now that I am useing the AtomAlerts…

Ahh, not sure how difficult it would be adapting the code to make a cell sized page…

that will take a bit to look into…

It never ends!! :smiley: Great script thank you for all your effort!!

well i got it to work sorta, but not sure whats going on, its going in a circle lol

you click on advisories or the link and it just tells u to click on it again… oiy…

second click doesn’t do anything!! :smiley:

yeah i know… i dont know how to get the full text of the message…

can you post your atom-top.warning.php?? i need to look at the source code

and your wxadvisory.php

you know the format of this looks basically the same… not sure what the atom-top-warning actually does…

gonna set it to false and take a look

sure


wxadvisory.txt (2.83 KB)

yeah set it to false… you get basically the same thing lol

thats using “false”

you dont get the “instructions” part…

but you DO get the instructions if you click the link from cell.php weird… but bottom line. no need to use “true”… Its the same info.

Unless you think otherwise… I’m not gonnma modify anything…

and i checked your wxadvisory… its the same as mine…