Skip to content

Commit

Permalink
FIxes for Strrrrrict in forum ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 8, 2007
1 parent 464f76a commit 7f51199
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3355,6 +3355,7 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode, $can

if ($ratings->allow) {
echo '<form id="form" method="post" action="rate.php">';
echo '<div class="ratingform">';
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="forumid" value="'.$forum->id.'" />';
}
Expand Down Expand Up @@ -3408,14 +3409,16 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode, $can
}

if ($ratingsmenuused) {
echo "<center><input type=\"submit\" value=\"".get_string("sendinratings", "forum")."\" />";
echo '<div class="ratingsubmit">';
echo '<input type="submit" value="'.get_string('sendinratings', 'forum').'" />';
if ($forum->scale < 0) {
if ($scale = get_record("scale", "id", abs($forum->scale))) {
print_scale_menu_helpbutton($course->id, $scale );
}
}
echo "</center>";
echo "</form>";
echo '</div>';
echo '</div>';
echo '</form>';
}
}

Expand Down
4 changes: 4 additions & 0 deletions theme/standard/styles_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -2181,6 +2181,10 @@ body#mod-forum-search .introcontent {
border-style: solid;
border-width: 2px;
}
#mod-forum-discuss .ratingsubmit {
padding:10px;
text-align:center;
}
#mod-forum-index .unread img,
#mod-forum-view .unread img
{
Expand Down

0 comments on commit 7f51199

Please sign in to comment.