Sunday, 12 April 2015
  1 Replies
  6.4K Visits
0
Votes
Undo
If you are encountering a W3C HTML5 validation error on the Latest Events module like the following code output, I have a fix for the 'geraint' layout view but it should work fine for all other views.

Validation Output: 5 Errors

Error Line 940, Column 129: The width attribute on the table element is obsolete. Use CSS instead.

…ing="0" cellpadding="0" align="center"><tr><td class="mod_events_latest_first"…

?
Error Line 940, Column 129: The cellspacing attribute on the table element is obsolete. Use CSS instead.

…ing="0" cellpadding="0" align="center"><tr><td class="mod_events_latest_first"…

?
Error Line 940, Column 129: The cellpadding attribute on the table element is obsolete. Use CSS instead.

…ing="0" cellpadding="0" align="center"><tr><td class="mod_events_latest_first"…

?
Error Line 940, Column 129: The align attribute on the table element is obsolete. Use CSS instead.

…ing="0" cellpadding="0" align="center"><tr><td class="mod_events_latest_first"…

?
Error Line 940, Column 129: The border attribute on the table element is obsolete. Use CSS instead.

…ing="0" cellpadding="0" align="center"><tr><td class="mod_events_latest_first"…


In the latest.php file, find this line:

$content .= '<table class="mod_events_latest_table" width="100%" border="0" cellspacing="0" cellpadding="0" align="center">';


Change it to:

$content .= '<table class="mod_events_latest_table" style="width:100%;border:0;margin-left:auto;margin-right:auto;border-spacing:0;border-collapse:collapse;">';


This will fix the validation problem and your latest event module will still display properly. Hopefully, Geraint will get this changed for 'all views'.
10 years ago
·
#146176
0
Votes
Undo
Thank you for this contribution.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.