Page 1 of 1
Portal.php
Posted: 31. October 2014 10:49
by computerhavok
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.
Re: Portal.php
Posted: 1. November 2014 17:46
by Kirk
Hi
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"));
Relace with:
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"));
Re: Portal.php
Posted: 2. November 2014 11:10
by Marc
Moved to the correct forum.
Re: Portal.php
Posted: 23. January 2016 01:45
by HoodieWeather
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
Re: Portal.php
Posted: 23. January 2016 13:37
by talonos
yes they are but they are for the old version so these edits won't work in current or future versions.
Re: Portal.php
Posted: 26. January 2016 07:27
by HoodieWeather
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