Changeset 85
- Timestamp:
- 05/09/2008 12:05:12 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
-
bp-core/js (added)
-
bp-core/js/jquery (added)
-
bp-core/js/jquery/jquery.tablednd.js (added)
-
bp-xprofile.php (modified) (1 diff)
-
bp-xprofile/bp-xprofile-admin.php (modified) (5 diffs)
-
bp-xprofile/bp-xprofile-signup.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r57 r85 89 89 } 90 90 91 wp_enqueue_script( 'jquery.tablednd', '/wp-content/mu-plugins/bp-core/js/jquery/jquery.tablednd.js', array( 'jquery' ), '0.4' ); 92 91 93 /* Add the administration tab under the "Site Admin" tab for site administrators */ 92 94 add_submenu_page( 'wpmu-admin.php', __("Profiles"), __("Profiles"), 1, "xprofile_settings", "xprofile_admin" ); -
trunk/bp-xprofile/bp-xprofile-admin.php
r33 r85 26 26 xprofile_admin_manage_group($_GET['group_id']); die; 27 27 } 28 28 29 ?> 29 30 <div class="wrap"> … … 49 50 for ( $i = 0; $i < count($groups); $i++ ) { 50 51 ?> 51 <p> 52 <table class="widefat"> 52 <script type="text/javascript" charset="utf-8"> 53 jQuery(document).ready(function(){ 54 jQuery('#<?php echo $groups[$i]->name;?>').tableDnD({ 55 onDrop: function(table, row) { 56 var order = jQuery.tableDnD.serialize(); 57 } 58 }); 59 }); 60 </script> 61 <p> 62 <table id="<?php echo $groups[$i]->name; ?>" class="widefat"> 53 63 <thead> 54 <tr >64 <tr class="nodrag"> 55 65 <th scope="col" colspan="<?php if ( $groups[$i]->can_delete ) { ?>3<?php } else { ?>5<?php } ?>"><?php echo $groups[$i]->name; ?></th> 56 66 <?php if ( $groups[$i]->can_delete ) { ?> … … 61 71 </thead> 62 72 <tbody id="the-list"> 63 <tr class="header ">73 <tr class="header nodrag"> 64 74 <td>Field Name</td> 65 75 <td width="10%">Field Type</td> … … 68 78 </tr> 69 79 70 <?php if ( $groups[$i]->fields ) { ?>80 <?php if ( $groups[$i]->fields ) { ?> 71 81 <?php for ( $j = 0; $j < count($groups[$i]->fields); $j++ ) { ?> 72 <?php if ( $j % 2 == 0 ) { $class = ""; } else { $class = "alternate"; } ?> 73 82 <?php if ( $j % 2 == 0 ) { $class = ""; } else { $class = "alternate"; } ?> 74 83 <?php $field = new BP_XProfile_Field($groups[$i]->fields[$j]->id); ?> 75 84 <?php if ( !$field->can_delete ) { $class .= ' core'; } ?> 76 85 77 <tr<?php echo ' class="' . $class . '"'; ?>>86 <tr<?php echo ' class="' . $class . '"'; ?>> 78 87 <td><span title="<?php echo $field->desc; ?>"><?php echo $field->name; ?> <?php if(!$field->can_delete) { ?>(Core)<?php } ?></span></td> 79 88 <td><?php echo $field->type; ?></td> … … 82 91 <td style="text-align:center;"><?php if ( !$field->can_delete ) { ?><strike>Delete</strike><?php } else { ?><a class="delete" href="admin.php?page=xprofile_settings&field_id=<?php echo $field->id; ?>&mode=delete_field">Delete</a><?php } ?></td> 83 92 </tr> 84 93 85 94 <?php } ?> 86 95 <?php } else { ?> -
trunk/bp-xprofile/bp-xprofile-signup.php
r65 r85 124 124 $counter++; 125 125 } 126 127 128 126 } 129 127 130 128 $result = wpmu_validate_user_signup( $_POST['user_name'], $_POST['user_email'] ); 131 129 extract($result); 130 132 131 133 132 if ( $errors->get_error_code() || $hasErrors ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)