Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
cisco007
BBCoder VI
Posts: 1015 Joined: 16 Mar 2010, 18:14
Location: Don't really know!
Post
by cisco007 » 21 Apr 2010, 20:03
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);
}
Stoker
Site Admin
Posts: 3536 Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:
Post
by Stoker » 21 Apr 2010, 20:37
Thanks, I hate to wait when hitting ACP
Board rules! No PM support
cisco007
BBCoder VI
Posts: 1015 Joined: 16 Mar 2010, 18:14
Location: Don't really know!
Post
by cisco007 » 21 Apr 2010, 20:41
yeah, this is just about the first thing i add to a new board!
Fire-Fox
BBCoder IV
Posts: 275 Joined: 22 Mar 2010, 13:24
Location: Denmark
Post
by Fire-Fox » 21 Apr 2010, 22:16
Thanks..
Very handy
Inner Circle
BBCoder III
Posts: 107 Joined: 20 Mar 2010, 20:25
Location: Germany
Contact:
Post
by Inner Circle » 22 Apr 2010, 01:17
Thanks for the snippet!
Saves a lot of time!
cisco007
BBCoder VI
Posts: 1015 Joined: 16 Mar 2010, 18:14
Location: Don't really know!
Post
by cisco007 » 22 Apr 2010, 02:17
yeah, all these redirection snippets save a lot of time!
Huchinotte
BBCoder I
Posts: 3 Joined: 09 Mar 2010, 08:17
Post
by Huchinotte » 22 Apr 2010, 07:29
Yeah wonderfull .......... thanks for this snippet
Huch
neptune
BBCoder II
Posts: 35 Joined: 09 Mar 2010, 12:23
Post
by neptune » 22 Apr 2010, 09:54
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.
Inner Circle
BBCoder III
Posts: 107 Joined: 20 Mar 2010, 20:25
Location: Germany
Contact:
Post
by Inner Circle » 22 Apr 2010, 15:03
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
Posts: 1015 Joined: 16 Mar 2010, 18:14
Location: Don't really know!
Post
by cisco007 » 22 Apr 2010, 18:56
yes, it will work, i have two redirects before that code and they work great!