[wpmu-trac] Re: [WordPress MU Trac] #799: Feature Request: Additional Option of Site Admin -> Options -> Allow new Registrations.

WordPress MU Trac wpmu-trac at lists.automattic.com
Wed Apr 22 17:31:53 GMT 2009


#799: Feature Request: Additional Option of Site Admin -> Options -> Allow new
Registrations.
-------------------------------------------+--------------------------------
 Reporter:  frumph                         |        Owner:  somebody
     Type:  enhancement                    |       Status:  reopened
 Priority:  normal                         |    Milestone:  2.8     
Component:  component1                     |      Version:          
 Severity:  minor                          |   Resolution:          
 Keywords:  Registration Option SiteAdmin  |  
-------------------------------------------+--------------------------------
Changes (by frumph):

  * priority:  low => normal
  * status:  closed => reopened
  * resolution:  wontfix =>

Comment:

 wp-admin/wpmu-options.php around line 61[[BR]]
 {{{
                         <tr valign="top">
                                 <th scope="row"><?php _e('Disable blog
 creation at point of registration?') ?></th>
                                 <?php
                                         $blogcreationonsignup =
 get_site_option('blogcreationonsignup');
                                         if( empty($blogcreationonsignup))
 {
                                                 update_site_option(
 'blogcreationonsignup', '0' );
                                         }
                                         ?>
                                 <td>
                                         <label><input type='checkbox'
 id="blogcreationonsignup" name="blogcreationonsignup" value='1' <?php if(
 $blogcreationonsignup == '1' ) { echo 'checked=checked '; } ?>/> <?php _e(
 'Disable' ); ?></label><br />
                                         <br />
                                         If allow new registrations is set
 to 'all' / enabled and this box is checkmarked then the user will have to
 be registered first and logged in to create a new blog.<br />
                                         <br />
                                 </td>
                         </tr>
 }}}
 [[BR]]
 [[BR]]
 /wp-signup.php line 242[[BR]]
 {{{
         <form id="setupform" method="post" action="wp-signup.php">
                 <input type="hidden" name="stage" value="validate-user-
 signup" />
                 <?php do_action( "signup_hidden_fields" ); ?>
                 <?php show_user_form($user_name, $user_email, $errors); ?>

                 <p>
                 <?php if( $active_signup == 'blog' ) { ?>
                         <input id="signupblog" type="hidden"
 name="signup_for" value="blog" />
                 <?php } elseif( $active_signup == 'user' ) { ?>
                         <input id="signupblog" type="hidden"
 name="signup_for" value="user" />
                 <?php } else { ?>
                         <?php if (get_site_option('blogcreationonsignup')
 !== '1') { ?>
                                 <input id="signupblog" type="radio"
 name="signup_for" value="blog" <?php echo $signup['blog'] ?> />
                                 <label class="checkbox"
 for="signupblog"><?php _e('Gimme a blog!') ?></label>
                                 <br />
                                 <input id="signupuser" type="radio"
 name="signup_for" value="user" <?php echo $signup['user'] ?>
 checked="checked" />
                                 <label class="checkbox"
 for="signupuser"><?php _e('Just a username, please.') ?></label>
                         <?php } ?>
                 <?php } ?>
                 </p>
 }}}

 [[BR]]
 [[BR]]

 wp-admin/wpmu-edit.php under line 39[[BR]]
 {{{

                 update_site_option( "blogcreationonsignup",
 $_POST['blogcreationonsignup'] );
 }}}


 [[BR]]

 [[BR]]

 Basically this does what I want it to do, it allows the $active_signup =
 'all'  and if this is checkmarked then do not ask the person to create a
 blog on registration.  So that the user needs to register first and be
 logged in to create a blog.

 The 4th option in the allow registrations does *not* allow for normal
 registrations so this works well in it's stead so you can allow
 registrations, allow blog creation and checkmark it *not* to allow blog
 creation on signup.

 - Phil (Frumph)

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/799#comment:14>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list