############################################################## ## MOD Title: Update for Chronicles ## MOD Author: niksa < finniksawot@hotmail.com > http://www.uigamers.org ## MOD Author: Kail (Jakob Persson) http://www.jakob-persson.com/ ## MOD Description: This is an update file that takes Chronicles from 2.0.2 to 2.0.19. ## This can technically be used for any other template, minor changes ## may be required since this is tailored for Chronicles. ## MOD Version: 1.0.1 ## ## Installation Level: Intermediate ## Installation Time: 30 Minutes (1 minute with EasyMOD) ## ## Files To Edit (10): ## templates/Chronicles/index_body.tpl ## templates/Chronicles/login_body.tpl ## templates/Chronicles/memberlist_body.tpl ## templates/Chronicles/simple_footer.tpl ## templates/Chronicles/profile_view_body.tpl ## templates/Chronicles/profile_add_body.tpl ## templates/Chronicles/privmsgs_read_body.tpl ## templates/Chronicles/posting_body.tpl ## templates/Chronicles/overall_header.tpl ## templates/Chronicles/admin/page_header.tpl ## ## Files To Overwrite (16): ## templates/Chronicles/admin/board_config_body.tpl ## templates/Chronicles/admin/category_edit_body.tpl ## templates/Chronicles/admin/db_utils_backup_body.tpl ## templates/Chronicles/admin/disallow_body.tpl ## templates/Chronicles/admin/forum_admin_body.tpl ## templates/Chronicles/admin/group_edit_body.tpl ## templates/Chronicles/admin/index_body.tpl ## templates/Chronicles/admin/index_frameset.tpl ## templates/Chronicles/admin/ranks_list_body.tpl ## templates/Chronicles/admin/smile_edit_body.tpl ## templates/Chronicles/admin/styles_addnew_body.tpl ## templates/Chronicles/admin/styles_edit_body.tpl ## templates/Chronicles/admin/styles_list_body.tpl ## templates/Chronicles/admin/user_ban_body.tpl ## templates/Chronicles/admin/user_edit_body.tpl ## templates/Chronicles/admin/words_edit_body.tpl ## ## Included files: 0 ## ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ## I didn't make Chronicles! That was Kail. All questions, comments etc about Chronicles ## should be directed to Kail. I just made an upgrade script, that's all! :) ## ############################################################## ## MOD History: ## 19 Feb 2006 - Version 1.0.1 ## - fixes a problem in posting_body.tpl & txtfocus(); ## (thanks Lord Alameda & Doomhammer!) ## - made DIY more clear, but EM will not recognize ## subSilver -> Chronicles COPY commands so ## it needs to be DIY (for now anyway) ## 08 Feb 2006 - Version 1.0.0 ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ DIY ]------------------------------------------ # *You need to copy the following files from your subSilver/admin/ folder to Chronicles/admin/ copy templates/subSilver/admin/board_config_body.tpl to templates/Chronicles/admin/board_config_body.tpl copy templates/subSilver/admin/category_edit_body.tpl to templates/Chronicles/admin/category_edit_body.tpl copy templates/subSilver/admin/db_utils_backup_body.tpl to templates/Chronicles/admin/db_utils_backup_body.tpl copy templates/subSilver/admin/disallow_body.tpl to templates/Chronicles/admin/disallow_body.tpl copy templates/subSilver/admin/forum_admin_body.tpl to templates/Chronicles/admin/forum_admin_body.tpl copy templates/subSilver/admin/group_edit_body.tpl to templates/Chronicles/admin/group_edit_body.tpl copy templates/subSilver/admin/index_body.tpl to templates/Chronicles/admin/index_body.tpl copy templates/subSilver/admin/index_frameset.tpl to templates/Chronicles/admin/index_frameset.tpl copy templates/subSilver/admin/ranks_list_body.tpl to templates/Chronicles/admin/ranks_list_body.tpl copy templates/subSilver/admin/smile_edit_body.tpl to templates/Chronicles/admin/smile_edit_body.tpl copy templates/subSilver/admin/styles_addnew_body.tpl to templates/Chronicles/admin/styles_addnew_body.tpl copy templates/subSilver/admin/styles_edit_body.tpl to templates/Chronicles/admin/styles_edit_body.tpl copy templates/subSilver/admin/styles_list_body.tpl to templates/Chronicles/admin/styles_list_body.tpl copy templates/subSilver/admin/user_ban_body.tpl to templates/Chronicles/admin/user_ban_body.tpl copy templates/subSilver/admin/user_edit_body.tpl to templates/Chronicles/admin/user_edit_body.tpl copy templates/subSilver/admin/words_edit_body.tpl to templates/Chronicles/admin/words_edit_body.tpl # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/index_body.tpl # #-----[ FIND ]--------------------------------------------- # {L_MARK_FORUMS_READ} # #-----[ REPLACE WITH ]--------------------------------------------- # {L_MARK_FORUMS_READ} # #-----[ FIND ]--------------------------------- # # #-----[ IN-LINE FIND ]--------------------------------- # name="password" size="10 # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # maxlength="32" # #-----[ FIND ]--------------------------------------------- #      {L_AUTO_LOGIN} # #-----[ BEFORE, ADD ]--------------------------------------------- # # #-----[ AFTER, ADD ]--------------------------------------------- # # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/login_body.tpl # #-----[ FIND ]--------------------------------- # # #-----[ IN-LINE FIND ]--------------------------------- # maxlength="25" # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # maxlength="32" # #-----[ FIND ]--------------------------------------------- # {L_AUTO_LOGIN}: # #-----[ BEFORE, ADD ]--------------------------------------------- # # #-----[ AFTER, ADD ]--------------------------------------------- # # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/memberlist_body.tpl # #-----[ FIND ]--------------------------------- #   # #-----[ IN-LINE FIND ]--------------------------------- # catbottom # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # catBottom # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/posting_body.tpl # #-----[ FIND ]--------------------------------- # // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); # #-----[ REPLACE WITH ]------------------------------------------ # // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_moz = 0; var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); # #-----[ FIND ]--------------------------------- # function emoticon(text) { text = ' ' + text + ' '; if (document.post.message.createTextRange && document.post.message.caretPos) { var caretPos = document.post.message.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; document.post.message.focus(); } else { document.post.message.value += text; document.post.message.focus(); } } # #-----[ REPLACE WITH ]------------------------------------------ # function emoticon(text) { var txtarea = document.post.message; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } # #-----[ FIND ]--------------------------------- # function bbfontstyle(bbopen, bbclose) { if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { document.post.message.value += bbopen + bbclose; document.post.message.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; document.post.message.focus(); return; } else { document.post.message.value += bbopen + bbclose; document.post.message.focus(); return; } storeCaret(document.post.message); } # #-----[ REPLACE WITH ]------------------------------------------ # function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.message; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); } # #-----[ FIND ]--------------------------------- # function bbstyle(bbnumber) { donotinsert = false; theSelection = false; bblast = 0; # #-----[ REPLACE WITH ]------------------------------------------ # function bbstyle(bbnumber) { var txtarea = document.post.message; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; # #-----[ FIND ]--------------------------------- # document.post.message.value += bbtags[butnumber + 1]; # #-----[ REPLACE WITH ]------------------------------------------ # txtarea.value += bbtags[butnumber + 1]; # #-----[ FIND ]--------------------------------- # document.post.message.focus(); # #-----[ REPLACE WITH ]------------------------------------------ # txtarea.focus(); # #-----[ FIND ]--------------------------------- # if ((clientVer >= 4) && is_ie && is_win) theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; document.post.message.focus(); theSelection = ''; return; } # #-----[ REPLACE WITH ]------------------------------------------ # if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } # #-----[ FIND ]--------------------------------- # document.post.message.value += bbtags[butnumber + 1]; # #-----[ REPLACE WITH ]------------------------------------------ # txtarea.value += bbtags[butnumber + 1]; # #-----[ FIND ]--------------------------------- # document.post.message.focus(); # #-----[ REPLACE WITH ]------------------------------------------ # txtarea.focus(); # #-----[ FIND ]--------------------------------- # document.post.message.value += bbtags[15]; # #-----[ REPLACE WITH ]------------------------------------------ # txtarea.value += bbtags[15]; # #-----[ FIND ]--------------------------------- # // Open tag document.post.message.value += bbtags[bbnumber]; # #-----[ REPLACE WITH ]------------------------------------------ # // Open tag txtarea.value += bbtags[bbnumber]; # #-----[ FIND ]--------------------------------- # document.post.message.focus(); # #-----[ REPLACE WITH ]------------------------------------------ # txtarea.focus(); # #-----[ FIND ]--------------------------------- # storeCaret(document.post.message); } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> # #-----[ REPLACE WITH ]------------------------------------------ # storeCaret(txtarea); } // From http://www.massless.org/mozedit/ function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; return; } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/privmsgs_read_body.tpl # #-----[ FIND ]--------------------------------- # if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 ) # #-----[ IN-LINE FIND ]--------------------------------- # navigator.userAgent.indexOf('5.') == -1 # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # && navigator.userAgent.indexOf('6.') == -1 # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/profile_add_body.tpl # #-----[ FIND ]--------------------------------- # {L_USERNAME}: * # #-----[ REPLACE WITH ]------------------------------------------ # {L_USERNAME}: * {USERNAME} {L_USERNAME}: * # #-----[ FIND ]--------------------------------- # # #-----[ IN-LINE FIND ]--------------------------------- # maxlength="100" # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # maxlength="32" # #-----[ FIND ]--------------------------------- # # #-----[ IN-LINE FIND ]--------------------------------- # maxlength="100" # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # maxlength="32" # #-----[ FIND ]--------------------------------- # {L_CONFIRM_PASSWORD}: *
{L_PASSWORD_CONFIRM_IF_CHANGED} # #-----[ IN-LINE FIND ]--------------------------------- # maxlength="100" # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # maxlength="32" # #-----[ AFTER, ADD ]--------------------------------- # {L_CONFIRM_CODE_IMPAIRED}

