Return to Inbox

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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>');
Board rules! No PM support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Return to Inbox

Post by cisco007 »

another great snippet Stoker!
User avatar
neptune
BBCoder II
BBCoder II
Posts: 35
Joined: 09 Mar 2010, 12:23

Re: Return to Inbox

Post by neptune »

nice snippet, thx
Image
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

Re: Return to Inbox

Post by Oliver »

I think this did not change anything?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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!
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 11:55

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, 17:17, edited 2 times in total.
Locked