Skip to content
Permalink
Browse files

Some refinements to the display of forums

  - don't show intro box for teacher forum (because it can't be edited)
  - don't show intro box when the text is empty anyway
  • Loading branch information...
moodler
moodler committed Aug 12, 2003
1 parent 1ddf932 commit c6ee38d073d2883384b5fdeb907613634b791062
Showing with 17 additions and 5 deletions.
  1. +17 −5 mod/forum/view.php
@@ -133,14 +133,24 @@
break;
case "eachuser":
print_simple_box(text_to_html($forum->intro), "CENTER");
echo "<P ALIGN=CENTER>";
if (!empty($forum->intro)) {
print_simple_box(text_to_html($forum->intro), "center");
}
echo "<p align=\"center\">";
if (forum_user_can_post_discussion($forum)) {
print_string("allowsdiscussions", "forum");
} else {
echo "&nbsp";
}
echo "</P>";
echo "</p>";
if (!empty($showall)) {
forum_print_latest_discussions($forum->id, 0, "header");
} else {
forum_print_latest_discussions($forum->id, FORUM_MANY_DISCUSSIONS, "header");
}
break;
case "teacher":
if (!empty($showall)) {
forum_print_latest_discussions($forum->id, 0, "header");
} else {
@@ -149,8 +159,10 @@
break;
default:
print_simple_box(text_to_html($forum->intro), "CENTER");
echo "<P>&nbsp;</P>";
if (!empty($forum->intro)) {
print_simple_box(text_to_html($forum->intro), "center");
}
echo "<p>&nbsp;</p>";
if (!empty($showall)) {
forum_print_latest_discussions($forum->id, 0, "header");
} else {

0 comments on commit c6ee38d

Please sign in to comment.
You can’t perform that action at this time.