Page 1 of 1

Return to Inbox

Posted: 13 Apr 2010, 07:23
by Stoker
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:

Code: Select all

$return_folder_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=outbox');
Replace with:

Code: Select all

$return_folder_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox');
Find:

Code: Select all

meta_refresh(3, $return_message_url);
Replace with:

Code: Select all

meta_refresh(3, $return_folder_url);
Find:

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']);
Replace with:

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>');

Re: Return to Inbox

Posted: 13 Apr 2010, 17:39
by cisco007
another great snippet Stoker!

Re: Return to Inbox

Posted: 23 Apr 2010, 15:11
by neptune
nice snippet, thx

Re: Return to Inbox

Posted: 12 May 2010, 13:15
by Oliver
I think this did not change anything?

Re: Return to Inbox

Posted: 12 May 2010, 17:03
by cisco007
if it did not changed anything, either you did not do the edits correctly or you do not know what it does!

Re: Return to Inbox

Posted: 12 May 2010, 17:16
by Oliver
I made the changes completely as the instructions said, but I did not notice any difference. I guess this is such a small installation, but it is not that noticeable.

When a message is sent as a message.

returns received folder.

show the message you send.

That all?