waynemac Posted March 24, 2004 Posted March 24, 2004 Gidday, I seem to have lost part of my posting.php file in phpBB2. The bottom section is missing. I have tried to upload from orig file on my PC. Tried copy and paste of section but no go. This is what I have: *******Ummmm, posted here but most of posting gone******** Maybe computer paste function problem.....bugger. Disregard for now. Wayne Quote
waynemac Posted March 24, 2004 Author Posted March 24, 2004 Trying to add to my previous posting after computer restart... This is what I appear to be missing from my phpbb2 posting.php file: // // Output the data to the template // $template->assign_vars(array( 'USERNAME' => $username, 'SUBJECT' => $subject, 'MESSAGE' => $message, 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'L_SUBJECT' => $lang['Subject'], <-----From here---- 'L_MESSAGE_BODY' => $lang['Message_body'], 'L_OPTIONS' => $lang['Options'], 'L_PREVIEW' => $lang['Preview'], 'L_SPELLCHECK' => $lang['Spellcheck'], 'L_SUBMIT' => $lang['Submit'], 'L_CANCEL' => $lang['Cancel'], 'L_CONFIRM_DELETE' => $lang['Confirm_delete'], 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], 'L_NOTIFY_ON_REPLY' => $lang['Notify'], 'L_DELETE_POST' => $lang['Delete_post'], 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 'L_EMPTY_MESSAGE' => $lang['Empty_message'], 'L_FONT_COLOR' => $lang['Font_color'], 'L_COLOR_DEFAULT' => $lang['color_default'], 'L_COLOR_DARK_RED' => $lang['color_dark_red'], 'L_COLOR_RED' => $lang['color_red'], 'L_COLOR_ORANGE' => $lang['color_orange'], 'L_COLOR_BROWN' => $lang['color_brown'], 'L_COLOR_YELLOW' => $lang['color_yellow'], 'L_COLOR_GREEN' => $lang['color_green'], 'L_COLOR_OLIVE' => $lang['color_olive'], 'L_COLOR_CYAN' => $lang['color_cyan'], 'L_COLOR_BLUE' => $lang['color_blue'], 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], 'L_COLOR_INDIGO' => $lang['color_indigo'], 'L_COLOR_VIOLET' => $lang['color_violet'], 'L_COLOR_WHITE' => $lang['color_white'], 'L_COLOR_BLACK' => $lang['color_black'], 'L_FONT_SIZE' => $lang['Font_size'], 'L_FONT_TINY' => $lang['font_tiny'], 'L_FONT_SMALL' => $lang['font_small'], 'L_FONT_NORMAL' => $lang['font_normal'], 'L_FONT_LARGE' => $lang['font_large'], 'L_FONT_HUGE' => $lang['font_huge'], 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], 'L_STYLES_TIP' => $lang['Styles_tip'], 'U_VIEWTOPIC' => ( $mode == 'reply' ) ? append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postorder=desc") : '', 'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id") : '', 'S_HTML_CHECKED' => ( !$html_on ) ? 'checked="checked"' : '', 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? 'checked="checked"' : '', 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? 'checked="checked"' : '', 'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? 'checked="checked"' : '', 'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '', 'S_TYPE_TOGGLE' => $topic_type_toggle, 'S_TOPIC_ID' => $topic_id, 'S_POST_ACTION' => append_sid("posting.$phpEx"), 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields) ); // // Poll entry switch/output // if( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['edit_poll']) ) && $is_auth['auth_pollcreate'] ) { $template->assign_vars(array( 'L_ADD_A_POLL' => $lang['Add_poll'], 'L_ADD_POLL_EXPLAIN' => $lang['Add_poll_explain'], 'L_POLL_QUESTION' => $lang['Poll_question'], 'L_POLL_OPTION' => $lang['Poll_option'], 'L_ADD_OPTION' => $lang['Add_option'], 'L_UPDATE_OPTION' => $lang['Update'], 'L_DELETE_OPTION' => $lang['Delete'], 'L_POLL_LENGTH' => $lang['Poll_for'], 'L_DAYS' => $lang['Days'], 'L_POLL_LENGTH_EXPLAIN' => $lang['Poll_for_explain'], 'L_POLL_DELETE' => $lang['Delete_poll'], 'POLL_TITLE' => $poll_title, 'POLL_LENGTH' => $poll_length) ); if( $mode == 'editpost' && $post_data['edit_poll'] && $post_data['has_poll']) { $template->assign_block_vars('switch_poll_delete_toggle', array()); } if( !empty($poll_options) ) { while( list($option_id, $option_text) = each($poll_options) ) { $template->assign_block_vars('poll_option_rows', array( 'POLL_OPTION' => str_replace('"', '"', $option_text), 'S_POLL_OPTION_NUM' => $option_id) ); } } $template->assign_var_from_handle('POLLBOX', 'pollbody'); } // // Topic review // if( $mode == 'reply' && $is_auth['auth_read'] ) { require($phpbb_root_path . 'includes/topic_review.'.$phpEx); topic_review($topic_id, true); $template->assign_block_vars('switch_inline_mode', array()); $template->assign_var_from_handle('TOPIC_REVIEW_BOX', 'reviewbody'); } $template->pparse('body'); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?> Any ideas why end of file is missing, why I cant upload new file, why I cant copy/paste to the .php file? Wayne Quote
TCH-Bruce Posted March 24, 2004 Posted March 24, 2004 Not sure why it won't let you update it but here is something to try. Rename the file on the server and upload a new copy. Quote
waynemac Posted March 24, 2004 Author Posted March 24, 2004 Doug, thanx for your suggestion. I had the posting.php open and saved it. Then opened again to see any changes...part was missing. Then saved open file and reopened several times and parts kept disappearing...its getting smaller everytime I open and save. I copy/pasted to main file...uploaded/overwrite and still bottm part missing. This is wild. What to do???? Wayne Quote
borfast Posted March 25, 2004 Posted March 25, 2004 Wayne, try deleting the file from the server and uploading it again from your computer. Sometimes I have a problem with some files not being updated through FTP but to be honest, I'm not sure if it's a problem with the server - not at TCH, unfortunately - or if it's just my FTP client that thinks the file is up-to-date and skips it. But the workaround I came up with is deleting the file from the server and uploading it again. Quote
waynemac Posted March 25, 2004 Author Posted March 25, 2004 Raul, thanx for your posting. I have done everything...deleted, emptied trash and uploaded. Have overwritten. Have deleted contents of file and copy/pasted. But no good. I put in a ticket and got reply that they upgraded my cpanel. I then tried all I know again but no luck. Have even restarted computer, turned off/on modem...no luck. The file I am using on my desktop is complete. Have copy/pasted it into another text doc and its complete. Seems that there is a restriction to the length of the .php file length. When I open the server posting.php and try and copy and paste I get a no go beep. I even add space with return and add above there but no luck. Have sent posting.php to helpdesk and asked them to add it for me. Am worried that if I edit other files they may be eaten too. Heeeeelllllppppppp someone...all will be well. Wayne Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.