Helping you Build Your Own Social Network!

Faster, better and easier!

re size avatar for sidebars

(2 posts) (2 voices)

Tags:

No tags yet.


  1. Hi,

    I am using custom avatars which over ride default avatar for groups and users. But i want to fix the size for all avatars in sidebar.

    Is there a way to detect if avatars are being displayed in sidebar ? or is there a way to detect if avatar is being displayed in a widget.

    thanks.

    Posted 1 year ago #
  2. @gwu

    Hi, I have just created a widget for that,
    test and download at http://www.peeps-chat.com/my-buddys-list-widget.zip
    If you would like to change avatar size then on line 148
    where it has "><?php bp_member_avatar() ?>
    insert this 'type=full&width=x&height=x' x being size ie: 50
    when done it should look like
    "><?php bp_member_avatar('type=full&width=50&height=50') ?>

    But as this is also a div you'll have to remove the <div class="item-avatar"> line 144 also </div> on line 152,

    This is my 1st version, So please be patient and I'll do it so that image size is intergrated into the plugin, Let my know how it works.

    Thanks

    Posted 1 year ago #

Reply

You must log in to post.