1
wizanda
Can I edited the statistics module to include, alt="" like this??
  • 2005/8/22 6:58

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


I have been fixing bits in my site for W3C and while doing so it says the hit counter requires alt=""

So can i edit the code in \modules\statistics\blocks\hitcounter.php

Like this?? This is the original

$yearhits[$cnt]['counter'] .= "/modules/statistics/images/".$imgsrc.".gif" border = "0" />";


And this is what I want to know, if I can change it to?

$yearhits[$cnt]['counter'] .= "/modules/statistics/images/".$imgsrc.".gif" alt = "" border = "0" />";


Will this cause any problems for php?

2
Mithrandir
Re: Can I edited the statistics module to include, alt="" like this??

Perfect example of validation mattering more than WHY it should validate...

Adding alt="" may validate your page, but why does the validator check this? Because an empty alt attribute is of more use than a missing one? No, because images should have (relevant) alt attributes in case the image is broken or the visitor has turned off images.

So, basically, you CAN do what you suggest (shouldn't break anything) - but why not put in a meaningful alt attribute when you are editing the file anyway?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
wizanda
Re: Can I edited the statistics module to include, alt="" like this??
  • 2005/8/22 7:48

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


With this ocasion, it is for the numbers used to display the hit counts.

So if I did add anything, it would be displayed each time a number is used wouldn't it?

Yet I know what you mean

Login

Who's Online

321 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 321


more...

Donat-O-Meter

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

Latest GitHub Commits