Search Results for 'bp_core_fetch_avatar'
-
AuthorSearch Results
-
November 7, 2009 at 11:15 am #56130
In reply to: How to display avatars in normal theme at 125px?
Sven LehnertParticipantIn the moment, I do what Andy has offered above.
Members:
<?php echo bp_core_fetch_avatar(
'item_id=' . get_the_author_id() . '&type=full&width=100&height=100' ) ?>Groups:
<?php echo bp_core_fetch_avatar( 'item_id=' . bp_get_the_site_group_id()
. '&object=group&type=full&width=100&height=100' ) ?>Just I think this is the same as doing it in the css.
I like to know how to change the original size at the moment when its created.
But I don’t want to define these with custom values in wp-config.php.
I’m looking for a solution to have control of the Avatar size in custom components.
for example: In the bp-events Plugin, I would like to change the Avatar format to a Flyer format.
Most of the Event Flyer, people want to upload, do not feed the Avatar size from Buddypress.
So they just get a cuted piece of there flayer.
I relay would like to change this.
November 6, 2009 at 3:03 pm #56081In reply to: How to display avatars in normal theme at 125px?
Andy PeatlingKeymaster<?php echo bp_core_fetch_avatar( 'item_id=' . get_the_author_id() . '&type=full&width=125&height=125' ) ?>
BuddyPress 1.1.x only.
November 3, 2009 at 11:46 pm #55836In reply to: w3c compliant coding and buddypress
Brajesh SinghParticipanthi Andy
You were right.I just changed one line in bp_core_fetch_avatar and it worked .No more ids ,no more problem
I changed
return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
to
return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' class='{$class}'{$html_width}{$html_height} />", $params );
Thanks
Brajesh
November 3, 2009 at 10:11 pm #55825In reply to: w3c compliant coding and buddypress
Brajesh SinghParticipantThanks for the suggestion DJPaul
I will take another look at the bp_core_fetch_avatar and see if I can implement the code to remove id and upload to trac if done.
and yeh David,I agree with you,the ids should not be used for things which are supposed to exist multiple time on the page.
-
AuthorSearch Results