ACP redirect

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

ACP redirect

Post by cisco007 »

This will instantly redirect you to your ACP after logging into your ACP
AUTHOR: EY

open includes/functions.php

Find:

Code: Select all

meta_refresh(3, $redirect);
      trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
Add before:

Code: Select all

  if ($admin)
      {
      redirect($redirect);
      }
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: ACP redirection

Post by Stoker »

Thanks, I hate to wait when hitting ACP
Board rules! No PM support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: ACP redirection

Post by cisco007 »

yeah, this is just about the first thing i add to a new board!
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: ACP redirection

Post by Fire-Fox »

Thanks..

Very handy :)
User avatar
Inner Circle
BBCoder III
BBCoder III
Posts: 107
Joined: 20 Mar 2010, 20:25
Location: Germany
Contact:

Re: ACP redirection

Post by Inner Circle »

Thanks for the snippet!

Saves a lot of time!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: ACP redirection

Post by cisco007 »

yeah, all these redirection snippets save a lot of time!
Huchinotte
BBCoder I
BBCoder I
Posts: 3
Joined: 09 Mar 2010, 08:17

Re: ACP redirection

Post by Huchinotte »

Yeah wonderfull .......... thanks for this snippet

Huch
User avatar
neptune
BBCoder II
BBCoder II
Posts: 35
Joined: 09 Mar 2010, 12:23

Re: ACP redirection

Post by neptune »

the 1st edit by one of my boards looks so, can i make the edit?

Code: Select all

$redirect = meta_refresh(3, $redirect);
			trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
thx
Last edited by neptune on 22 Apr 2010, 12:16, edited 1 time in total.
Image
User avatar
Inner Circle
BBCoder III
BBCoder III
Posts: 107
Joined: 20 Mar 2010, 20:25
Location: Germany
Contact:

Re: ACP redirection

Post by Inner Circle »

neptune » 22 Apr 2010, 09:54 wrote:the 1st edit by one of my boards looks so, can i make the edit?

Code: Select all

$redirect = meta_refresh(3, $redirect);
			trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
thx
it works too ( have the same code and tested it )
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: ACP redirection

Post by cisco007 »

yes, it will work, i have two redirects before that code and they work great!
Locked