WordPress.org

Ready to get started?Download WordPress

Forums

Members
love your plugin! can i ask for a feature? :) (1 post)

  1. asafche
    Member
    Posted 2 years ago #

    I've added a feature to the login widget, so i can customise the size of the shown avatar. Here is the code that I added to specific lines in widget-login-form.php. I hope you'll except this change of code, and implement it in the next update. but if you won't please notice me, so I could add it myself. thanks.

    Line 64:
    'avatar-size' => !empty( $instance['avatar-size']) ? 96 : $instance['avatar-size'],

    Line 89:

    echo get_avatar( $user_ID , $instance['avatar-size'] );

    Line 101:

    echo get_avatar( $user_ID , $instance['avatar-size'] );

    Line 132:
    $instance['avatar-size'] = strip_tags( $new_instance['avatar-size'] );

    Line 171:
    'avatar-size' => '96',

    Line 250 - Line 253:

    <p>
    			<label for="<?php echo $this->get_field_id( 'avatar-size' ); ?>"><code>Only digits, in px</code></label>
    			<input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'avatar-size' ); ?>" name="<?php echo $this->get_field_name( 'avatar-size' ); ?>" value="<?php echo $instance['avatar-size']; ?>" />
    		</p>

    http://wordpress.org/extend/plugins/members/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic