Changeset 724
- Timestamp:
- 11/11/08 03:37:13 (2 months ago)
- Location:
- fluxbb/branches/fluxbb-1.3-dev/upload
- Files:
-
- 2 modified
-
lang/English/profile.php (modified) (3 diffs)
-
register.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/profile.php
r659 r724 61 61 // About and Identity sections 62 62 'Users profile' => '%s\'s profile', 63 'Your profile' => 'Your profile', 63 64 'Section about' => 'Introduction', 64 65 'Profile welcome' => 'Welcome to your profile', … … 206 207 'No new regs' => 'This forum is not accepting new registrations.', 207 208 'Reg cancel redirect' => 'Registration cancelled. Redirecting âŠ', 208 'Agreement' => 'Agreement :',209 'Agreement' => 'Agreement', 209 210 'Agreement label' => 'I agree to the rules set out above and wish to register.', 210 211 'Agree' => 'Agree', … … 220 221 'Register errors' => '<strong>Warning!</strong> The following errors must be corrected before you can register:', 221 222 'E-mail info' => '<strong>Important!</strong> An e-mail will be sent to your new address with an activation link. You must click the link in the e-mail you receive to activate the new address. You must therefore ensure that you enter a valid and current e-mail address.', 222 'Reg e-mail info' => '<strong>Important!</strong> An e-mail with an activation link will be sent to the address you provide. You must click the link in the e-mail in order to activate your new account. You must therefore ensure that you enter a valid and current e-mail address.',223 223 'Register at' => 'Register at %s', 224 'Register intro' => ' Registration enables you to use features not available when browsing the board as a guest. The fields below only make up a small part of all the settings you can alter in your profile. If you have any questions regarding this forum you should ask an administrator. Please complete the form below in order to register.',225 'Username' => 'Username :',224 'Register intro' => 'To register and enjoy all the features the board has to offer, please complete the form below.', 225 'Username' => 'Username', 226 226 'Username help' => 'Between 2 and 25 characters.', 227 'Password' => 'Password :',227 'Password' => 'Password', 228 228 'Password help' => 'Minimum 4 characters. Case sensitive.', 229 'Confirm password' => 'Confirm password :',229 'Confirm password' => 'Confirm password', 230 230 'Confirm password help' => 'Re-enter your password exactly as before.', 231 'E-mail' => 'E-mail:', 232 'E-mail help' => 'A current valid e-mail address.', 233 'Confirm e-mail' => 'Confirm e-mail:', 231 'E-mail' => 'E-mail address', 232 'E-mail help' => 'Enter a current valid e-mail address.', 233 'E-mail activation help' => 'Enter a current valid e-mail address. An e-mail with an activation link will be sent to this address. You must click the link in the e-mail in order to activate your new account.', 234 'Confirm e-mail' => 'Confirm e-mail', 234 235 'Confirm e-mail help' => 'Re-enter your e-mail address exactly as before.', 235 236 'Optional legend' => 'Optional settings', 236 237 'Language' => 'Language', 237 'Timezone' => 'Your timezone:', 238 'Adjust for DST' => 'Adjust for DST:', 238 'Timezone' => 'Your timezone', 239 'Timezone help' => 'You need to set your timezone for the board to function correctly. You can change it later via your profile.', 240 'Adjust for DST' => 'Adjust for DST', 239 241 'DST label' => 'Daylight savings is in effect (advance times by 1 hour).', 240 'E-mail settings' => 'E-mail settings :',242 'E-mail settings' => 'E-mail settings', 241 243 'E-mail setting 1' => 'Display your e-mail address to other users.', 242 244 'E-mail setting 2' => 'Hide your e-mail address but allow e-mail via the forum.', 243 245 'E-mail setting 3' => 'Hide your e-mail address and disallow e-mail via the forum.', 244 'Reg rules head' => 'You must agree to the forum rules set out belowin order to register.',246 'Reg rules head' => 'You must agree to the forum rules in order to register.', 245 247 'Register' => 'Register', // Registration button text 246 248 -
fluxbb/branches/fluxbb-1.3-dev/upload/register.php
r703 r724 210 210 ); 211 211 212 // Setup main heading 213 $forum_page['main_hd'] = end($forum_page['crumbs']); 214 212 215 ($hook = get_hook('rg_rules_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 213 216 … … 220 223 ($hook = get_hook('rg_rules_output_start')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 221 224 222 $forum_page['set_count'] = $forum_page['fld_count'] = 0; 223 224 ?> 225 <div class="main-subhead"> 226 <h2 class="hn"><span><?php echo $lang_profile['Reg rules head'] ?></span></h2> 227 </div> 228 <div class="main-content main-frm"> 225 // Setup form 226 $forum_page['fld_count'] = 0; 227 228 ?> 229 <div class="content"> 230 <div class="section section-1 data"> 231 <div class="section-hd"> 232 <h2 class="hn"><span><?php echo $lang_profile['Reg rules head'] ?></span></h2> 233 </div> 234 <div class="user-box"> 235 <?php echo $forum_config['o_rules_message']."\n" ?> 236 </div> 237 </div> 238 <div class="section datafrm"> 239 <form method="get" accept-charset="utf-8" action="<?php echo $base_url ?>/register.php"> 240 229 241 <?php 230 242 … … 239 251 240 252 ?> 241 <div class="ct-boxerror-box">242 <h2 class="hn"><span><?php echo $lang_profile['Register errors'] ?></span></h2>243 <ul>244 <?php echo implode("\n\t\t\t\t", $forum_page['errors'])."\n" ?>245 </ul>246 </div>253 <div class="error-box"> 254 <h2 class="hn"><span><?php echo $lang_profile['Register errors'] ?></span></h2> 255 <ul> 256 <?php echo implode("\n\t\t\t\t", $forum_page['errors'])."\n" ?> 257 </ul> 258 </div> 247 259 <?php 248 260 … … 250 262 251 263 ?> 252 <div class="ct-box user-box">253 <?php echo $forum_config['o_rules_message']."\n" ?>254 </div>255 <form class="frm-form" method="get" accept-charset="utf-8" action="<?php echo $base_url ?>/register.php">256 264 <?php ($hook = get_hook('rg_rules_pre_group')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 257 <div class="frm-group group<?php echo ++$forum_page['group_count'] ?>">265 <div class="frm-group frm-group-<?php echo ++$forum_page['group_count'] ?>"> 258 266 <?php ($hook = get_hook('rg_rules_pre_agree_checkbox')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 259 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">267 <div class="sf-set frm-set frm-set-<?php echo ++$forum_page['item_count'] ?>"> 260 268 <div class="sf-box checkbox"> 261 269 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="req_agreement" value="1" /></span> 262 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Agreement'] ?></span> < ?php echo $lang_profile['Agreement label'] ?></label>270 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Agreement'] ?></span> <br /><small><?php echo $lang_profile['Agreement label'] ?></small></label> 263 271 </div> 264 272 </div> … … 267 275 <?php ($hook = get_hook('rg_rules_group_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 268 276 <div class="frm-buttons"> 269 <span class="submit"><input type="submit" name="agree" value="<?php echo $lang_profile['Agree'] ?>" /></span> 270 <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span> 277 <p><span class="submit"><input type="submit" name="agree" value="<?php echo $lang_profile['Agree'] ?>" /></span> <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span></p> 271 278 </div> 272 279 </form> 280 </div> 273 281 </div> 274 282 <?php … … 277 285 278 286 $tpl_temp = forum_trim(ob_get_contents()); 279 $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);287 $tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 280 288 ob_end_clean(); 281 289 // END SUBST - <!-- forum_main --> … … 285 293 286 294 // Setup form 287 $forum_page[' group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;295 $forum_page['fld_count'] = 0; 288 296 $forum_page['form_action'] = $base_url.'/register.php?action=register'; 289 290 // Setup form information291 $forum_page['frm_info']['intro'] = '<p>'.$lang_profile['Register intro'].'</p>';292 if ($forum_config['o_regs_verify'] != '0')293 $forum_page['frm_info']['email'] = '<p class="warn">'.$lang_profile['Reg e-mail info'].'</p>';294 297 295 298 // Setup breadcrumbs … … 299 302 ); 300 303 304 // Setup main heading 305 $forum_page['main_hd'] = end($forum_page['crumbs']); 306 301 307 ($hook = get_hook('rg_register_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 302 308 … … 310 316 311 317 ?> 312 <div class="main-content main-frm"> 313 <div class="ct-box info-box"> 314 <?php echo implode("\n\t\t\t", $forum_page['frm_info'])."\n" ?> 315 </div> 318 <div class="content"> 319 <div class="section section-1 datafrm"> 320 <form id="afocus" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 321 <div class="hidden"> 322 <input type="hidden" name="form_sent" value="1" /> 323 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token($forum_page['form_action']) ?>" /> 324 </div> 325 316 326 <?php 317 327 … … 326 336 327 337 ?> 328 <div class="ct-boxerror-box">329 <h2 class="hn"><span><?php echo $lang_profile['Register errors'] ?></span></h2>330 <ul>331 <?php echo implode("\n\t\t\t\t", $forum_page['errors'])."\n" ?>332 </ul>333 </div>338 <div class="error-box"> 339 <h2 class="hn"><span><?php echo $lang_profile['Register errors'] ?></span></h2> 340 <ul> 341 <?php echo implode("\n\t\t\t\t", $forum_page['errors'])."\n" ?> 342 </ul> 343 </div> 334 344 <?php 335 345 … … 337 347 338 348 ?> 339 <div id="req-msg" class="req-warn ct-box error-box"> 340 <p class="important"><?php printf($lang_common['Required warn'], '<em>'.$lang_common['Required'].'</em>') ?></p> 341 </div> 342 <form class="frm-form" id="afocus" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 343 <div class="hidden"> 344 <input type="hidden" name="form_sent" value="1" /> 345 <input type="hidden" name="csrf_token" value="<?php echo generate_form_token($forum_page['form_action']) ?>" /> 349 <div id="req-msg" class="req-warn error-box"> 350 <p class="important"><?php printf($lang_common['Required warn'], '<span><em>'.$lang_common['Required'].'</em></span>') ?></p> 346 351 </div> 347 352 <?php ($hook = get_hook('rg_register_pre_group')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 348 <div class="frm-group group<?php echo ++$forum_page['group_count'] ?>">353 <div class="frm-group frm-group-1"> 349 354 <?php ($hook = get_hook('rg_register_pre_username')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 350 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">355 <div class="sf-set frm-set frm-set-1"> 351 356 <div class="sf-box text required"> 352 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Username'] ?> <em><?php echo $lang_common['Required'] ?></em></span> < small><?php echo $lang_profile['Username help'] ?></small></label><br />357 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Username'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <br /><small><?php echo $lang_profile['Username help'] ?></small></label><br /> 353 358 <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_username" value="<?php echo(isset($_POST['req_username']) ? forum_htmlencode($_POST['req_username']) : '') ?>" size="35" maxlength="25" /></span> 354 359 </div> 355 360 </div> 356 361 <?php ($hook = get_hook('rg_register_pre_password')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 357 <?php if ($forum_config['o_regs_verify'] == '0'): ?> <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">362 <?php if ($forum_config['o_regs_verify'] == '0'): ?> <div class="sf-set frm-set"> 358 363 <div class="sf-box text required"> 359 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> < small><?php echo $lang_profile['Password help'] ?></small></label><br />364 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <br /><small><?php echo $lang_profile['Password help'] ?></small></label><br /> 360 365 <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password1" size="35" /></span> 361 366 </div> 362 367 </div> 363 368 <?php ($hook = get_hook('rg_register_pre_confirm_password')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 364 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">369 <div class="sf-set frm-set"> 365 370 <div class="sf-box text required"> 366 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> < small><?php echo $lang_profile['Confirm password help'] ?></small></label><br />371 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm password'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <br /><small><?php echo $lang_profile['Confirm password help'] ?></small></label><br /> 367 372 <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password2" size="35" /></span> 368 373 </div> 369 374 </div> 370 <?php endif; ($hook = get_hook('rg_register_pre_email')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">375 <?php endif; ($hook = get_hook('rg_register_pre_email')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> <div class="sf-set frm-set"> 371 376 <div class="sf-box text required"> 372 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['E-mail'] ?> <em><?php echo $lang_common['Required'] ?></em></span> < small><?php echo$lang_profile['E-mail help'] ?></small></label><br />377 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['E-mail'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <br /><small<?php echo ($forum_config['o_regs_verify'] != '0') ? ' class="important"' : '' ?>><?php echo ($forum_config['o_regs_verify'] != '0') ? $lang_profile['E-mail activation help'] : $lang_profile['E-mail help'] ?></small></label><br /> 373 378 <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_email1" value="<?php echo(isset($_POST['req_email1']) ? forum_htmlencode($_POST['req_email1']) : '') ?>" size="35" maxlength="80" /></span> 374 379 </div> 375 380 </div> 376 381 <?php ($hook = get_hook('rg_register_pre_email_confirm')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 377 <?php if ($forum_config['o_regs_verify'] == '1'): ?> <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">382 <?php if ($forum_config['o_regs_verify'] == '1'): ?> <div class="sf-set frm-set"> 378 383 <div class="sf-box text required"> 379 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm e-mail'] ?> <em><?php echo $lang_common['Required'] ?></em></span> < small><?php echo $lang_profile['Confirm e-mail help'] ?></small></label><br />384 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Confirm e-mail'] ?> <em><?php echo $lang_common['Required'] ?></em></span> <br /><small><?php echo $lang_profile['Confirm e-mail help'] ?></small></label><br /> 380 385 <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_email2" value="<?php echo(isset($_POST['req_email2']) ? forum_htmlencode($_POST['req_email2']) : '') ?>" size="35" maxlength="80" /></span> 381 386 </div> … … 392 397 393 398 ?> 394 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">399 <div class="sf-set frm-set"> 395 400 <div class="sf-box select"> 396 401 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Language'] ?></span></label><br /> … … 421 426 422 427 ?> 423 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">428 <div class="sf-set frm-set"> 424 429 <div class="sf-box select"> 425 430 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Timezone'] ?></span></label><br /> … … 468 473 </div> 469 474 <?php ($hook = get_hook('rg_register_pre_dst_checkbox')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 470 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">475 <div class="sf-set frm-set"> 471 476 <div class="sf-box checkbox"> 472 477 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="dst"<?php if ($select_dst) echo ' checked="checked"' ?> /></span> 473 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Adjust for DST'] ?></span> < ?php echo $lang_profile['DST label'] ?></label>478 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_profile['Adjust for DST'] ?></span> <br /><small><?php echo $lang_profile['DST label'] ?></small></label> 474 479 </div> 475 480 </div> … … 478 483 <?php ($hook = get_hook('rg_register_group_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 479 484 <div class="frm-buttons"> 480 < span class="submit"><input type="submit" name="register" value="<?php echo $lang_profile['Register'] ?>" /></span>485 <p><span class="submit"><input type="submit" name="register" value="<?php echo $lang_profile['Register'] ?>" /></span></p> 481 486 </div> 482 487 </form> 488 </div> 483 489 </div> 484 490 <?php … … 487 493 488 494 $tpl_temp = forum_trim(ob_get_contents()); 489 $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);495 $tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 490 496 ob_end_clean(); 491 497 // END SUBST - <!-- forum_main -->
