sokalsondha Posted May 6, 2018 Share Posted May 6, 2018 hello community i am using the latest whmcs v7 and i want my clients logout from the portal and then it will be redirect to the login page again. i mean i dont want they will see again the index.php file which is home page for SIX template i found a tpl file which name logout.tpl can some please help me with the correct code i need to modify also just to added my whmcs is in the main public_html there is no sub folder like http://yourdomainname.com/whmcs i dont have like this my whmcs is in http://yourdomainname.com thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
inteldigital Posted May 7, 2018 Share Posted May 7, 2018 Hello @sokalsondha, I believe this thread may be of some use to you: Logout Redirection 0 Quote Link to comment Share on other sites More sharing options...
dansk Posted July 22, 2018 Share Posted July 22, 2018 Hello @sokalsondha, Maybe this will help. Go to /templates/yourtemplate/logout.tpl and replace this code: <div class="main-content"> <p class="text-center"> <a href="index.php" class="btn btn-default">{$LANG.logoutcontinuetext}</a> </p> </div> with this code: <div class="main-content"> <p class="text-center"> <a href="clientarea.php" class="btn btn-default">{$LANG.logoutcontinuetext}</a> </p> </div> Cheers 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 22, 2018 Share Posted July 22, 2018 5 hours ago, dansk said: Go to /templates/yourtemplate/logout.tpl and replace this code: it would be better to use a ClientLogout hook to avoid repeatedly having to edit the template after an update - which is what I gave @sokalsondha on the day he posted. 1 Quote Link to comment Share on other sites More sharing options...
Hickman.io Posted October 20, 2020 Share Posted October 20, 2020 On 7/22/2018 at 12:49 AM, dansk said: Hello @sokalsondha, Maybe this will help. Go to /templates/yourtemplate/logout.tpl and replace this code: <div class="main-content"> <p class="text-center"> <a href="index.php" class="btn btn-default">{$LANG.logoutcontinuetext}</a> </p> </div> with this code: <div class="main-content"> <p class="text-center"> <a href="https://www.hickman.io/" class="btn btn-default">{$LANG.logoutcontinuetext}</a> </p> </div> Cheers I am using a modified version where i'm trying to redirect to "another website", from my subdomain to the root domain. I made the change, but for some reason it keeps going to the index file. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2020 Share Posted October 21, 2020 if this were v8 and you needed to use a hook to redirect on logout, the ClientLogout hook point no longer exists, so it's UserLogout... 0 Quote Link to comment Share on other sites More sharing options...
Hickman.io Posted October 21, 2020 Share Posted October 21, 2020 Okay, where should i place this hook? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2020 Share Posted October 21, 2020 9 minutes ago, Hickman.io said: Okay, where should i place this hook? /includes/hooks 0 Quote Link to comment Share on other sites More sharing options...
Hickman.io Posted October 21, 2020 Share Posted October 21, 2020 Okay, and do I just create a new .php file or is there one I need to add it to? 2 minutes ago, brian! said: /includes/hooks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2020 Share Posted October 21, 2020 5 minutes ago, Hickman.io said: Okay, and do I just create a new .php file or is there one I need to add it to? create a new .php file, paste the above code into it, save and it should work immediately. 0 Quote Link to comment Share on other sites More sharing options...
nadia_am Posted October 14, 2021 Share Posted October 14, 2021 @brian this hook will be fire befor logging user out, i am searching for a hook which will be fire after logout happened! can you help me? 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.