smartdesigners
10-14-2007, 06:09 PM
Is there a way I can turn off the HomeWork, Announcements and brop box features of the front page of the lms (so it only shows the courses available and courses subscribed to.
Joomla BackEnd -> JoomlaLMS configuration -> "Frontpage setupe" in the left JoomlaLMS menu. Here you can turn off announcements/homework/dropbox modules on the LMS frontpage.
Also you can do some layout modifications in the code to output courses module in full-width mode.
open the file joomla_lms.html.php
at lines 237-265 you can see the code:
</tr>
<tr>
<td width="50%" valign="top">
<?php
if ($JLMS_CONFIG->get('frontpage_courses')) {
joomla_lms_html::echoMyCourses($option, $Itemid, $my_courses);
} else { echo ' '; }
if ($JLMS_CONFIG->get('frontpage_allcourses')) {?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td class="sectiontableheader" align="center"><?php echo _JLMS_HOME_COURSES_LIST;?></td></tr>
<tr class='sectiontableentry1'><td><a href="<?php echo sefRelToabs("index.php?option=".$option."&Itemid=".$Itemid."&task=courses");?>" title="<?php echo _JLMS_HOME_COURSES_LIST_HREF;?>"><?php echo _JLMS_HOME_COURSES_LIST_HREF;?></a></td></tr>
</table>
<?php } ?>
</td>
<td width="50%" valign="top">
<?php
if ($JLMS_CONFIG->get('frontpage_announcements')) {
joomla_lms_html::echoMyAgenda($option, $Itemid, $my_announcements );
}
echo '<br />';
if ($JLMS_CONFIG->get('frontpage_dropbox')) {
joomla_lms_html::echoMyDropBox($option, $Itemid, $my_dropbox, $lists);
}
echo '<br />';
if ($JLMS_CONFIG->get('frontpage_homework')) {
joomla_lms_html::echoMyHomeWork($option, $Itemid, $my_homework);
}?>
</td>
</tr>
change it to:
</tr>
<?php
$td_width="100%";
$colspan = ' colspan="2"';
if ($JLMS_CONFIG->get('frontpage_announcements') || $JLMS_CONFIG->get('frontpage_dropbox') || $JLMS_CONFIG->get('frontpage_homework')) {
$td_width="50%";
$colspan = '';
}
?>
<tr>
<td width="<?php echo $td_width;?>" valign="top"<?php echo $colspan;?>>
<?php
if ($JLMS_CONFIG->get('frontpage_courses')) {
joomla_lms_html::echoMyCourses($option, $Itemid, $my_courses);
} else { echo ' '; }
if ($JLMS_CONFIG->get('frontpage_allcourses')) {?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td class="sectiontableheader" align="center"><?php echo _JLMS_HOME_COURSES_LIST;?></td></tr>
<tr class='sectiontableentry1'><td><a href="<?php echo sefRelToabs("index.php?option=".$option."&Itemid=".$Itemid."&task=courses");?>" title="<?php echo _JLMS_HOME_COURSES_LIST_HREF;?>"><?php echo _JLMS_HOME_COURSES_LIST_HREF;?></a></td></tr>
</table>
<?php } ?>
</td>
<?php if ($JLMS_CONFIG->get('frontpage_announcements') || $JLMS_CONFIG->get('frontpage_dropbox') || $JLMS_CONFIG->get('frontpage_homework')) { ?>
<td width="50%" valign="top">
<?php
if ($JLMS_CONFIG->get('frontpage_announcements')) {
joomla_lms_html::echoMyAgenda($option, $Itemid, $my_announcements );
}
echo '<br />';
if ($JLMS_CONFIG->get('frontpage_dropbox')) {
joomla_lms_html::echoMyDropBox($option, $Itemid, $my_dropbox, $lists);
}
echo '<br />';
if ($JLMS_CONFIG->get('frontpage_homework')) {
joomla_lms_html::echoMyHomeWork($option, $Itemid, $my_homework);
}?>
</td>
<?php } ?>
</tr>
smartdesigners
10-15-2007, 12:19 PM
exellent thank you very much
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.