ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


problems with chat module


  • 2007-12-07 09:31:37

    problems with chat module

    Hi everyone,

    I'm having problems in makin chat work. The problem is just here (display.php file)
    ...
    if ($_REQUEST['set']) {
    if (isset($_GET['set'])) {
    if ($_GET['set'] == $_POST['message']) {
    $tmp_message = $_POST['tempField'];
    } else {
    $tmp_message = $_POST['message'];
    }
    } else {
    $tmp_message = $_POST['message'];
    }
    //$message = $_POST['message'];
    postMessage($_SESSION['login'], $tmp_message, $topMsgNum, $bottomMsgNum);
    } else if ($_REQUEST['firstLoginFlag'] > 0) {
    postMessage(_AT('chat_system'), _AT('chat_user_logged_in', $_SESSION['login']), $topMsgNum, $bottomMsgNum);
    }
    ....

    I really don't konw why is always entering in the outter else, so messages from users are not displayed. Only messages from system are displayed.

    I'm not experienced in PHP so I don't know how to fix it.


    ATutor version 1.5.3.3
    PHP Version 5.2.1