1
jph000
vlweather 0.9 XHTML Validation
  • 2009/2/24 1:13

  • jph000

  • Just popping in

  • Posts: 60

  • Since: 2004/8/2 2


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

2
Nick_James
Re: vlweather 0.9 XHTML Validation

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

Login

Username:
Password:

Lost Password? Register now!

Who's Online

60 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 60


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits