Return to Inbox

Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets

Return to Inbox

Post 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

Post by cisco007 »

another great snippet Stoker!

Re: Return to Inbox

Post by neptune »

nice snippet, thx

Re: Return to Inbox

Post by Oliver »

I think this did not change anything?

Re: Return to Inbox

Post 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

Post 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?
Last edited by Oliver on 12 May 2010, 15:17, edited 2 times in total.