Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatars in the list of groups


  • Patryk
    Participant

    @patrykos360

    How to change the resolution, avatar, the list of groups?
    when I changed the css, image displays poorly ;/

Viewing 10 replies - 1 through 10 (of 10 total)
  • You can set new widths using define (constants) or by feeding width/height parameters on the avatar function calls in the templates – The BP codex should have examples Only use CSS if you’re reducing the dimensions but only if slightly as you’re still calling a larger size image where it may not be needed.


    Patryk
    Participant

    @patrykos360

    I changed the size of the code groups-loop.php
    it did not work, which files I have to edit?

    Which files have you tried to edit?

     

    The standard file has this to generate the avatars:

    bp_group_avatar( ‘type=thumb&width=50&height=50’ )

    You can change type to ‘full’ and/or change the sizes , do so in a child theme copy of the file though to preserve your changes .


    Patryk
    Participant

    @patrykos360

    @Hugo

    http://pastebin.com/E4SqsizF groups-loop.php
    Css
    `.messages.bp-wrapper .avatar,
    .bp-wrapper .thread-avatar .avatar,
    .item-list li .avatar
    .bp-wrapper #whats-new-avatar .avatar { width: 50px; height: 50px; }
    .bp-wrapper .item-list div.activity-avatar img,
    .widget .swa-activity-list div.swa-activity-avatar img {
    float: left;
    width: 100px;
    height: 100px;
    margin: 3px 12px 3px 3px;
    }`

    And the avatar is displayed for a resolution of 35×35 🙂 I do not understand this ;/


    Patryk
    Participant

    @patrykos360

    @Hugo
    I’m sorry,i wrote it incorrectly. Avatar displays in resolution 100×100, but “buddypress” while addition changes its resolution in 35×35 in miniatures and because of that the picture displays very unintelligibly


    Patryk
    Participant

    @patrykos360

    @Hugo
    Mayby in the database can change something?


    Patryk
    Participant

    @patrykos360

    ok it’s working, you can close the topic 🙂
    problem was the file “/ wp-content/plugins/bp-template-pack/bpt-functions.php”


    Patryk
    Participant

    @patrykos360

    @Hugo
    thank you for your help 🙂


    Patryk
    Participant

    @patrykos360

    But again, does not work, only fixed the avatar is displayed in groups and profil 128×128, the sections “THUMB” profiles are displayed in 35×35
    I give up, I do not know what’s going on


    ravey
    Participant

    @ravey

    For anyone wanting to do this I figured it out.
    Step 1: Go to your child theme and find /groups/groups-loop.php find the code that says

    <div class="item-avatar">
    				<a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=45&height=45' ); ?></a>
    			</div>

    Step 2:
    You will replace that code with “group-header” code found here(groups/single/group-header.php)

    <div id="item-header-avatar">
    	<a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>">
    
    		<?php bp_group_avatar(); ?>
    
    	</a>
    </div><!-- #item-header-avatar -->

    That worked for me. Probably not the best route to altering it if you want to do a lot of CSS modifications to the “Group Forum Listing.” But if you want to just change the size to something larger this works.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Avatars in the list of groups’ is closed to new replies.
Skip to toolbar