Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/21/2010 05:01:36 PM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #1377, #1390, #1412, #1378. Error handling on form submission, and better anonymous user handling. Props GautamGupta via Google Code-in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_anonymous.php

    r2679 r2734  
    55                                                        <legend><?php _e( 'Your information:', 'bbpress' ); ?></legend>
    66                                                        <p>
    7                                                                 <label for="bbp_anonymous_author"><?php _e( '* Name:', 'bbpress' ); ?></label><br />
    8                                                                 <input type="text" id="bbp_anonymous_author" value="" tabindex="4" size="40" name="bbp_anonymous_name" />
     7                                                                <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br />
     8                                                                <input type="text" id="bbp_anonymous_author" value="<?php bbp_current_anonymous_user_data( 'name' ); ?>" tabindex="4" size="40" name="bbp_anonymous_name" />
    99                                                        </p>
    1010
    1111                                                        <p>
    12                                                                 <label for="bbp_anonymous_email"><?php _e( '* Email Address:', 'bbpress' ); ?></label><br />
    13                                                                 <input type="text" id="bbp_anonymous_email" value="" tabindex="6" size="40" name="bbp_anonymous_email" />
     12                                                                <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
     13                                                                <input type="text" id="bbp_anonymous_email" value="<?php bbp_current_anonymous_user_data( 'email' ); ?>" tabindex="6" size="40" name="bbp_anonymous_email" />
    1414                                                        </p>
    1515
    1616                                                        <p>
    1717                                                                <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br />
    18                                                                 <input type="text" id="bbp_anonymous_website" value="" tabindex="8" size="40" name="bbp_anonymous_website" />
     18                                                                <input type="text" id="bbp_anonymous_website" value="<?php bbp_current_anonymous_user_data( 'website' ); ?>" tabindex="8" size="40" name="bbp_anonymous_website" />
    1919                                                        </p>
    2020                                                </fieldset>
Note: See TracChangeset for help on using the changeset viewer.