{CONFIRM_IMG}

{L_CONFIRM_CODE}: *
{L_CONFIRM_CODE_EXPLAIN} # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/profile_view_body.tpl # #-----[ FIND ]--------------------------------- # if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 ) # #-----[ IN-LINE FIND ]--------------------------------- # navigator.userAgent.indexOf('5.') == -1 # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # && navigator.userAgent.indexOf('6.') == -1 # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/overall_footer.tpl # #-----[ FIND ]--------------------------------- # Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
{TRANSLATION_INFO}
# #-----[ IN-LINE FIND ]--------------------------------- # phpBB {PHPBB_VERSION} © 2001 phpBB Group
{TRANSLATION_INFO} # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # phpBB © 2001, 2005 phpBB Group
{TRANSLATION_INFO} # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/simple_footer.tpl # #-----[ FIND ]--------------------------------- # Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group # #-----[ IN-LINE FIND ]--------------------------------- # phpBB {PHPBB_VERSION} © 2001 phpBB Group # #-----[ IN-LINE REPLACE WITH ]--------------------------------- # phpBB © 2001, 2005 phpBB Group # #-----[ OPEN ]------------------------------------------ # templates/Chronicles/admin/page_header.tpl # #-----[ FIND ]--------------------------------- # # #-----[ REPLACE WITH ]------------------------------------------ # # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM