xoops forums

jph000

Just popping in
Posted on: 2009/2/24 1:13
jph000
jph000 (Show more)
Just popping in
Posts: 60
Since: 2004/8/2 2
#1

vlweather 0.9 XHTML Validation

In case anyone's interested in the status of legacy modules under XOOPS 2.3.2 and PHP5 and XHTML validation, my changes to get vlweather 0.9 to validate for CSS level 2 and XHTML 1.0 Transitional are summarized below. Note: Replacement of $HTTP_GET_VARS with $_GET for PHP5 compatibility already had been done.

1. templates/blocks/vlweatherblock.html

OLD

<div style="text-align: center;">
<b><{$block.location}></b>
<b><{$block.time}></b>
<center><a href="<{$block.moreurl}>"><IMG SRC="<{$block.image}>" alt="" height="50" width="50" border="1"></a></center>
<{$block.conditions}>
<{$block.temp}><{$block.feels}>
<{$block.rel_humidity}>
<{$block.dew}>
<{$block.bar}>&nbsp;<{$block.bardir}>
<{$block.windspeed}>
<{$block.rec_precip}>
<{$block.forecast}>
<{$block.usersettings}>
</div>

NEW
<div style="text-align: center;">
<b><{$block.location}></b><br />
<b><{$block.time}></b><br />
<a href="<{$block.moreurl}>"><img src="<{$block.image}>" alt="" height="50" width="50" border="1" /></a><br />
<{$block.conditions}>
<{$block.temp}><{$block.feels}>
<{$block.rel_humidity}>
<{$block.dew}>
<{$block.bar}>&nbsp;<{$block.bardir}>
<{$block.windspeed}>
<{$block.rec_precip}>
<{$block.forecast}>
<{$block.usersettings}>
</div>

2. blocks/vlweatherblock.php

13 occurrences replaced <br> with <br />

4 occurrences removed <center> and </center> tags

3. change.php

2 occurrences removed <center> and </center> tags

4. class/vlweather.php

OLD
$content ="<center><font class=\"sideboxfont\">" . _VL_BL_CONDAO . "<br />" . $hago . $mago . _VL_BL_AGO ."</font></center>\n";

2 occurrences removed <center> and </center> tags

4 occurrences replaced in href link code of simple ampersands with ampersand string equivalent: ampersand city

Nick_James

Friend of XOOPS
Posted on: 2009/3/20 0:57
Nick_James
Nick_James (Show more)
Friend of XOOPS
Posts: 359
Since: 2006/10/14
#2

Re: vlweather 0.9 XHTML Validation

That's great. Thanks
Nicholas James
President - LaDads
www.ladads.info