Moodle

When posting a new comment in database, the top of the page is displayed. The user has to scroll down to the bottom of the page to see the comment form.

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.4
  • Fix Version/s: None
  • Labels:
    None

Description

By sabine li - Tuesday, March 31, 2009, 09:18 AM

We've just upgrade moodle to 1.94+

A little problem with the database module: when posting a new comment in database, the top of the page is displayed. The user has to scroll down to the bottom of the page to see the comment form.

Most of our users are lost and don't see it.

Activity

Hide
Art Lader added a comment -

By Sabine II:

I finally found the solution by myself

in mod>data>lib.php
line 1326 replace
echo '<a href="view.php?d='.$data->id.'&page='.$page.'&mode=single&addcomment=1">'.get_string('addcomment', 'data').'</a>';
by
echo '<a href="view.php?d='.$data->id.'&page='.$page.'&mode=single&addcomment=1#commentaire">'.get_string('addcomment', 'data').'</a>';

line 1334 replace
echo '<div class="newcomment" style="text-align:center">';

by
echo '<a name="commentaire"></a><div class="newcomment" style="text-align:center">';

Show
Art Lader added a comment - By Sabine II: I finally found the solution by myself in mod>data>lib.php line 1326 replace echo '<a href="view.php?d='.$data->id.'&page='.$page.'&mode=single&addcomment=1">'.get_string('addcomment', 'data').'</a>'; by echo '<a href="view.php?d='.$data->id.'&page='.$page.'&mode=single&addcomment=1#commentaire">'.get_string('addcomment', 'data').'</a>'; line 1334 replace echo '<div class="newcomment" style="text-align:center">'; by echo '<a name="commentaire"></a><div class="newcomment" style="text-align:center">';

People

Vote (5)
Watch (1)

Dates

  • Created:
    Updated: