Search Results for 'bp_core_fetch_avatar'
-
Search Results
-
i have searched on google to solve this problem and done almost everything but cannot get rid of this error. i am new to php and do not know what is going wrong. the last two lines of the code mentioned below in the ajax.php file which is responsible for the error.
‘ if ( $friends ) {
foreach ( (array)$friends as $user_id ) {
$ud = get_userdata($user_id);
$username = $ud->user_login;
echo bp_core_fetch_avatar(array(‘item_id’ =>$user_id,’type’=>’thumb’,’width’=>15,’height’ =>15)).’ ‘.bp_core_get_user_displayname($user_id).'(‘.$username.’)’;
} ‘i would be grateful if someone can help me and point out what is wrong with the code.
regards
amitWarning: Missing argument 5 for bp_core_fetch_avatar_filter() in /home2/gtwogmin/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 479
How can I retrieve the URL to a user or group’s avatar/gravatar *without* the `IMG` HTML tag? For our site layout we’re looking to use the avatar as a background image of a DIV – so we need just the URL, none of the `IMG` stuff. For instance, I’m using the `bp_group_avatar` function to return an `IMG` tag and using a regex to match the `SRC` attribute – but this is ugly and hackish. Is there a better way?
Using Buddypress 1.2.4.1
**Edit**
Looking at the `bp_core_fetch_avatar` – I’m seeing hard-coded `IMG` tag – so I’m thinking no, this isn’t possible

Hey guys, I’m working on a plugin that is an adaptation of ravatar (which was built for for WordPress 2.5). I realise its been out of development for a while, but I’ve done some code changes and have it working on the latest 3.x WordPress – I wanted to use my own random (wavatar) type system where I design different head graphics and have them alternate colour/background etc. as I grew tired of the wavetar effect and wanted my own graphic.
Wondering if people are interested in this as a public release?
UPDATE 04/02/2013: Firstly just want to apologise for the delay – ended up getting side-tracked with a large site/project. However I just thought I’d mention that I will endeavour to get this up and will create a new topic when this happens. All the code is there on my development machine… I just wish I had more time to add in a proper backend for it!
