Return to Inbox
Posted: 13 Apr 2010, 07:23
Return to Inbox
Written by Stoker
When you send a pm you will see a confirmation screen that tells you that your message has been sent and then you get redirectet to the message you just sent.
We are going to change this to be more like an email client where you get "redirectet" to the inbox instead.
Open includes/ucp/ucp_pm_compose.php
Find:
Replace with:
Find:
Replace with:
Find:
Replace with:
Written by Stoker
When you send a pm you will see a confirmation screen that tells you that your message has been sent and then you get redirectet to the message you just sent.
We are going to change this to be more like an email client where you get "redirectet" to the inbox instead.
Open includes/ucp/ucp_pm_compose.php
Find:
Code: Select all
$return_folder_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=outbox');
Code: Select all
$return_folder_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox');
Code: Select all
meta_refresh(3, $return_message_url);
Code: Select all
meta_refresh(3, $return_folder_url);
Code: Select all
$message = $user->lang['MESSAGE_STORED'] . '<br /><br />' . sprintf($user->lang['VIEW_PRIVATE_MESSAGE'], '<a href="' . $return_message_url . '">', '</a>') . '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . $return_folder_url . '">', '</a>', $user->lang['PM_OUTBOX']);
Code: Select all
$message = $user->lang['MESSAGE_STORED'] . '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . $return_folder_url . '">', '</a>', $user->lang['PM_INBOX']) . '<br /><br />' . sprintf($user->lang['VIEW_PRIVATE_MESSAGE'], '<a href="' . $return_message_url . '">', '</a>');