Recent Topics

1 Jun 28, 2010 15:07    

My b2evolution Version: Not Entered

what's the quickest and least dirtiest way to change the logout redirect url ? i dont want users to redirect to the blog, but redirect to login page instead.

2 Jun 28, 2010 18:02

/htsrv/login.php :

switch( $action )
{
	case 'logout':
		logout();          // logout $Session and set $current_User = NULL

		// TODO: to give the user feedback through Messages, we would need to start a new $Session here and append $Messages to it.

		header_nocache();
		header_redirect($htsrv_url.'login.php'); // defaults to redirect_to param and exits
		/* exited */
		break;

¥

3 Jun 29, 2010 00:42

¥åßßå wrote:

/htsrv/login.php :

switch( $action )
{
	case 'logout':
		logout();          // logout $Session and set $current_User = NULL

		// TODO: to give the user feedback through Messages, we would need to start a new $Session here and append $Messages to it.

		header_nocache();
		header_redirect($htsrv_url.'login.php'); // defaults to redirect_to param and exits
		/* exited */
		break;

¥

pretty sure that works, will try that tomorrow, thanks..

4 Jun 29, 2010 10:05

yep it does redirect to login page when you log out, however after when you log in from there, you dont get redirected back in... it just says," you are already logged in..."

what do we add after this to redirect it to blogs like it does when you normally log in ?

		header_redirect($htsrv_url.'login.php'.'?redirect_to='.$blog_url); 

or sth like that ?

5 Jun 29, 2010 17:51

skins_admin/login/_logion_form.main.php

	$Form->hidden( 'redirect_to', url_rel_to_same_host($redirect_to, $htsrv_url_sensitive) );

Change $redirect_to to $baseurl

¥


Form is loading...