friends widget for the profile sidebar
i like the possibility to show your friends in the profile sidebar:
sidebar plugin: http://buddypressdev.org/plugins/bpdev-profile-sidebar/
i’am trying to make a widget to realise it. but i have some problems with it. it works but i am not able to figure out a way to have a extra size for the thumbnails at the side bar. or let’s say i am not able to figure out a way without changing the core files. if possible i want to avoid that. maybe someone here can help me.
first here is what i did:
widget v1 code: http://pastie.org/398710
you see, it works but only with one of the standard sizes. i took “avatoar_mini” same as the picture in the header at “user/logout”.
like i said i figured out a way to customize the size of the picture. for this made some slightly changes.
widget v2 code: http://pastie.org/398735
in addition i had to make some changes in the bp-core-classes.php:
i inserted on line 16: var $avatar_thumb_sb;
and on line 68: $this->avatar_thumb_sb = bp_core_get_avatar( $this->id, 1, 30, 30, false );
now i have my size. no example for that, but it works.
my question would be: is there a way to customize the size of the sidebar thumbnail without changing core files?
p.s.: sorry for the bad english.
- The topic ‘friends widget for the profile sidebar’ is closed to new replies.