Changeset 384
- Timestamp:
- 10/10/2008 06:03:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-signup.php
r382 r384 15 15 if ( $fields ) { 16 16 ?> 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> 29 23 <?php 30 24 for ( $i = 0; $i < count($fields); $i++ ) { … … 35 29 } 36 30 ?> 37 <tr<?php echo $css_class; ?>> 38 <td> 31 <div> 39 32 <?php if ( $css_class != '' ) { echo '<div class="error">' . $bp_xprofile_callback[$i]['error_msg'] . '</div>'; } ?> 40 33 <?php echo $fields[$i]->get_edit_html($bp_xprofile_callback[$i]['value']); ?> 41 </td> 42 </tr> 34 </div> 43 35 <?php 44 36 $field_ids .= $fields[$i]->id . ","; 45 37 } 46 38 ?> 47 48 </tbody>49 </table>50 39 <input type="hidden" name="xprofile_ids" value="<?php echo $field_ids; ?>" /> 51 40 <?php … … 53 42 54 43 ?> 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> 65 48 <?php 66 49 if ( $avatar_error ) { … … 71 54 ?> 72 55 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> 85 64 <script type="text/javascript"> 86 65 document.getElementById('setupform').setAttribute('enctype', 'multipart/form-data'); 87 66 </script> 67 </div> 88 68 <?php 89 69 }
Note: See TracChangeset
for help on using the changeset viewer.