Topic: Avatars
I know PunBB is aiming to have a perfect XHTML and I noticed a little something today.
It's not a very big problem, but when a use has an avatar and the avatar is showing, it dosn't have an alternate text. (alt="")
$username = pun_htmlspecialchars($pun_user['username']);
if (substr($username,-1,1)=='s')
$username .= "'";
else
$username .= "'s";
echo '<img src="avatar1.gif" style="width: 100%; height: 100%" alt="'.$username.' avatars" />';
The script simply ads a "'" if the names ends with a "s" or a adds "'s" if the name dosn't end with an "s".
For example:
ultime: ultime's
Rats: Rats'
As I said, it's nothing big, but it's one step closer of having a perfect XHTML score..
Thanks for reading,
Pete