Jump to content

Redirect on logout


DJ Homer

Recommended Posts

hi all, im wondering is there a way that i can redirect someone to a different page when they logout??

 

(e.g. user logs out from client area "http://www.host-the-most.co.uk/client/clientarea.php" and instead of going to "http://www.host-the-most.co.uk/client/logout.php" they go to "http://www.host-the-most.co.uk/")

 

is this possible??

Link to comment
Share on other sites

Not quite, but you can edit the logout.tpl file and change the URL clients are taken to.

ok thanks ill have a go at this now

 

You could also write a small addon using the "ClientLogout" action hook.

i wouldnt know where to start or what to do

 

Add the following code in your header.tpl file

 

{if !$loggedin && $filename eq "logout" } 
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.host-the-most.co.uk/">
{/if}

 

I hope it will work :)

wouldnt this just add another logout button?

 

ill try the method that John gave and see how that goes...

ill let you all know how i get on

thanks all :-)

Link to comment
Share on other sites

Add the following code in your header.tpl file

 

{if !$loggedin && $filename eq "logout" } 


<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.host-the-most.co.uk/">

{/if}

 

I hope it will work :)

 

thanks i used the code above and it works fantastic

thanks all for your help :-)

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