}
}
+ if (user_can_post_discussion($forum)) {
+ echo "<P ALIGN=right>";
+ echo "<A HREF=\"$CFG->wwwroot/mod/discuss/post.php?forum=$forum->id\">Add a new topic...</A>";
+ echo "</P>";
+ }
+
if (! $topics = get_all_topics($forum->id, $forum_sort) ) {
echo "<P ALIGN=CENTER><B>There are no discussion topics yet in this forum.</B></P>";
}
}
}
- if (user_can_post_discussion($forum)) {
- echo "<P ALIGN=right>";
- echo "<A HREF=\"$CFG->wwwroot/mod/discuss/post.php?forum=$forum->id\">Add a new topic...</A>";
- echo "</P>";
- }
-
}
case "eachuser":
echo "<P ALIGN=CENTER>";
if (user_can_post_discussion($forum)) {
- echo "This forum allows one discussion topic to be posted per person. Click here to <A HREF=\"../discuss/post.php?forum=$forum->id\">post your topic</A>.";
+ echo "This forum allows one discussion topic to be posted per person.";
} else {
echo " ";
}