NicksNet wrote:but a suggestion i have...
if i save a draft, is there a possibility to redirect (or link) after saving to the post (so that i can create this post) because now i will redirected to the forum, not to the site where i create a topic/post
When a user saves a draft, this mod gives him a choice to go to the forum where the post was made OR to go back to the place where the drafts are. If the user does nothing for 3 seconds he automatically gets redirected to the forum. But if you want to change that so that if the user does nothing he goes to the place where the drafts are, you can do this:
Code: Select all
OPEN
includes/functions_save_full_drafts.php
FIND
$redirect_url = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $data['forum_id']);
meta_refresh(3, $redirect_url);
$message = ($mode == 'save') ? $user->lang['DRAFT_SAVED'] : $user->lang['DRAFT_DELETED'];
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . $redirect_url . '">', '</a>');
$message .= '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&mode=drafts') . '">', '</a>', $user->lang['UCP_MAIN_DRAFTS']);
REPLACE WITH
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&mode=drafts');
meta_refresh(3, $redirect_url);
$message = ($mode == 'save') ? $user->lang['DRAFT_SAVED'] : $user->lang['DRAFT_DELETED'];
$message .= '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . $redirect_url . '">', '</a>', $user->lang['UCP_MAIN_DRAFTS']);
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $data['forum_id']) . '">', '</a>');
FIND
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox');
meta_refresh(3, $redirect_url);
$message = $user->lang['DRAFT_SAVED'];
$message .= '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . $redirect_url . '">', '</a>', $user->lang['PM_INBOX']);
$message .= '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=drafts') . '">', '</a>', $user->lang['UCP_MAIN_DRAFTS']);
REPLACE WITH
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=drafts');
meta_refresh(3, $redirect_url);
$message = $user->lang['DRAFT_SAVED'];
$message .= '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . $redirect_url . '">', '</a>', $user->lang['UCP_MAIN_DRAFTS']);
$message .= '<br /><br />' . sprintf($user->lang['CLICK_RETURN_FOLDER'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox') . '">', '</a>', $user->lang['PM_INBOX']);
I haven't tried this but it should do it or at least it should be close. Let me know if this is what you were looking for and if it works.