Dhush Posted October 21, 2016 Share Posted October 21, 2016 Hi, Is there a way to stop accessing admin index page from my staffs. I don't want them to know the status of my system, so can set alternate page or some thing else. I know i can do this in role settings, but there is noway to hide side bar. I want everything to hide on my index. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 21, 2016 Share Posted October 21, 2016 Hi Dhush, Turning off Main HomePage and Side Bar statistics in the roles is probably the best bet, this will then redirect users to the support homepage 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 21, 2016 Share Posted October 21, 2016 +1 Chris suggestion, also you redirect admins to specific page if they enter Homepage or once they logged in 0 Quote Link to comment Share on other sites More sharing options...
Dhush Posted October 25, 2016 Author Share Posted October 25, 2016 @sentq, how can i redirect admin to specific page after login? @chris, here is my settings on demo account, but still side bar is showing upon admin login. Thanks for help. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 25, 2016 Share Posted October 25, 2016 Hi Dhush, Could you please re-take those settings on a desktop/laptop so we can see them in full 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 25, 2016 Share Posted October 25, 2016 @sentq, how can i redirect admin to specific page after login? create new file in /includes/hooks/ folder, name it "adminlogin.php", and put the following code inside it: <?php add_hook("AdminLogin", 1, function($vars){ $adminIDs = array(1, 3, 4); $redirectTo = "reports.php"; # Check For Specific Admin IDs if (in_array($vars['adminid'], $adminIDs)){ # Now Redirect header("Location: ".$redirectTo); } }); $adminIDs has list of admin IDs, if logged-in admin is one of those, then he will be redirected to the URL specified in $redirectTo 0 Quote Link to comment Share on other sites More sharing options...
Dhush Posted October 26, 2016 Author Share Posted October 26, 2016 @ Chris, attached for your ref. 0 Quote Link to comment Share on other sites More sharing options...
Dhush Posted October 29, 2016 Author Share Posted October 29, 2016 Hi, Any update. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 29, 2016 Share Posted October 29, 2016 Hi Dhush, That sidebar menu will remain, however if a user clicks on any of them they will get the access denied message. Based on the permissions sets you've provided they are going to get access to the Addon Module dropdown and nothing else in WHMCS. 0 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.