Several customizations

Post about your customizations to share with others.

Moderators: Developer, Contributor

Morpheus87
Posts: 11
Joined: 17 Mar 2014, 07:19

Several customizations

Post by Morpheus87 »

Hi,
We just updated our MantisBT from 1.2.0 to 1.2.17 and so far everything works fine. But I need to do some changes, so we have the same settings as before. For some reason a few things have changed.
The list is quit long and since I am not an PHP expert I need some help. :D

1. The user names are now shown in a short version. For example John Smith is now displayed as JS. How can I change that back?
2. In the Mantis Version 1.2.0 we defined a new severity called “Rejected”. So far it worked fine, but after the update all severity status in existing issues are now shown as numbers. For example “Feature” is shown as “@21@”.
3. Where can I define new Priorities?
4. If I create a new ticket, I have the options for Platform, OS, OS Version. How can I remove these?
5. Notes can now be edited by others. How can I change that so nobody can edit notes?
6. E-Mails used to have the issue-number and issue-title in the title. This is now missing.
7. The date format is now yyyy-mm-dd. I would like to change that to dd-mm-yyyy.

I hope you guys can help me out with this. :D
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Several customizations

Post by atrol »

It seems at first sight, that you missed the following step from the upgrading guide
Copy the configuration files
To preserve your system settings, you should copy the files listed below to the new directory, as well as any other custom files such as logo, favicon, css, etc.
config_inc.php custom_strings_inc.php custom_constants_inc.php custom_functions_inc.php
Please use Search before posting and read the Manual
Morpheus87
Posts: 11
Joined: 17 Mar 2014, 07:19

Re: Several customizations

Post by Morpheus87 »

I backed up all files. So does that mean, that I can overwrite the new config_inc.php, custom_strings_inc.php, custom_constants_inc.php, custom_functions_inc.php files with my old ones and set back the settings?
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Several customizations

Post by atrol »

There is just one file you have to override: config_inc.php
All other files do not exist in your new system.
Please use Search before posting and read the Manual
Morpheus87
Posts: 11
Joined: 17 Mar 2014, 07:19

Re: Several customizations

Post by Morpheus87 »

I did that and it didn't help, unfortunately.
Can anyone help me with my problem list? Especially point one and two.

1. The user names are now shown in a short version. For example John Smith is now displayed as JS. How can I change that back?
2. In the Mantis Version 1.2.0 we defined a new severity called “Rejected”. So far it worked fine, but after the update all severity status in existing issues are now shown as numbers. For example “Feature” is shown as “@21@”.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Several customizations

Post by atrol »

Check your old config_inc.php
I expected you see an entry like $g_show_realname = ON;
Can you confirm this?
Please use Search before posting and read the Manual
Morpheus87
Posts: 11
Joined: 17 Mar 2014, 07:19

Re: Several customizations

Post by Morpheus87 »

Check your old config_inc.php
I expected you see an entry like $g_show_realname = ON;
Can you confirm this?
Yes, I already fixed this. Thank you for your tip.
But so far I was not able to fix the problem with the severity. Do you have any idea how to solve this?
The strange thing is, if I click on an issue it shows the number. But if I update the issue with new information the severity shows now the text correctly.
Morpheus87
Posts: 11
Joined: 17 Mar 2014, 07:19

Re: Several customizations

Post by Morpheus87 »

The Problem with the severity is also fixed. After scrolling through the old config_default_inc.php file I finally found some changes effecting the severity made from somebody else years ago. :?
So that's why it didn't work. Now I changed it in the new config_inc.php and everything works fine! 8)
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Several customizations

Post by atrol »

Morpheus87 wrote:made from somebody else years ago)
throw him to the floor, please ;-)

Thanks for coming back and telling the solution.
Please use Search before posting and read the Manual
Shifter7
Posts: 10
Joined: 03 Apr 2014, 22:45

Re: Several customizations

Post by Shifter7 »

I have a similar problem in that I want to replace Severity 'crash' with 'critical'
I followed the Admin guide and did the following, but now I get @75@

edit file custom_constants_inc.php; (create it if it does not exist)
<?php
# Custom severity code
define( 'CRITICAL', 75 );

In the main mantisbt directory, edit config_inc.php
# Revised enum string with new 'critical' severity
$g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,75:critical,80:block';

severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block'; is also in config_defaults_inc.php, but I was under the impression that this should not be changed

Any help would be greatly appreciated.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Several customizations

Post by atrol »

You missed the step to set $s_severity_enum_string in file custom_strings_inc.php
Please use Search before posting and read the Manual
Shifter7
Posts: 10
Joined: 03 Apr 2014, 22:45

Re: Several customizations

Post by Shifter7 »

Well ok then...Thanks for the pointer.
Just to verify, should it be $s_severity_enum_string (as listed in your reply) or $g_severity_enum_string ?
Shifter7
Posts: 10
Joined: 03 Apr 2014, 22:45

Re: Several customizations

Post by Shifter7 »

Nevermind...the admin guide says its an "s"
Morpheus87
Posts: 11
Joined: 17 Mar 2014, 07:19

Re: Several customizations

Post by Morpheus87 »

I’d like to edit the severity list. This is how it used to be:
10:feature,
20:trivial,
21:Feature-Wunsch,
30:text,
40:tweak,
41:error,
50:minor,
60:major,
70:crash,
80:block,
90:unknown

And this is how I want it to look like.
01:NA,
50:minor,
60:major,
80:block,
90:unknown

Now my problem is, if I change it in config_inc.php and custom_strings_inc.php old entries show up just as numbers (like @40@).
My question is, is it possible to keep the old values only for ‘old’ issues?
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Several customizations

Post by atrol »

I didn't try, but changing only config_inc.php should work.
Keep the old values in custom_strings_inc.php
Please use Search before posting and read the Manual
Post Reply