Code: Select all
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length, &$max_vote, &$hide_vote, &$undo_vote, &$was_a_draft, &$save_as_draft)
Code: Select all
setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
Code: Select all
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
header ('Expires: 0');
header ('Pragma: no-cache');
RexxCrow wrote: Missing argument 24 and 25 for submit_post in functions_post.php line 204
Code: Select all
functions submit_post(...
also am getting modify header errors for functions_post.php:204 for 4 different lines in that file.
RexxCrow wrote: BTW, where can I find the attachment MOD of this at? I have been UTL so far.
drichardson wrote: When i save a post as a draft or delete a draft, it takes me to a blank page with myurl.com/posting.php in the address bar, so i'm guessing the redirects are not working properly.
The posts are saved and i can go and retrieve them later in the {SEARCH_SELF} page, but i can't see why it's coming up with a blank page.
Code: Select all
#
#-----[ FIND ]------------------------------------------------
#
message_die(GENERAL_MESSAGE, $return_message);
}
#
#-----[ AFTER, ADD ]------------------------------------------------
#
// start mod save draft posts...since the previous block of code excludes the case where user is saving as draft or there is a deletion of something that was just a draft,
// and in that case skipps the update_stats function that otherwise would do an END_TRANSACTION sql query, this next block does a meaningless END_TRANSACTION query
// and tells the script where to return in that case
if ( $error_msg == '' && $save_as_draft || ($mode == 'delete' && $was_a_draft) )
{
$sql = "DROP TABLE IF EXISTS temporary_table";
if (!$db->sql_query($sql, END_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
$redirect = "index.$phpEx?";
redirect(append_sid($redirect, true) . $post_append);
$template->assign_vars(array(
'META' => $return_meta)
);
message_die(GENERAL_MESSAGE, $return_message);
}
// end mod save draft posts
drichardson wrote: Little tip for other users, there must be no spaces or characters before the <? or after the ?> in your php files![]()
End of a Shadow wrote: By chance can you provide a mirror download of this version or if not email it to me...