treygeboy Posted January 21, 2017 Report Share Posted January 21, 2017 Hello, everyone I have pilot manager (not sure which one) but when I got it my web master asked if I wanted the people that are marked as "retired or inactive" to allow them to log in. I said no however I do want them to be able to log in now. Is there any way i could change that? Thanks!! Quote Link to comment Share on other sites More sharing options...
web541 Posted January 21, 2017 Report Share Posted January 21, 2017 (edited) Check to see if this is in your core/local.config.php file (if not, then try app.config.php) /* These are pilot statuses which can be selected in the admin panel. I would be weary of changing these! Though you can safely change the name or messages or tweak the additional settings provided */ Config::Set('PILOT_STATUS_TYPES', array( /* DO NOT CHANGE THIS ACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 0 => array( 'name' => 'Active', # The title to show in the dropdown 'message' => '', # Message to show if they can't login (below is false) 'default' => true, # Should this be their default status? 'canlogin' => true, # Are they allowed to log in 'active' => true, # Are they an active pilot? 'autoretire' => false, # Use this status for the auto-retire functionality 'group_add' => array( # ID or name of the group this user is added to with this status 'Active Pilots', ), 'group_remove' => array( # ID or name of the groups this user is removed from with this status 'Inactive Pilots', ), ), /* DO NOT CHANGE THIS INACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 1 => array( 'name' => 'Inactive', 'message' => 'Your account was marked inactive', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 2 => array( 'name' => 'Banned', 'message' => 'Your account is banned, please contact an admin!', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 3 => array( 'name' => 'On Leave', 'message' => 'You have been marked as on leave', 'default' => false, 'canlogin' => true, 'active' => false, 'autoretire' => true, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), )); And replace your block with that one and it shouldn't allow active and banned pilots to log in. Edited January 21, 2017 by web541 Quote Link to comment Share on other sites More sharing options...
treygeboy Posted January 21, 2017 Author Report Share Posted January 21, 2017 1 minute ago, web541 said: Check to see if this is in your core/local.config.php file (if not, then try app.config.php) /* These are pilot statuses which can be selected in the admin panel. I would be weary of changing these! Though you can safely change the name or messages or tweak the additional settings provided */ Config::Set('PILOT_STATUS_TYPES', array( /* DO NOT CHANGE THIS ACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 0 => array( 'name' => 'Active', # The title to show in the dropdown 'message' => '', # Message to show if they can't login (below is false) 'default' => true, # Should this be their default status? 'canlogin' => true, # Are they allowed to log in 'active' => true, # Are they an active pilot? 'autoretire' => false, # Use this status for the auto-retire functionality 'group_add' => array( # ID or name of the group this user is added to with this status 'Active Pilots', ), 'group_remove' => array( # ID or name of the groups this user is removed from with this status 'Inactive Pilots', ), ), /* DO NOT CHANGE THIS INACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 1 => array( 'name' => 'Inactive', 'message' => 'Your account was marked inactive', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 2 => array( 'name' => 'Banned', 'message' => 'Your account is banned, please contact an admin!', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 3 => array( 'name' => 'On Leave', 'message' => 'You have been marked as on leave', 'default' => false, 'canlogin' => true, 'active' => false, 'autoretire' => true, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), )); And replace your block with that one and it shouldn't allow active and banned pilots to log in. Ok thano you I will look!! Quote Link to comment Share on other sites More sharing options...
treygeboy Posted January 21, 2017 Author Report Share Posted January 21, 2017 8 minutes ago, web541 said: Check to see if this is in your core/local.config.php file (if not, then try app.config.php) /* These are pilot statuses which can be selected in the admin panel. I would be weary of changing these! Though you can safely change the name or messages or tweak the additional settings provided */ Config::Set('PILOT_STATUS_TYPES', array( /* DO NOT CHANGE THIS ACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 0 => array( 'name' => 'Active', # The title to show in the dropdown 'message' => '', # Message to show if they can't login (below is false) 'default' => true, # Should this be their default status? 'canlogin' => true, # Are they allowed to log in 'active' => true, # Are they an active pilot? 'autoretire' => false, # Use this status for the auto-retire functionality 'group_add' => array( # ID or name of the group this user is added to with this status 'Active Pilots', ), 'group_remove' => array( # ID or name of the groups this user is removed from with this status 'Inactive Pilots', ), ), /* DO NOT CHANGE THIS INACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 1 => array( 'name' => 'Inactive', 'message' => 'Your account was marked inactive', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 2 => array( 'name' => 'Banned', 'message' => 'Your account is banned, please contact an admin!', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 3 => array( 'name' => 'On Leave', 'message' => 'You have been marked as on leave', 'default' => false, 'canlogin' => true, 'active' => false, 'autoretire' => true, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), )); And replace your block with that one and it shouldn't allow active and banned pilots to log in. Where should I change to start true to allow them to log in... which area? Quote Link to comment Share on other sites More sharing options...
treygeboy Posted January 22, 2017 Author Report Share Posted January 22, 2017 4 hours ago, web541 said: Check to see if this is in your core/local.config.php file (if not, then try app.config.php) /* These are pilot statuses which can be selected in the admin panel. I would be weary of changing these! Though you can safely change the name or messages or tweak the additional settings provided */ Config::Set('PILOT_STATUS_TYPES', array( /* DO NOT CHANGE THIS ACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 0 => array( 'name' => 'Active', # The title to show in the dropdown 'message' => '', # Message to show if they can't login (below is false) 'default' => true, # Should this be their default status? 'canlogin' => true, # Are they allowed to log in 'active' => true, # Are they an active pilot? 'autoretire' => false, # Use this status for the auto-retire functionality 'group_add' => array( # ID or name of the group this user is added to with this status 'Active Pilots', ), 'group_remove' => array( # ID or name of the groups this user is removed from with this status 'Inactive Pilots', ), ), /* DO NOT CHANGE THIS INACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */ 1 => array( 'name' => 'Inactive', 'message' => 'Your account was marked inactive', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 2 => array( 'name' => 'Banned', 'message' => 'Your account is banned, please contact an admin!', 'default' => false, 'canlogin' => false, 'active' => false, 'autoretire' => false, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), 3 => array( 'name' => 'On Leave', 'message' => 'You have been marked as on leave', 'default' => false, 'canlogin' => true, 'active' => false, 'autoretire' => true, 'group_add' => array( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), )); And replace your block with that one and it shouldn't allow active and banned pilots to log in. Ok I got it it was in app.config.php thank you very much very helpful!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.