Jump to content

logout redirect to login


Recommended Posts

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

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

  • 2 years later...
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.

Link to comment
Share on other sites

  • 11 months later...
  • 4 years later...

I am using the same hook

<?php
add_hook('UserLogout', 1, function($vars) {
    header('Location: https://different.domain.com');
    exit;
});

in v9, but it does not work. I also tried with an internal redirect (header('Location: clientarea.php');). Did anything change about how this works in v9? No matter what I do here, I always get redirected to the index.php.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated