4
to fix this you need to:
open /modules/xp-weather/blocks/block-XPWeather.php
in an editor.
Scroll down until you see:
// users can change weather settings from block
if ( ( $options[7] == 1 && $options[0] == 1 ) ) {
$block['content'] .= "<center><a href="".XOOPS_URL."/modules/$moduledir/change.php">";
$block['content'] .= "<small>"._CHNGSET."</small></A></center>n";
}
$block['content'] .= "<center><table><tr><td align="center">n";
$block['content'] .="<small><b>"._CURCOND."</b></small>n";
$block['content'] .="<table cellspacing="2" cellpadding="2">n";
$block['content'] .="<tr><td align="center" valign="top"><small>" .$v_ConText. "</small>n";
$block['content'] .="<br/><br/><small>" ._WIND. ":</small>n";
$block['content'] .="</td><td align="center" valign="top"><a href="".XOOPS_URL."/modules/$moduledir/index.php"><img src="".XOOPS_URL."/modules/$moduledir/images/$bgifdir/".$v_CIcon."" border="0"></a>n";
$block['content'] .="</td><td align="center" valign="top"><small> " . ConvTemp($v_Temp, $tpc) ."</small>n";
// if ( strlen($v_ConText) > 6 ) {
// $block['content'] .= "<br/>";
// }
$block['content'] .= "<br/><br/><small> $v_WindD </small>";
if ($v_WindS > 0) {
$block['content'] .= "<small>" . ConvSpeed($v_WindS, $tps) . "</small>";
}
$block['content'] .="n</td></tr><tr><td align="center" colspan="3">n";
$block['content'] .="<small>" ._REFE. " " . ConvReal($v_Real, $tpc) . "</small>n";
$block['content'] .="</td></tr></table>n";
$block['content'] .="</td></tr><tr>n";
$block['content'] .="<td align="center"><a href="".XOOPS_URL."/modules/$moduledir/index.php">" ._WDETAILED. "...</a>n";
$block['content'] .="</td></tr><tr><td align="center"><small>" ._LASTUP. " " .$v_LastUp. "</small>n";
$block['content'] .="</td></tr></table>n";
$block['content'] .="</center>n";
fputs($fpwrite, $block['content']);
// show block cache debug hit/miss message
if ($options[4] == 1) {
$block['content'] .="<small>Cache-Miss tpc = $tpc tps = $tps</small>";
and add <font color="#FFFFFF"></font> to each of the variable names. (You may be able to put the font tag in the first statement and close the tag in the last... see example 2 below)
eg1: 1st variable in the code above:
Quote:
"<small>"._CHNGSET."</small></A></center>\n";
Change To:
Quote:
"<small><font color="#FFFFFF">"._CHNGSET."</font></small></A></center>\n";
eg2: Not sure if this will work or not, but try it first.
Change the snippet above to:
Quote:
"<small><font color="#FFFFFF">"._CHNGSET."</small></A></center>\n";
Scroll down and find the following line:
$block['content'] .="</td></tr><tr><td align="center"><small>" ._LASTUP. " " .$v_LastUp. "</small>n";
Change it to:
$block['content'] .="</td></tr><tr><td align="center"><small>" ._LASTUP. " " .$v_LastUp. "</font></small>n";
if that does not work, you will need to follow 'eg1' for all of the variables.
Hope that helps.