Moodle

Option to disable auto scroll on chat

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.1, 1.7.2, 1.8, 1.9, 2.0
  • Fix Version/s: 1.8.6
  • Component/s: Chat
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

The chat would have an option as a check box to disable auto scroll.

It's is good when there are a lot of users chatting at same time.

Issue Links

Activity

Hide
Gustavo Augusto Hennig added a comment -

I think it's easy to do:

in 'chainput.php' somethink like:

print_checkbox("noScroll", "on", getNoScollDefault(), get_string("disableautoscroll","chat");

and in 'jsupdate.php' something like:

try {
if(!parent.input.document.getElementById("auto-cb0001").checked){ parent.msg.scroll(1,5000000); }
}
catch (e){
}

Show
Gustavo Augusto Hennig added a comment - I think it's easy to do: in 'chainput.php' somethink like: print_checkbox("noScroll", "on", getNoScollDefault(), get_string("disableautoscroll","chat"); and in 'jsupdate.php' something like: try { if(!parent.input.document.getElementById("auto-cb0001").checked){ parent.msg.scroll(1,5000000); } } catch (e){ }
Hide
Dongsheng Cai added a comment -

Added, please review.

Show
Dongsheng Cai added a comment - Added, please review.
Hide
Ryan Smith added a comment -

Dongsheng,

We just tested this and it works great! Thanks for the improvement.

Show
Ryan Smith added a comment - Dongsheng, We just tested this and it works great! Thanks for the improvement.
Hide
daniel maiochi added a comment -

nice!
it works perfectly!

but here in my university we use server chat daemon mode (because it works with about 20 users simultaneously) and we need the same improve on this mode..

can anyone help me?

note: the server uses the gui_sockets folder

thank you!

Show
daniel maiochi added a comment - nice! it works perfectly! but here in my university we use server chat daemon mode (because it works with about 20 users simultaneously) and we need the same improve on this mode.. can anyone help me? note: the server uses the gui_sockets folder thank you!
Hide
daniel maiochi added a comment -

I have created a topic to this

http://tracker.moodle.org/browse/MDL-15370

ty!

Show
daniel maiochi added a comment - I have created a topic to this http://tracker.moodle.org/browse/MDL-15370 ty!
Hide
Helen Foster added a comment -

Thanks Dongsheng, disabling the chat auto-scroll works perfectly

I added a note to the documentation: http://docs.moodle.org/en/Chat_sessions

Show
Helen Foster added a comment - Thanks Dongsheng, disabling the chat auto-scroll works perfectly I added a note to the documentation: http://docs.moodle.org/en/Chat_sessions
Hide
Dongsheng Cai added a comment -

Not perfect, the dom object must be tested before invoke...
I don't like frameset

Show
Dongsheng Cai added a comment - Not perfect, the dom object must be tested before invoke... I don't like frameset
Hide
Dongsheng Cai added a comment -

Fixed

Show
Dongsheng Cai added a comment - Fixed

People

Dates

  • Created:
    Updated:
    Resolved: