hello again
ive been making some mods to personalise the iphone version of the template "m.php" but need a little help with one thing.
i want to add some stats, daily, monthly etc but i am having trouble with getting the format right.
i've added a stats tab/slider thing but when i add the stat tags they dont display properly as in all the data just merges together and is unreadable.
what class or formatting do i need to use to be able to add the stat tags and make them display as in the wctags.php file??
also i sit possible to add the weather underground forecast into the mobile page? icing on the cake ;o)
thanks
These need to be added the desired stat tags into wctags.php then use a php echo in m.php.
So for example, if you want the max all-time windspeed, you'd add this to wctags.php (i.e. the template file that's in your WC templates directory):
So wctags.php before being processed would have a line like this:
$ATMAXWT="STAT$WINDSPEED:MAX:ALLTIME:TIME$";
which will look like this post-processing:
$ATMAXWT="34";
[\code]
What this does is set the php variable $ATMAXWT to equal 34. So to include that in m.php, you'd add
[code]
<?php Echo $ATMAXW;?>
This just tells php to print (echo) the variable.
Hope that helps.