Ticket #908: 908-jjj.patch
| File 908-jjj.patch, 3.3 KB (added by , 17 years ago) |
|---|
-
bp-core-signup.php
190 190 do_action('signup_finished'); 191 191 } 192 192 193 function bp_core_signup_signup_user($user_name = '', $user_email = '', $errors = '' ) {193 function bp_core_signup_signup_user($user_name = '', $user_email = '', $errors = '', $args = '') { 194 194 global $current_site, $active_signup; 195 195 196 196 $active_signup = get_site_option( 'registration' ); … … 209 209 $user_email = $filtered_results['user_email']; 210 210 $errors = $filtered_results['errors']; 211 211 212 // Allow for sign-up text to be changed 213 $defaults = array( 214 'intro_text' => __( 'If you want to create your first blog, select the option below and you\'ll be asked for a few more details.', 'buddypress' ), // Text for paragraph before sign up fields 215 'create_blog_title' => __( 'Create a Blog?', 'buddypress' ), // Text for title if blogs are enabled 216 'blog_help_text' => __( 'If you want to create your first blog, select the option below and you\'ll be asked for a few more details.', 'buddypress' ), 217 'give_me_blog_text' => __( 'Gimme a blog!', 'buddypress' ), // Text for user requesting a blog 218 'username_only_text' => __( 'Just a username, please.', 'buddypress' ), // Text for user not wanting a blog 219 'next_text' => __('Next »'), // Text for next button 220 ); 221 222 $r = wp_parse_args( $args, $defaults ); 223 extract( $r, EXTR_SKIP ); 212 224 ?> 213 225 214 226 <form id="setupform" method="post" action="<?php echo site_url(BP_REGISTER_SLUG) ?>"> 215 <p id="intro-text"><?php _e( 'Registering for a new account is easy, just fill in the form below and you\'ll be a new member in no time at all.', 'buddypress' )?></p>227 <p id="intro-text"><?php echo $intro_text ?></p> 216 228 <input type="hidden" name="stage" value="validate-user-signup" /> 217 229 <?php do_action( "signup_hidden_fields" ); ?> 218 230 … … 224 236 <input id="signupblog" type="hidden" name="signup_for" value="user" /> 225 237 <?php } else { ?> 226 238 <div id="blog-or-username"> 227 <h3><?php _e( 'Create a Blog?', 'buddypress' )?></h3>228 <p id="blog-help-text"><?php _e( 'If you want to create your first blog, select the option below and you\'ll be asked for a few more details.', 'buddypress' )?></p>239 <h3><?php echo $create_blog_title ?></h3> 240 <p id="blog-help-text"><?php echo $blog_help_text ?></p> 229 241 230 242 <div id="blog-or-username-fields"> 231 243 <p> 232 244 <input id="signupblog" type="radio" name="signup_for" value="blog" <?php echo $signup['blog'] ?> /> 233 <label class="checkbox" for="signupblog"><?php _e( 'Gimme a blog!', 'buddypress' ) ?></label>245 <label class="checkbox" for="signupblog"><?php echo $give_me_blog_text ?></label> 234 246 </p> 235 247 236 248 <p> 237 249 <input id="signupuser" type="radio" name="signup_for" value="user" <?php echo $signup['user'] ?> /> 238 <label class="checkbox" for="signupuser"><?php _e( 'Just a username, please.', 'buddypress' )?></label>250 <label class="checkbox" for="signupuser"><?php echo username_only_text ?></label> 239 251 </p> 240 252 </div> 241 253 </div> 242 254 <?php } ?> 243 255 244 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Next »')?>"/>256 <input id="submit" type="submit" name="submit" class="submit" value="<?php echo $next_text ?>"/> 245 257 </form> 246 258 <?php 247 259 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)