Remove drop-down menu

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
nalzate
Posts: 22
Joined: 05 Dec 2023, 20:47
Location: Colombia

Remove drop-down menu

Post by nalzate »

Hello, what is the code to remove the drop down menu?
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Remove drop-down menu

Post by atrol »

Which drop down menu?
Please use Search before posting and read the Manual
nalzate
Posts: 22
Joined: 05 Dec 2023, 20:47
Location: Colombia

Re: Remove drop-down menu

Post by nalzate »

the drop-down menu next to the user's name
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Remove drop-down menu

Post by atrol »

Do you mean the project selection or the one for the account settings?
Please use Search before posting and read the Manual
nalzate
Posts: 22
Joined: 05 Dec 2023, 20:47
Location: Colombia

Re: Remove drop-down menu

Post by nalzate »

the project selection
atrol
Site Admin
Posts: 8560
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Remove drop-down menu

Post by atrol »

Why do you want to remove it?
It's automatically removed if a user has just access to one single project.
Please use Search before posting and read the Manual
nalzate
Posts: 22
Joined: 05 Dec 2023, 20:47
Location: Colombia

Re: Remove drop-down menu

Post by nalzate »

I am changing a program from an old version of mantis to a new version. I have administrator access and in the old version the drop down menu is disabled and I don't know what is the code to disable it in the new version as well.

I need your help, please, thank you.
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Remove drop-down menu

Post by cas »

You can simply set "$g_show_project_menu_bar" to "OFF" in config/config_inc.php.
nalzate
Posts: 22
Joined: 05 Dec 2023, 20:47
Location: Colombia

Re: Remove drop-down menu

Post by nalzate »

I already had it in the code, what other option is there?
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: Remove drop-down menu

Post by cas »

The only way to really suppress that bit, is by altering core/layout_ap.php :mrgreen:
you need to comment out line 438 to read

Code: Select all

//		layout_navbar_projects_menu();
nalzate
Posts: 22
Joined: 05 Dec 2023, 20:47
Location: Colombia

Re: Remove drop-down menu

Post by nalzate »

It worked for me! thank you very much for your help! :D :D
Post Reply