Maven Member
User Display Enhancement (1 post)

  1. jsmith71
    Posted 4 years ago #

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin ]

    Thanks for the great plugin!

    We found it necessary to make a minor modification to the user window in order to decrease the number of clicks for admin approval. Rather than simply displaying the username and an enable checkbox, we wanted all of the registration fields displayed in Maven-Member->Users.

    Would you be willing to consider incorporating something like what we've done in your next release?

    We added the following code at around line 147 in users-view.php to accomplish this:

    Thank you,

    <?php $fields =  $this->get_registration_class()->get_non_wp_fields(); ?>
    $mod_array=$this->users_m->get_meta($user->ID, 'maven-member-registration-fields',true);
             foreach($mod_array as $mod):
            <?php foreach($fields as $field): ?>
            <?php $counter++; ?>
    			<?php	$title_label=preg_replace('/\s+?(\S+)?$/', '', substr($field->name, 0, 7)); ?>
                                <span class="title"><?php _e($title_label,maven_translation_key()); ?></span>
                                <span class="input-text-wrap"><input type="text" value="<?php echo $mod_values[$counter]; ?>" class="ptitle" id="maven-<?php echo $field->id; ?>" readonly="readonly"></span>
            <?php endforeach;?>


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Maven Member
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic