Example #1
0
                            <?php
                            /***
                             * If you want to show specific profile fields here you can,
                             * but it'll add an extra query for each member in the loop
                             * (only one regardless of the number of fields you show):
                             *
                             * bp_member_profile_data( 'field=the field name' );
                             */
                            ?>
                        </div>
                    </div>

                    <div class="item-quote">
                        <?php if ( bp_get_member_latest_update() ) : ?>
                            <span class="update"> <?php bp_member_latest_update(); ?></span>
                        <?php endif; ?>
                    </div>

                    <div class="action">

                        <?php do_action( 'bp_directory_members_actions' ); ?>

                    </div>

                </div>
            </li>

        <?php endwhile; ?>

    </ul>
                </h3>

                <div><strong><?php 
        bp_member_last_active();
        ?>
</strong></div>
                @<?php 
        bp_member_user_nicename();
        ?>
            </div>

            <div class="update"><strong><?php 
        _e("Last update", 'bp-hovercards');
        ?>
</strong><br><?php 
        bp_member_latest_update('length=68');
        ?>
</div>

            <a href="<?php 
        bp_member_link();
        ?>
"><?php 
        _e("View profile", 'bp-hovercards');
        ?>
</a>

        </div>

        <div class="clear">
Example #3
0
			<div class="item">
				<div class="item-title">
					<a href="<?php 
        bp_member_permalink();
        ?>
"><?php 
        bp_member_name();
        ?>
</a>

					<?php 
        if (bp_get_member_latest_update()) {
            ?>

						<span class="update"> <?php 
            bp_member_latest_update();
            ?>
</span>

					<?php 
        }
        ?>

				</div>

				<div class="item-meta"><span class="activity"><?php 
        bp_member_last_active();
        ?>
</span></div>

				<?php 
    function x_buddypress_members_list_item_header()
    {
        ?>

    <div class="x-list-item-header">
      <div class="x-list-item-avatar-wrap item-avatar">
        <a href="<?php 
        bp_member_permalink();
        ?>
"><?php 
        bp_member_avatar();
        ?>
</a>
      </div>
      <div class="x-list-item-header-info">
        <p>
          <a href="<?php 
        bp_member_permalink();
        ?>
"><?php 
        bp_member_name();
        ?>
</a>
          <?php 
        if (bp_get_member_latest_update()) {
            ?>
            <span class="update"> <?php 
            bp_member_latest_update(array('length' => 150, 'view_link' => false));
            ?>
</span>
          <?php 
        }
        ?>
          <span class="activity"><?php 
        bp_member_last_active();
        ?>
</span>
        </p>
      </div>
    </div>

  <?php 
    }
Example #5
0
function buat_get_user_template($type)
{
    $filtered_users = buat_gather_user_ids($type);
    if (bp_has_members("include={$filtered_users}&type=alphabetical")) {
        ?>
 
    <div class="pagination">
 
        <div class="pag-count" id="member-dir-count">
            <?php 
        bp_members_pagination_count();
        ?>
        </div>
 
        <div class="pagination-links" id="member-dir-pag">
            <?php 
        bp_members_pagination_links();
        ?>
        </div>
 
    </div>
 
    <?php 
        do_action('bp_before_directory_members_list');
        ?>
 
    <ul id="members-list" class="item-list" style="list-style-type:none; margin: 0; width: auto">
    <?php 
        while (bp_members()) {
            bp_the_member();
            ?>
 
        <li>
            <div class="item-avatar">
                <a href="<?php 
            bp_member_permalink();
            ?>
"><?php 
            bp_member_avatar();
            ?>
</a>
            </div>
 
            <div class="item">
                <div class="item-title">
                    <a href="<?php 
            bp_member_permalink();
            ?>
"><?php 
            bp_member_name();
            ?>
</a>
                    <?php 
            if (bp_get_member_latest_update()) {
                ?>
                        <span class="update"> - <?php 
                bp_member_latest_update('length=10');
                ?>
</span>
                    <?php 
            }
            ?>
                </div>
                <div class="item-meta"><span class="activity"><?php 
            bp_member_last_active();
            ?>
</span></div>
 
                <?php 
            do_action('bp_directory_members_item');
            ?>
 
                <?php 
            /***
             * If you want to show specific profile fields here you can,
             * but it'll add an extra query for each member in the loop
             * (only one regadless of the number of fields you show):
             *
             * bp_member_profile_data( 'field=the field name' );
             */
            ?>
            </div>
 
            <div class="action">
                <?php 
            do_action('bp_directory_members_actions');
            ?>
            </div>
 
            <div class="clear"></div>
        </li>
 
    <?php 
        }
        ?>
    </ul>
 
    <?php 
        do_action('bp_after_directory_members_list');
        ?>
 
    <?php 
        bp_member_hidden_fields();
        ?>
 
<?php 
    } else {
        ?>
 
    <div id="message" class="info">
        <p><?php 
        _e("Sorry, no members were found.", 'buddypress');
        ?>
</p>
    </div>
 
<?php 
    }
}
			</div>

			<div class="item">
				<div class="item-title">
					<a href="<?php 
        bp_member_permalink();
        ?>
"><?php 
        bp_member_name();
        ?>
</a>
					<?php 
        if (bp_get_member_latest_update()) {
            ?>
						<span class="update"> - <?php 
            bp_member_latest_update('length=10');
            ?>
</span>
					<?php 
        }
        ?>
				</div>
				<div class="item-meta"><span class="activity"><?php 
        bp_member_last_active();
        ?>
</span></div>

				<?php 
        do_action('bp_directory_members_item');
        ?>
Example #7
0
        <div class="item-meta">
            <span class="activity">
                <?php 
bp_member_last_active();
?>
            </span>
        </div>

        <div class="item-desc">
            <p>
                <?php 
if (bp_get_member_latest_update()) {
    ?>
                    <?php 
    bp_member_latest_update(array('view_link' => true));
    ?>
                <?php 
}
?>
            </p>
        </div>

        <?php 
do_action('bp_directory_members_item');
?>

        <?php 
/***
 * If you want to show specific profile fields here you can,
 * but it'll add an extra query for each member in the loop