Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How the Online block can appear as a a grid


ronia
Participant

@ronia

Hi Jeff! Thanks a lot for the detailed examples. I do have Firebug – its a helpful tool

The problem here is how to tell the code to generate the stuff so that the output is in a grid or table-cell pattern. The rest can be then done with css.

Usually the admin interface for many cms has option to define the elements in a block on one of the chosen ways : list, grid etc. Here we do not have that. So css only probably can’t help.

The relevant code is

<div class="avatar-block">

<?php foreach ( (array) $users['users'] as $user ) : ?>

<div class="item-avatar">

user_id) ?>" title="<?php bp_fetch_user_fullname( $user->user_id, true ) ?>"><?php echo bp_core_get_avatar( $user->user_id, 1 ) ?>

</div>

<?php endforeach; ?>

Question is how I tweak the code so that the output is in table-row-column or cell form or grid form ?

Skip to toolbar