I've followed the steps and the links still don't appear in the course page.
if ($mod->modname == "label") {
if (!$mod->visible) {
echo "<div class=\"dimmed_text\">";
}
echo format_text($extra, FORMAT_HTML, $labelformatoptions);
if (!$mod->visible) {
echo "</div>";
}
if (!empty($CFG->enablegroupings) && !empty($mod->groupingid) && has_capability('moodle/course:managegroups', get_context_instance(CONTEXT_CO$
if (!isset($groupings)) {
$groupings = groups_get_all_groupings($course->id);
}
echo " <span class=\"groupinglabel\">(".format_string($groupings[$mod->groupingid]->name).')</span>';
}
} elseif ($mod->modname == 'facetoface') {
include_once($CFG->dirroot.'/mod/facetoface/lib.php');
echo facetoface_print_coursemodule_info($mod);
} else { // Normal activity
See http://moodle.rosmini.school.nz/course/category.php?id=5
In reply to Andre Basel
Re: Integrating Face-to-face sessions on the course page
by François Marier -
Hi Andre,
It looks like you have an extra closing brace "}" just before the "} elseif ($mod->modname == 'facetoface') {" line.
On Linux, you can make sure that your modified PHP file is valid by running:
php -l filename.php
Francois
It looks like you have an extra closing brace "}" just before the "} elseif ($mod->modname == 'facetoface') {" line.
On Linux, you can make sure that your modified PHP file is valid by running:
php -l filename.php
Francois
In reply to François Marier
Re: Integrating Face-to-face sessions on the course page
by Andre Basel -
Hi, no the code is correct. I copied it off the Face to face site. Also I ran the php command as suggested and it returned no errors.
In reply to Andre Basel
Re: Integrating Face-to-face sessions on the course page
by François Marier -
Hi Andre,
Can you post a screenshot of the course page (I can't login to the course you posted since I don't have an account) and also attach the course/lib.php file to your forum post?
Something else you might want to try is to enable full server debugging in the Admin area to see if any errors are reported on the course page.
Cheers,
Francois
Can you post a screenshot of the course page (I can't login to the course you posted since I don't have an account) and also attach the course/lib.php file to your forum post?
Something else you might want to try is to enable full server debugging in the Admin area to see if any errors are reported on the course page.
Cheers,
Francois