redirect login to app.php page

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
mark5228
Registered User
Posts: 58
Joined: Thu May 14, 2015 1:07 pm

redirect login to app.php page

Post by mark5228 » Sun Apr 29, 2018 7:53 am

hi i would like members to be redirected to a custom home page when there login in i have changed the htaccess file i just need to change the ucp.php now to change the login i think this is the code

Code: Select all

	case 'login':
		if ($user->data['is_registered'])
		{
			redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
		}

		login_box($request->variable('redirect', "index.$phpEx"));
	break;

	case 'login_link':
		if ($user->data['is_registered'])
		{
			redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
		}

		$module->load('ucp', 'login_link');
		$module->display($user->lang['UCP_LOGIN_LINK']);
	break;
The problem is this home page was created by a extension and is not in the root and so its has app.php before the title how do i apply this do i have to add the app.php part like

Code: Select all

			redirect(append_sid("{$phpbb_root_path}app.php/example.$phpEx"));
or do i change phpbb_root_path to point at the extension where the home page is, if anyone could help it would be very appreciated.

mark5228
Registered User
Posts: 58
Joined: Thu May 14, 2015 1:07 pm

Re: redirect login to app.php page

Post by mark5228 » Thu May 03, 2018 5:24 am

After a few days ive managed to redirect all logins and outs to a extension page if this helps anyone
My board is 3.2.2 and the extension page for all redirects is board3 portal

Make all edits from here
https://www.board3.de/viewtopic.php?f=7 ... gin#p36380

ps this topic is about a specific extension now and im not sure if the ucp.php & index_body.html edits would work for other extension pages so may be deleted

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: pikachuturkey and 3 guests