how to remove [invite users] button from titlebar?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mushu
Posts: 146
Joined: Jan 04, 2017 12:41 pm

how to remove [invite users] button from titlebar?

Post by mushu » Feb 27, 2018 1:16 pm

MantisBT 2.7.0

How can I remove the button for inviting users entirely from the top bar? It sits next to the [report issue] button.

EDIT: we use active directory authentication via the old AdLogin plugin, which works great. People access our MantisBT website and are automatically logged into the system. We also use the email reporting plugin & script to allow our employees to simply email a special email address and submit a bug that way, and a ticket is created and emails are generated to the admins and we can assign the ticket and go from there. Pretty slick. Anyway, this is why we don't need or want people playing with that button, because it is not needed in our environment.

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: how to remove [invite users] button from titlebar?

Post by rkarmann » Feb 28, 2018 4:03 am

Hi,

To disable signup in Mantis, you have to set the following configuration option: (in config/config_inc.php)

Code: Select all

$g_allow_signup = OFF
Doing this, users won't be able to invte other and create an account from the login page.

See the documentation for further info.

Regards

RK
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

atrol
Site Admin
Posts: 7691
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: how to remove [invite users] button from titlebar?

Post by atrol » Mar 01, 2018 2:04 am

rkarmann wrote:
Feb 28, 2018 4:03 am

Code: Select all

$g_allow_signup = OFF
Doing this, users won't be able to invte other
Not true when using a standard Mantis.
Please use Search before posting and read the Manual

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: how to remove [invite users] button from titlebar?

Post by rkarmann » Mar 01, 2018 2:19 am

So there is no configuration option to answer this user need ?
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

atrol
Site Admin
Posts: 7691
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: how to remove [invite users] button from titlebar?

Post by atrol » Mar 01, 2018 10:07 am

rkarmann wrote:
Mar 01, 2018 2:19 am
So there is no configuration option to answer this user need ?
There is no option.
At the moment the "Invite Users" button is shown if a user is logged in as administrator.
Please use Search before posting and read the Manual

mushu
Posts: 146
Joined: Jan 04, 2017 12:41 pm

Re: how to remove [invite users] button from titlebar?

Post by mushu » Mar 01, 2018 10:49 am

Ahhh I didn't realize that only Admins saw that button. Then it's ok, I'll just make sure the other Admins know to not click that button. Thanks for the clarification. RTFM is fine and all, but when it is huge and a single sentence is important, there's no way to ensure that taking the time to search through it will be sufficient. That's why these forums are so important for support purposes.

Keep up the good work even though you don't get kudos all the time!

Starbuck
Posts: 180
Joined: Feb 13, 2006 9:53 pm
Location: USA
Contact:

Re: how to remove [invite users] button from titlebar?

Post by Starbuck » Mar 01, 2018 6:07 pm

If you want to change that refined behavior, consider a small plugin.
If you want Mantis to work differently, use or create a plugin. Visit the Plugins forums.
Ask developers to create a plugin that you need - and motivate them to help you!

rkarmann
Posts: 66
Joined: Nov 24, 2017 5:00 am
Location: Lille, France

Re: how to remove [invite users] button from titlebar?

Post by rkarmann » Mar 02, 2018 11:09 am

I have wrote a little tutorial on how to create a Plugin, based on your need. You can take a look at the topic and write it yourself, or just download it on GitHub.

Just follow the plugin installation instructions here.

RK
Currently working on a wiki-based plugin for MantisBT 2.X. If you'd like to test it, contact me or see the plugin section.

Post Reply