JomSocial with less errors PDF Print E-mail
User Rating: / 2
PoorBest 
Written by Bart Dorlandt   
Wednesday, 30 September 2009 22:32

I just tried the validator.w3.org to check my site and found out that jomsocial doesn't have the "alt" attribute in its image statements. Here is a quick fix...

Go into the component directory and into the template you use.

Edit the "activities.index.php"

  • add the "alt" attribute to the img tag.

Here is a list of files you need to edit as well.

./applications.edit.php:           <img src="/<?php echo JURI::base() . 'plugins/community/' . $application->apps . '/favicon.png'; ?>" class="icon" />
./applications.edit.php: <img src="/<?php echo JURI::base() . 'plugins/community/' . $application->apps . '/favicon.png'; ?>" class="icon" />
./groups.list.php: <img src="/<?php echo $group->thumb;?>" border="0" class="avatar" />
./groups.viewdiscussion.php: <img src="/<?php echo $creator->getThumbAvatar(); ?>" /><br />
./profile.header.php: <li><img src="/<?php echo $karmaImgUrl; ?>" /></li>
./profile.header.php.org: <li><img src="/<?php echo $karmaImgUrl; ?>" /></li>
./frontpage.index.php: <img class="avatar hasTip" title="<?php echo htmlspecialchars($row->caption);?>::<?php echo JText::sprintf('Uploaded by %1$s' , $row->user->getDisplayName() );?>" src="/<?php echo JURI::base() . $row->thumbnail; ?>" width="45" height="45" />
./frontpage.index.php: <img class="avatar hasTip" src="/<?php echo $row->user->getThumbAvatar(); ?>" title="<?php echo cAvatarTooltip($row->user); ?>" width="45" height="45" />
./frontpage.index.php: <a href="/<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$row->id ); ?>"><img class="avatar hasTip" src="/<?php echo $row->smallAvatar; ?>" title="<?php echo cAvatarTooltip($row); ?>" width="45" height="45" /></a>
./frontpage.index.php: <img src="/<?php echo $video->thumb; ?>" width="50" height="50" class="avatar hasTip" title="<?php echo $video->title; ?>::<?php echo $video->description; ?>" />
./inbox.list.php: <img style="vertical-align:middle;" id="new-message-<?php echo $message->id;?>" src="/<?php echo JURI::base(); ?>components/com_community/templates/default/images/new.gif"/>
./inbox.list.php: <img style="vertical-align:middle; display:none;" id="new-message-<?php echo $message->id;?>" src="/<?php echo JURI::base(); ?>components/com_community/templates/default/images/new.gif"/>
./applications.browse.php: <img src="/<?php echo JURI::base() . 'plugins/community/' . $application->name . '/favicon.png'; ?>" class="icon" />
./photos.photo.php: <div class="photoBtn next"><img src="/" height="50"/></div>
./photos.photo.php: <div class="photoBtn prev"><img src="/" height="50"/></div>
./groups.viewgroup.php: <img src="/<?php echo $group->avatar; ?>" border="0" class="avatar" />
./groups.viewgroup.php: <img border="0" class="avatar hasTip" src="/<?php echo $member->getThumbAvatar(); ?>" title="<?php echo cAvatarTooltip($member);?>" />

Last Updated on Tuesday, 06 October 2009 13:31
 


Related items: