Menu

#30 Disable the 'Hello User' box.

Core Module
closed-duplicate
Code/Logic (73)
5
2005-03-04
2004-05-04
No

The login box can be disabled using the 'Show Login Box' option in
the User admin settings but once a user logs in, a user info box
like this...

Hello [Username]
Home
Control Panel
Logout

... is shown.

To also disable this box you can hang it's config off the 'Show Login
Box' option as well.

In mod/users/index.php, at the end of the file, change...

if ($_SESSION["OBJ_user"]->user_id > 0){
$CNT_user_small["title"] = $_SESSION["translate"]->it("Hello
[var1]", $_SESSION["OBJ_user"]->username);
$CNT_user_small["content"] = $_SESSION["OBJ_user"]-
>userMenu();
}

... to ....

if ($_SESSION["OBJ_user"]->user_id > 0){
if ($_SESSION["OBJ_user"]->show_login > 0) {
$CNT_user_small["title"] = $_SESSION["translate"]->it("Hello
[var1]", $_SESSION["OBJ_user"]->username);
$CNT_user_small["content"] = $_SESSION["OBJ_user"]-
>userMenu();
}
}

It would be worthwhile to have this under a separate setting so it
was independent of the login box.

Be aware that once disabled, there is no link to the control panel
available to users or admins so you need to have placed a link
somewhere first to /index.php?module=controlpanel

Discussion

  • Shaun Murray

    Shaun Murray - 2004-07-22

    Logged In: YES
    user_id=722742

    I've improved this patch to add the setting. See http://sourceforge.net/
    tracker/index.php?
    func=detail&aid=995611&group_id=15539&atid=315539

     
  • Anonymous

    Anonymous - 2005-03-04

    Logged In: YES
    user_id=400519

    Closing this one. I will implement the other with a config
    file addition to implement.

     
  • Anonymous

    Anonymous - 2005-03-04
    • status: open --> closed-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB