Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bp_core_fetch_avatar'

Viewing 4 results - 301 through 304 (of 304 total)
  • Author
    Search Results
  • #56130
    Sven Lehnert
    Participant

    In 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.

    #56081
    Andy Peatling
    Keymaster

    <?php echo bp_core_fetch_avatar( 'item_id=' . get_the_author_id() . '&type=full&width=125&height=125' ) ?>

    BuddyPress 1.1.x only.

    #55836
    Brajesh Singh
    Participant

    hi 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

    #55825
    Brajesh Singh
    Participant

    Thanks 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.

Viewing 4 results - 301 through 304 (of 304 total)
Skip to toolbar