aaronrobb
Forum Replies Created
-
Forum: Plugins
In reply to: [Authors Autocomplete Meta Box] Add another value to search?Ok, i’m starting to see this, but because i’m still a novice programmer, where would I call the custom field.
For example, normally i use this:
$value = cimy_uef_sanitize_content(get_cimyFieldValue($user->ID, 'ADDRESS'));
to call the field. How would i show results including these fields?
Based on the original plugin, I could get away with removing the login from the seach and replace with this custom field. For our site login and email are the same, so its just doubling it up.I’m going to start experimenting with your filter and will respond if I figure it out myself.
I’m having this issue too! Would love to hear the solution!!
Forum: Plugins
In reply to: [Register Plus Redux] Show custom field in Unverified User ScreenRadiok,
I figured it out. Fairly easy actually.
I took the field name created in the custom area (mine was ‘rpr_clinic_name’), and just pushed it into a new table section of the admin page(rpr-admin-menu.php) using the class from email:
<table class="widefat fixed" cellspacing="0"> <thead> <tr class="thead"> <th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox" /></th> <th scope="col" id="clinic" class="manage-column column-email" style=""><?php _e( 'Clinic', 'register-plus-redux' ); ?></th>
then
<tbody id="users" class="list:user user-list"> <?php /*.object.*/ $user_query = new WP_User_Query( array( 'role' => 'rpr_unverified' ) ); if ( !empty( $user_query->results ) ) { $style = ''; foreach ( $user_query->results as $user ) { $style = ( $style == ' class="alternate"' ) ? '' : ' class="alternate"'; ?> <tr id="user-<?php echo $user->ID; ?>"<?php echo $style; ?>> <th scope="row" class="check-column"><input type="checkbox" name="users[]" id="user_<?php echo $user->ID; ?>" name="user_<?php echo $user->ID; ?>" value="<?php echo $user->ID; ?>"></th> <td class="username column-username"> <strong><?php if ( current_user_can( 'edit_users' ) ) echo '<a href="', esc_url( add_query_arg( array( 'user_id' => $user->ID, 'wp_http_referer' => urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), 'user-edit.php') ), '" >', $user->user_login, '</a>'; else echo $user->user_login; ?></strong><br /> <div class="row-actions"> <?php if ( current_user_can( 'promote_users' ) ) echo '<span class="edit"> <a href="', wp_nonce_url( add_query_arg( array( 'page' => 'unverified-users', 'action' => 'approve_user', 'user_id' => $user->ID, 'wp_http_referer' => urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), 'users.php'), 'register-plus-redux-unverified-users' ), '" >', __( 'Approve', 'register-plus-redux' ), '</a></span> | ', "\n"; ?> <?php echo '<span class="edit"> <a href="', wp_nonce_url( add_query_arg( array( 'page' => 'unverified-users', 'action' => 'send_verification_email', 'user_id' => $user->ID, 'wp_http_referer' => urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), 'users.php'), 'register-plus-redux-unverified-users' ), '" >', __( 'Send Verification', 'register-plus-redux' ), '</a></span> ', "\n"; ?> <?php if ( current_user_can( 'delete_users' ) ) echo '<span class="delete"> | <a href="', wp_nonce_url( add_query_arg( array( 'page' => 'unverified-users', 'action' => 'delete_user', 'user_id' => $user->ID, 'wp_http_referer' => urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), 'users.php'), 'register-plus-redux-unverified-users' ), '" class="submitdelete">', __( 'Delete', 'register-plus-redux' ), '</a></span> ', "\n"; ?> </div> </td> <td class="email column-email"><?php echo $user->rpr_clinic_name; ?></td>
And viola! it shows the custom field. I would probably take out one of the other table columns as it does start to get full fast if exact spacing isn’t set up.
Forum: Plugins
In reply to: [Ultimate CMS] JQueryUI 1.8 breaks Post Edit BackendIt is a quite jumbled code there for me. nothing really saying ‘jquery ui’…tho one part just said 1.8, so that’s now 1.9 but still having the issue…
Forum: Plugins
In reply to: [Ultimate CMS] JS error in admin menuWhat file was the jquery that you commented out??
Forum: Plugins
In reply to: [Ultimate CMS] JQueryUI 1.8 breaks Post Edit BackendWhere do you change this script.js code? In the actual plugin file, or are you talking about the overall wordpress??