Hi Everyone!
Well I just had to keep fiddling with it. I was able to get only one image to display for only one course. I was able to get this one to display by not keeping the script (noted just below this paragraph) at line 1152 in "course/lib.php" but by moving it after the requested teacher information in the course block area which was line 1227 in "course/lib.php".
echo "<br><img src=\"/images/$course->image\" alt=\"$course->alternate\" title=\"$course->alternate\"><br><br>";
Please check the following link,
http://s94988317.onlinehome.us/moodle/
Anyone have any suggestions as to how I can correct this problem?
Thanks again in advance for any help anyone can give me with this.
WP1
Below is the code block area I am referring to and where I inserted the above line,
===========================================
print_simple_box_start("center", "$width", $THEME->cellcontent, 5, "coursebox");
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
echo "<table width=\"100%\">";
echo "<tr valign=top>";
echo "<td valign=top width=\"50%\" class=\"courseboxinfo\">";
echo "<p><font size=3><b><a title=\"".get_string("entercourse")."\"
$linkcss href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a></b></font></p>";
if ($teachers = get_course_teachers($course->id)) {
echo "<p><font size=\"1\">\n";
foreach ($teachers as $teacher) {
if ($teacher->authority > 0) {
if (!$teacher->role) {
$teacher->role = $course->teacher;
}
$fullname = fullname($teacher, isteacher($course->id)); // is the USER a teacher of that course
echo "$teacher->role: <a href=\"$CFG->wwwroot/user/view.php?id=$teacher->id&course=$site->id\">$fullname</a><br />";
echo "<br><img src=\"./images/$course->image\" alt=\"$course->alternate\" title=\"$course->alternate\"><br><br>";
}
}
echo "</font></p>";
}