Need help with determinig the role of the user
Moderators: Developer, Contributor
Need help with determinig the role of the user
Hello, Mantis enthusiasts!
I administrate a web community, on a site that is Drupal based. Mantis is connected to the site via "bugbits" module, and it connects Mantis nicely into the community.
At the site, when a User creates an account for the web community, he/she gets also an account at Mantis. That works OK, though Drupal throws an error "There was an error inserting preferences for user ..." with every new account.
But my problem is that now the new user becomes a viewer only, not able to report any bugs (except anonymously).
Is there a way to make all new, accepted users automatically reporters?
I updated the access levels of current users manually one by one, but this will not be an option from now on.
Kind regards,
MerjaS
Gurux Ltd
http://www.gurux.org
----------------------------
Mantis: 1.1.8
PHP: 5.2.8
SQL: MySQL 5.0.45
OS: XP SP2
I administrate a web community, on a site that is Drupal based. Mantis is connected to the site via "bugbits" module, and it connects Mantis nicely into the community.
At the site, when a User creates an account for the web community, he/she gets also an account at Mantis. That works OK, though Drupal throws an error "There was an error inserting preferences for user ..." with every new account.
But my problem is that now the new user becomes a viewer only, not able to report any bugs (except anonymously).
Is there a way to make all new, accepted users automatically reporters?
I updated the access levels of current users manually one by one, but this will not be an option from now on.
Kind regards,
MerjaS
Gurux Ltd
http://www.gurux.org
----------------------------
Mantis: 1.1.8
PHP: 5.2.8
SQL: MySQL 5.0.45
OS: XP SP2
Re: Need help with determinig the role of the user
Hi,
check your config_inc.php and config_defaults_inc.php for the following: $g_default_new_account_access_level , replace this line with
$g_default_new_account_access_level = REPORTER;
config_inc.php overrides the config_defaults_inc.php so its ok if you insert it to there only!
let me know if it helps!
i-
check your config_inc.php and config_defaults_inc.php for the following: $g_default_new_account_access_level , replace this line with
$g_default_new_account_access_level = REPORTER;
config_inc.php overrides the config_defaults_inc.php so its ok if you insert it to there only!
let me know if it helps!
i-
Re: Need help with determinig the role of the user
This is not just OK, this is the preferred solution for this.istvanb wrote: config_inc.php overrides the config_defaults_inc.php so its ok if you insert it to there only!
Can't be said often enough: Never change config_defaults_inc.php !
a) your changes will be lost when updating to a newer version
b) if users just copy this file from old versions with there changes to newer version this might introduce hard to find issues (for example when a newer version introduces new settings which are not included in files of older version)
Thank You!
It never sees to amaze me, how helpful people actually are..
Thank You istvanb for Your quickest reply! I'll ask one of the boys to do this,
(I'm just a technical writer, and a little shy to start cutting into anything that looks even slightly more complicated than basic HTML...)
and let You know, when it has been tested!
Thanks,
MerjaS
Thank You istvanb for Your quickest reply! I'll ask one of the boys to do this,
(I'm just a technical writer, and a little shy to start cutting into anything that looks even slightly more complicated than basic HTML...)
and let You know, when it has been tested!
Thanks,
MerjaS
Re: Need help with determinig the role of the user
I am fine with that, and always commit my changes into the config_inc.php only.
BTW can you check out http://www.mantisbt.org/forums/viewtopi ... =3&t=12090 if there is a more elegant solution?
BTW can you check out http://www.mantisbt.org/forums/viewtopi ... =3&t=12090 if there is a more elegant solution?
Re: Need help with determinig the role of the user
Hello again!
This seemed too good to be true, and (even if I'm no coder) I encouraged myself to find that file, take a backup copy of it and opened it in notepad to edit it, but... there is no such line in our "config_inc.php" file.
In our config_inc.php file "allow signup" and "lost password feature" are both "OFF", commented with lines:
# This will make sure your users can't use your separate mantis setup to register or change
# their password, everything should go through drupal.
I agree, this is the way we want to do this, too: everything should go through Drupal, I just don't have the line to replace.
I kept looking, and I found
# --- signup default ---------------
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;
in "config_defaults_inc.php" file, in our bugbits folder. This file is NOT to be edited, though, You said here, at Mantis forum.
So, I was wondering, if I could just add those three lines (above) in our bugbits\config_inc.php file. Wondering this took me back to Drupal Forum, and I got an answer there: go ahead, add the line (two first are comments only).
So, I did. Now I'm only waiting for new users to create new accounts, to see if this passes the field-test!
I'll keep You informed (but please be patient..)
Thanks & regards,
MerjaS
This seemed too good to be true, and (even if I'm no coder) I encouraged myself to find that file, take a backup copy of it and opened it in notepad to edit it, but... there is no such line in our "config_inc.php" file.
In our config_inc.php file "allow signup" and "lost password feature" are both "OFF", commented with lines:
# This will make sure your users can't use your separate mantis setup to register or change
# their password, everything should go through drupal.
I agree, this is the way we want to do this, too: everything should go through Drupal, I just don't have the line to replace.
I kept looking, and I found
# --- signup default ---------------
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;
in "config_defaults_inc.php" file, in our bugbits folder. This file is NOT to be edited, though, You said here, at Mantis forum.
So, I was wondering, if I could just add those three lines (above) in our bugbits\config_inc.php file. Wondering this took me back to Drupal Forum, and I got an answer there: go ahead, add the line (two first are comments only).
So, I did. Now I'm only waiting for new users to create new accounts, to see if this passes the field-test!
I'll keep You informed (but please be patient..)
Thanks & regards,
MerjaS
___________________
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
Re: Need help with determinig the role of the user
Hello again,
sorry to inform you, it doesn't work.
I haven't been able to find out why, though I've been browsing the web inside-out.
If any of you have any ideas, kindly, let me know!
Regards,
MerjaS
sorry to inform you, it doesn't work.
I haven't been able to find out why, though I've been browsing the web inside-out.
If any of you have any ideas, kindly, let me know!
Regards,
MerjaS
Re: Need help with determinig the role of the user
MerjaS,
Can you describe your question again? It is not very clear for me when you say "sorry to inform you, it doesn't work."
let me know,
i-
Can you describe your question again? It is not very clear for me when you say "sorry to inform you, it doesn't work."
let me know,
i-
Re: Need help with determinig the role of the user
Hi istvanb,
I was referring to my previous problem in this thread, about getting people, who create an account at our Drupal based web site, also to become automatically reporters (not just viewers) in our Mantis system.
After some messages here, and at Drupal forum, I got instructions to add this:
in our bugbits\config_inc.php file.
So, I did. Then I waited for a new user to create an account at our website, to see if the solution would pass a field test. But it didn't. New users still become viewers only, not reporters. I have been trying to find a solution for this by browsing the web, but haven't been able to solve my problem. So I came back here, to let people know that I'd appreciate some new ideas.
I am no coder, so I may well be missing some simple settings, and believe me, there is no such thing as a "silly check-up in my case! So, if you can think of anything, I may have done wrong, or overlooked, please, comment!
Kindest regards,
MerjaS
I was referring to my previous problem in this thread, about getting people, who create an account at our Drupal based web site, also to become automatically reporters (not just viewers) in our Mantis system.
After some messages here, and at Drupal forum, I got instructions to add this:
Code: Select all
# --- signup default ---------------
# look in constant_inc.php for values
$g_default_new_account_access_level = REPORTER;
So, I did. Then I waited for a new user to create an account at our website, to see if the solution would pass a field test. But it didn't. New users still become viewers only, not reporters. I have been trying to find a solution for this by browsing the web, but haven't been able to solve my problem. So I came back here, to let people know that I'd appreciate some new ideas.
I am no coder, so I may well be missing some simple settings, and believe me, there is no such thing as a "silly check-up in my case! So, if you can think of anything, I may have done wrong, or overlooked, please, comment!
Kindest regards,
MerjaS
___________________
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
Re: Need help with determinig the role of the user
I tested this with version 1.2.3 of MantisBT.
Using MantisBT's own account creation (when testing I used link "Signup for a new account") worked fine.
So your problem might be caused by your older version of MantisBT or by the way you are creating the accounts.
Using MantisBT's own account creation (when testing I used link "Signup for a new account") worked fine.
So your problem might be caused by your older version of MantisBT or by the way you are creating the accounts.
Re: Need help with determinig the role of the user
Thank you, atrol, for your quick response!
I'll see to possibilities to update our Mantis to the latest version, as soon as we can.
Until then, the only way seems to be to manually change the level of our new accountants, to become Mantis reporters.
Thanks for all the help I've got here.
Regards,
MerjaS
I'll see to possibilities to update our Mantis to the latest version, as soon as we can.
Until then, the only way seems to be to manually change the level of our new accountants, to become Mantis reporters.
Thanks for all the help I've got here.
Regards,
MerjaS
___________________
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
Re: Need help with determinig the role of the user
yeah I confirm that this feature works just fine in 1.2.3
I have started with 1.2.2 so have no experience with prior versions
I have started with 1.2.2 so have no experience with prior versions
Re: Need help with determinig the role of the user
Hi all!
We have now updated Mantis to 1.2.4, but still having problems with making a new user a reporter,
when the account is made through our (Drupal based) site.
Maybe there is something wrong with my installation? Anyone else had similar problems? Please, comment.
And, in addition to this, the Mantis => Manage Users page says that the latest accounts (new users who have signed up at our Drupal based site yesterday) are created in 1970... It's starting to seem like Life on Mars to me...
Kind regards,
MerjaS
We have now updated Mantis to 1.2.4, but still having problems with making a new user a reporter,
when the account is made through our (Drupal based) site.
Maybe there is something wrong with my installation? Anyone else had similar problems? Please, comment.
And, in addition to this, the Mantis => Manage Users page says that the latest accounts (new users who have signed up at our Drupal based site yesterday) are created in 1970... It's starting to seem like Life on Mars to me...
Kind regards,
MerjaS
___________________
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
http://www.gurux.org
MantisBT Version 1.2.4 (Schema Version 183 )
Drupal 6.20
MySQL 5.0.77
PHP 5.2.8
Web server Microsoft-IIS/7.0
Re: Need help with determinig the role of the user
I had a short look at the Bugbits sourcecode.
The way a user is created is for MantisBT 1.1.x and not 1.2.x (this is the reason for 1970)
Furthermore the setting of $g_default_new_account_access_level is ignored and hardcoded to viewer.
The way a user is created is for MantisBT 1.1.x and not 1.2.x (this is the reason for 1970)
Furthermore the setting of $g_default_new_account_access_level is ignored and hardcoded to viewer.