diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 74654dd197..c530328658 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -384,7 +384,7 @@ function tz_select($default = '') { if (is_numeric($offset)) { - $selected = ($offset === $default) ? ' selected="selected"' : ''; + $selected = ($offset == $default) ? ' selected="selected"' : ''; $tz_select .= ''; } } diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index aaeb16d76d..b12e131d3f 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -209,12 +209,12 @@ class userdata extends user if ($config['require_activation'] == USER_ACTIVATION_NONE) { - set_config('newest_user_id', $userdata['user_id']); + set_config('newest_user_id', $user_id); set_config('newest_username', $userdata['username']); set_config('num_users', $config['num_users'] + 1, TRUE); } unset($userdata); - + return $message; } diff --git a/phpBB/install/schemas/mysql_basic.sql b/phpBB/install/schemas/mysql_basic.sql index d863d1871a..6a6721613a 100644 --- a/phpBB/install/schemas/mysql_basic.sql +++ b/phpBB/install/schemas/mysql_basic.sql @@ -337,8 +337,12 @@ INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, disp INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/exclaim.gif', 19, 19, 7, 1); # -- ucp modules -INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (1, 'Profile Settings', 'ucp/usercp_profile', 1); -INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (2, 'Black/While Lists', 'ucp/usercp_lists', 2); +INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (1, 'MAIN', 'main', 1); +INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (2, 'PROFILE', 'profile', 2); +INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (3, 'PREFERENCES', 'prefs', 3); +INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (4, 'MESSAGING', 'pm', 4); +INSERT INTO phpbb_ucp_modules (module_id, module_name, module_filename, module_order) VALUES (5, 'LISTS', 'zebra', 5); + # -- wordlist INSERT INTO phpbb_search_wordlist (word_id, word_text, word_common) VALUES ( 1, 'example', 0 ); diff --git a/phpBB/language/en/lang_main.php b/phpBB/language/en/lang_main.php index f618bc9f64..f73c482d17 100644 --- a/phpBB/language/en/lang_main.php +++ b/phpBB/language/en/lang_main.php @@ -95,11 +95,13 @@ $lang = array( 'VIEW_LATEST_POST' => 'View latest post', 'VIEW_NEWEST_POST' => 'View newest post', 'PAGE_OF' => 'Page %1$d of %2$d', - 'ICQ' => 'ICQ Number', - 'AIM' => 'AIM Address', - 'MSNM' => 'MSN Messenger', - 'YIM' => 'Yahoo Messenger', + + 'ICQ' => 'ICQ', + 'AIM' => 'AIM', + 'MSNM' => 'MSNM', + 'YIM' => 'YIM', 'RANK' => 'Rank', + 'FORUM_INDEX' => 'Board Index', 'ALL_TIMES' => 'All times are %s %s', @@ -624,10 +626,9 @@ $lang = array( 'DOWNLOAD_COUNT' => '%d Time', // replace %d with count 'DOWNLOAD_COUNTS' => '%d Times', // replace %d with count + 'UCP' => 'User Control Panel', - 'UCP_Main' => 'Control Panel', - 'UCP_Profile' => 'Profile Settings', - 'UCP_Lists' => 'Black/White Lists', + 'UCP_Priv_messages' => 'Private Messages', 'SUBSCRIBED_TOPICS' => 'Subscribed Topics', 'SUBSCRIBED_FORUMS' => 'Subscribed Forums', @@ -642,12 +643,16 @@ $lang = array( 'Avatar_settings' => 'Avatar Settings', 'Signature_settings' => 'Signature Settings', + 'UCP_MAIN' => 'Overview', 'UCP_PREFERENCES' => 'Preferences', 'UCP_PERSONAL' => 'Personal Settings', 'UCP_VIEW' => 'Viewing Posts', 'UCP_POST' => 'Posting Messages', + + 'UCP_MESSAGING' => 'Private Messaging', + 'UCP_LISTS' => 'Buddy/Ignore Lists', @@ -656,16 +661,19 @@ $lang = array( 'UCP_REG_DETAILS' => 'Registration details', 'UCP_AVATAR' => 'Your avatar', - 'PROFILE_INFO_NOTICE' => 'Please note that this information will be viewable to other members. Be careful when including any personal details.', + 'PROFILE_INFO_NOTICE' => 'Please note that this information will be viewable to other members. Be careful when including any personal details. Any fields marked with a * must be completed.', 'WEBSITE' => 'Website', 'LOCATION' => 'Location', 'CONTACT' => 'Contact', - 'JABBER' => 'Jabber', 'EMAIL_ADDRESS' => 'Email address', 'INTERESTS' => 'Interests', 'OCCUPATION' => 'Occupation', 'BIRTHDAY' => 'Birthday', - + 'UCP_ICQ' => 'ICQ Number', + 'UCP_AIM' => 'AOL Instant Messenger', + 'UCP_MSNM' => 'MSN Messenger', + 'UCP_YIM' => 'Yahoo Messenger', + 'JABBER' => 'Jabber Address', 'UCP_SIGNATURE' => 'Your signature', 'SIGNATURE_NOTICE' => 'Please note that some forums limit the size and content of your signature. Be sure to read any forum or board rules to ensure you comply with them.', diff --git a/phpBB/templates/subSilver/editor.js b/phpBB/templates/subSilver/editor.js index ba75e40987..0ef736c94a 100644 --- a/phpBB/templates/subSilver/editor.js +++ b/phpBB/templates/subSilver/editor.js @@ -20,7 +20,7 @@ var is_mac = (clientPC.indexOf("mac")!=-1); // Shows the help messages in the helpline window function helpline(help) { - document.post.helpbox.value = eval(help + "_help"); + document.forms[form_name].helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property @@ -49,13 +49,13 @@ function arraypop(thearray) { function emoticon(text) { text = ' ' + text + ' '; - if (document.post.message.createTextRange && document.post.message.caretPos) { - var caretPos = document.post.message.caretPos; + if (document.forms[form_name].elements[text_name].createTextRange && document.forms[form_name].elements[text_name].caretPos) { + var caretPos = document.forms[form_name].elements[text_name].caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; - document.post.message.focus(); + document.forms[form_name].elements[text_name].focus(); } else { - document.post.message.value += text; - document.post.message.focus(); + document.forms[form_name].elements[text_name].value += text; + document.forms[form_name].elements[text_name].focus(); } } @@ -63,19 +63,19 @@ 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(); + document.forms[form_name].elements[text_name].value += bbopen + bbclose; + document.forms[form_name].elements[text_name].focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; - document.post.message.focus(); + document.forms[form_name].elements[text_name].focus(); return; } else { - document.post.message.value += bbopen + bbclose; - document.post.message.focus(); + document.forms[form_name].elements[text_name].value += bbopen + bbclose; + document.forms[form_name].elements[text_name].focus(); return; } - storeCaret(document.post.message); + storeCaret(document.forms[form_name].message); } @@ -88,19 +88,19 @@ function bbstyle(bbnumber) { if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; - document.post.message.value += bbtags[butnumber + 1]; - buttext = eval('document.post.addbbcode' + butnumber + '.value'); + document.forms[form_name].elements[text_name].value += bbtags[butnumber + 1]; + buttext = eval('document.forms[form_name].addbbcode' + butnumber + '.value'); if (buttext != "[*]") { - eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); + eval('document.forms[form_name].addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } } - document.post.addbbcode10.value = "List"; + document.forms[form_name].addbbcode10.value = "List"; bbtags[10] = "[list]"; - document.post.addbbcode12.value = "List="; + document.forms[form_name].addbbcode12.value = "List="; bbtags[12] = "[list=]"; imageTag = false; // All tags are closed including image tags :D - document.post.message.focus(); + document.forms[form_name].elements[text_name].focus(); return; } @@ -110,7 +110,7 @@ function bbstyle(bbnumber) { if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; - document.post.message.focus(); + document.forms[form_name].elements[text_name].focus(); theSelection = ''; return; } @@ -127,7 +127,7 @@ function bbstyle(bbnumber) { { if (donotinsert) { - document.post.addbbcode12.value = "List="; + document.forms[form_name].addbbcode12.value = "List="; tmp_help = o_help; o_help = e_help; e_help = tmp_help; @@ -135,7 +135,7 @@ function bbstyle(bbnumber) { } else { - document.post.addbbcode12.value = "[*]"; + document.forms[form_name].addbbcode12.value = "[*]"; tmp_help = o_help; o_help = e_help; e_help = tmp_help; @@ -147,7 +147,7 @@ function bbstyle(bbnumber) { { if (donotinsert) { - document.post.addbbcode10.value = "List"; + document.forms[form_name].addbbcode10.value = "List"; tmp_help = l_help; l_help = e_help; e_help = tmp_help; @@ -155,7 +155,7 @@ function bbstyle(bbnumber) { } else { - document.post.addbbcode10.value = "[*]"; + document.forms[form_name].addbbcode10.value = "[*]"; tmp_help = l_help; l_help = e_help; e_help = tmp_help; @@ -168,43 +168,43 @@ function bbstyle(bbnumber) { butnumber = arraypop(bbcode) - 1; if (bbtags[butnumber] != "[*]") { - document.post.message.value += bbtags[butnumber + 1]; + document.forms[form_name].elements[text_name].value += bbtags[butnumber + 1]; } else { - document.post.message.value += bbtags[butnumber]; + document.forms[form_name].elements[text_name].value += bbtags[butnumber]; } - buttext = eval('document.post.addbbcode' + butnumber + '.value'); + buttext = eval('document.forms[form_name].addbbcode' + butnumber + '.value'); if (bbtags[butnumber] != "[*]") { - eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); + eval('document.forms[form_name].addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; } - document.post.message.focus(); + document.forms[form_name].elements[text_name].focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another - document.post.message.value += bbtags[15]; + document.forms[form_name].elements[text_name].value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list - document.post.addbbcode14.value = "Img"; // Return button back to normal state + document.forms[form_name].addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag - document.post.message.value += bbtags[bbnumber]; + document.forms[form_name].elements[text_name].value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag if (bbtags[bbnumber] != "[*]") { arraypush(bbcode,bbnumber+1); - eval('document.post.addbbcode'+bbnumber+'.value += "*"'); + eval('document.forms[form_name].addbbcode'+bbnumber+'.value += "*"'); } - document.post.message.focus(); + document.forms[form_name].elements[text_name].focus(); return; } - storeCaret(document.post.message); + storeCaret(document.forms[form_name].message); } // Insert at Claret position. Code from diff --git a/phpBB/templates/subSilver/posting_body.html b/phpBB/templates/subSilver/posting_body.html index 61297d74c3..6b0dd6d8a3 100644 --- a/phpBB/templates/subSilver/posting_body.html +++ b/phpBB/templates/subSilver/posting_body.html @@ -3,6 +3,9 @@ + + +