• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: ALT tags not showing up in RSEvent Module

ALT tags not showing up in RSEvent Module 14 years 1 month ago #13143

mod_rsevents_upcoming

I prefer that my pages validate via the w3 HTML standards. By not including ALT tags, this will ensure that they will not.
Here's the fix, and also to create a link to the event on the picture as well.

Line 99: Change:

if($rseventsConfig == 1 && $row->EventIcon != '')
$eventIcon = '<img src="'.JURI::root().'components/com_rsevents/assets/images/thumbs/'.str_replace('.'.JFile::getExt($row->EventIcon),'_'.$rseventsConfig.'.'.JFile::getExt($row->EventIcon),$row->EventIcon).'" />';
else $eventIcon = '';


To:

//Modified code to include ALT tags + link on image

if($rseventsConfig == 1 && $row->EventIcon != '')
$eventIcon = '<a target="'.$target.'" href="'.$eventlink.'"><img alt="{EventName}" src="'.JURI::root().'components/com_rsevents/assets/images/thumbs/'.str_replace('.'.JFile::getExt($row->EventIcon),'_'.$rseventsConfig.'.'.JFile::getExt($row->EventIcon),$row->EventIcon).'" /></a>';
else $eventIcon = '';


Hope this helps.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!