Your Portal Version: 2.0.2
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://twgs.afterhours-bbs.com/
PHP Version: 5.3
MySQL Version: MySQL 5.1.68-community
What have you done before the problem was there?
I installed AutoMod
What have you already tryed to solve the problem?
I did your Redirect to the portal after login / logout and that worked fine.
Description and Message
When I open a new browser window it still goes to index.php and not portal.php, what am I missing?
Thanks before hand.
Portal.php
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
-
Topic author - Active Member
- Posts: 1
- Joined: 31. October 2014 09:51
- phpBB.com User: computerhavok
Re: Portal.php
Hi
Open: root/ucp.php
Find:
Relace with:
Open: root/ucp.php
Find:
Code: Select all
case 'login':
if ($user->data['is_registered'])
{
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}
login_box(request_var('redirect', "index.$phpEx"));
break;
case 'logout':
if ($user->data['user_id'] != ANONYMOUS && isset($_GET['sid']) && !is_array($_GET['sid']) && $_GET['sid'] === $user->session_id)
{
$user->session_kill();
$user->session_begin();
$message = $user->lang['LOGOUT_REDIRECT'];
}
else
{
$message = ($user->data['user_id'] == ANONYMOUS) ? $user->lang['LOGOUT_REDIRECT'] : $user->lang['LOGOUT_FAILED'];
}
meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
Code: Select all
case 'login':
if ($user->data['is_registered'])
{
redirect(append_sid("{$phpbb_root_path}portal.$phpEx"));
}
login_box(request_var('redirect', "portal.$phpEx"));
break;
case 'logout':
if ($user->data['user_id'] != ANONYMOUS && isset($_GET['sid']) && !is_array($_GET['sid']) && $_GET['sid'] === $user->session_id)
{
$user->session_kill();
$user->session_begin();
$message = $user->lang['LOGOUT_REDIRECT'];
}
else
{
$message = ($user->data['user_id'] == ANONYMOUS) ? $user->lang['LOGOUT_REDIRECT'] : $user->lang['LOGOUT_FAILED'];
}
meta_refresh(3, append_sid("{$phpbb_root_path}portal.$phpEx"));
Gruß Udo
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Portal.php
Moved to the correct forum.
-
- Valued Contributor
- Posts: 66
- Joined: 10. December 2015 03:03
Re: Portal.php
Are those codes so that if a user logs into the forum it spits them the portal instead of the forum if so thanks
cause i have a dummy account and I log in and it shoots me to the forum and not the portal itself and i'm trying to find a way to stop that. I want users to be sent to portal not the forum instead
cause i have a dummy account and I log in and it shoots me to the forum and not the portal itself and i'm trying to find a way to stop that. I want users to be sent to portal not the forum instead
Re: Portal.php
yes they are but they are for the old version so these edits won't work in current or future versions.
Creating board3 website? check the sites out below for board3 compatible extensions
Talonos: Pretereo stormrage EU OFFLINE!
Talonos: Pretereo stormrage EU OFFLINE!
-
- Valued Contributor
- Posts: 66
- Joined: 10. December 2015 03:03
Re: Portal.php
talonos wrote:yes they are but they are for the old version so these edits won't work in current or future versions.
I'm running 2.0.2