Posts Tagged ‘php’

  • Moodle Tips: Modify the login box

    Need to modify the "Your are logged in as...(Logout)" link text" that is at the top right of your Moodle site? It usually looks like this: The parentheses are hard coded but they can be removed without any problems as far as I have seen. Find your weblib.php file. Do this for all the code that refers to 'login,' 'logout,' 'switchrolereturn,' and 'loggedinas' In my weblib.php this runs from lines 3477 to 3497 Remove the ( that occurs after the " and the ) that is just before the last '; Original:
    $loggedinas = $realuserinfo.get_string('loggedinas', 'moodle', $username). " (<a $CFG->frametarget href=\"$CFG->wwwroot/login/logout.php?sesskey=".sesskey()."\">".get_string('logout').'</a>)';
    After:
    $loggedinas = $realuserinfo.get_string('loggedinas', 'moodle',...

    More Details Here »