WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Maven Member] User Display Enhancement

[Plugin: Maven Member] User Display Enhancement

  • [ 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,
    Jim

    <?php $fields =  $this->get_registration_class()->get_non_wp_fields(); ?>
    <?php
    $mod_array=$this->users_m->get_meta($user->ID, 'maven-member-registration-fields',true);
    $mod_values=array();
             foreach($mod_array as $mod):
            array_push($mod_values,$mod->value);
            endforeach;
    $counter=-1;
    ?>
            <?php foreach($fields as $field): ?>
            <?php $counter++; ?>
    			<?php	$title_label=preg_replace('/\s+?(\S+)?$/', '', substr($field->name, 0, 7)); ?>
                           <label>
                                <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>
                            </label>
            <?php endforeach;?>

    http://wordpress.org/extend/plugins/maven-member/

  • The topic ‘[Plugin: Maven Member] User Display Enhancement’ is closed to new replies.