Skip to:
Content

BuddyPress.org

Changeset 384


Ignore:
Timestamp:
10/10/2008 06:03:34 AM (17 years ago)
Author:
apeatling
Message:

Fixes #76

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-signup.php

    r382 r384  
    1515    if ( $fields ) {
    1616    ?>
    17     <table border="0" id="extraFields" width="100%">
    18         <tbody>
    19             <tr>
    20                 <td>
    21                 <div id="breaker">
    22                     <h3><?php _e('Additional Information'); ?></h3>
    23                     <p><?php _e('Please fill in the following fields to start up your member profile. Fields
    24                         marked with a star are required.'); ?></p>
    25                 </div>
    26                 </td>
    27             </tr>
    28            
     17    <div id="extraFields">
     18        <div id="breaker">
     19            <h3><?php _e('Additional Information'); ?></h3>
     20            <p><?php _e('Please fill in the following fields to start up your member profile. Fields
     21                marked with a star are required.'); ?></p>
     22        </div>
    2923            <?php
    3024            for ( $i = 0; $i < count($fields); $i++ ) {
     
    3529                }
    3630                ?>
    37                 <tr<?php echo $css_class; ?>>
    38                     <td>
     31                <div>
    3932                    <?php if ( $css_class != '' ) { echo '<div class="error">' . $bp_xprofile_callback[$i]['error_msg'] . '</div>'; } ?>
    4033                    <?php echo $fields[$i]->get_edit_html($bp_xprofile_callback[$i]['value']); ?>
    41                     </td>
    42                 </tr>
     34                </div>
    4335                <?php
    4436                $field_ids .= $fields[$i]->id . ",";
    4537            }
    4638            ?>
    47                
    48         </tbody>
    49     </table>
    5039    <input type="hidden" name="xprofile_ids" value="<?php echo $field_ids; ?>" />   
    5140    <?php
     
    5342   
    5443    ?>
    55     <table border="0" id="extraFields" width="100%">
    56         <tbody>
    57             <tr>
    58                 <td>
    59                 <div id="breaker">
    60                     <h3><?php _e('Profile Picture (Avatar)'); ?></h3>
    61                     <p><?php _e('You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.'); ?></p>
    62                 </div>
    63                 </td>
    64             </tr>
     44        <div id="breaker">
     45            <h3><?php _e('Profile Picture (Avatar)'); ?></h3>
     46            <p><?php _e('You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.'); ?></p>
     47        </div>
    6548            <?php
    6649            if ( $avatar_error ) {
     
    7154            ?>
    7255           
    73             <tr<?php echo $css_class; ?>
    74                 <td>
    75                     <?php if ( $css_class != '' ) { echo '<div class="error">' . $avatar_error_msg . '</div>'; } ?>
    76                    
    77                     <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_site_option('fileupload_maxk') * 1024; ?>" />
    78                     <input type="hidden" name="slick_avatars_action" value="upload" />
    79                     <input type="hidden" name="action" value="slick_avatars" />
    80                     <input type="file" name="file" id="file" />
    81                 </td>
    82             </tr>
    83         </tbody>
    84     </table>
     56            <div<?php echo $css_class; ?>
     57                <?php if ( $css_class != '' ) { echo '<div class="error">' . $avatar_error_msg . '</div>'; } ?>
     58               
     59                <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_site_option('fileupload_maxk') * 1024; ?>" />
     60                <input type="hidden" name="slick_avatars_action" value="upload" />
     61                <input type="hidden" name="action" value="slick_avatars" />
     62                <input type="file" name="file" id="file" />
     63            </div>
    8564    <script type="text/javascript">
    8665        document.getElementById('setupform').setAttribute('enctype', 'multipart/form-data');
    8766    </script>
     67    </div>
    8868    <?php
    8969}
Note: See TracChangeset for help on using the changeset viewer.