Exemplo n.º 1
0
?>
		</div>

		<?php 
bp_custom_profile_sidebar_boxes();
?>
	</div>

	<div class="main-column">
		<?php 
bp_get_profile_header();
?>

		<?php 
if (function_exists('bp_activity_get_list')) {
    ?>
			
			<?php 
    bp_activity_get_list(bp_current_user_id(), bp_word_or_name(__("Mi actividad", 'buddypress'), __("Actividad de %s", 'buddypress'), true, false), bp_word_or_name(__("Aun no has hecho nada.", 'buddypress'), __("%s no ha hecho nada aun.", 'buddypress'), true, false));
    ?>
		
		<?php 
}
?>
		
	</div>

</div>

<?php 
get_footer();
Exemplo n.º 2
0
/**
 * Добавление формы синхронизации в профиль пользователя в Buddypress
 */
function ulogin_bp_custom_profile_edit_fields()
{
    global $current_user;
    echo '<br>';
    $user_id = $current_user->ID;
    if ($user_id == bp_current_user_id() && bp_current_user_id() == bp_displayed_user_id() && bp_current_user_id() > 0) {
        ulogin_synchronisation_panel($user_id);
    }
}
Exemplo n.º 3
0
?>

	</div>

	<div class="main-column">
		
		<?php 
bp_get_profile_header();
?>
	
		<?php 
if (function_exists('bp_activity_get_list')) {
    ?>
			
			<?php 
    bp_activity_get_list(bp_current_user_id(), __('My Friends Activity', 'buddypress'), __("Your friends haven't done anything yet.", 'buddypress'));
    ?>
			
		<?php 
}
?>
			
	</div>

</div>

<?php 
get_footer();
?>

Exemplo n.º 4
0
		
			<?php 
if (function_exists('bp_friends_random_friends')) {
    ?>
				<?php 
    bp_friends_random_friends();
    ?>
			<?php 
}
?>

			<?php 
bp_custom_profile_boxes();
?>

			<?php 
if (function_exists('bp_wire_get_post_list')) {
    ?>
				<?php 
    bp_wire_get_post_list(bp_current_user_id(), bp_word_or_name(__("My Wire", 'buddypress'), __("%s's Wire", 'buddypress'), true, false), bp_word_or_name(__("No one has posted to your wire yet.", 'buddypress'), __("No one has posted to %s's wire yet.", 'buddypress'), true, false), bp_profile_wire_can_post());
    ?>
			<?php 
}
?>
		</div>
	</div>

</div>

<?php 
get_footer();
/**
 * User statistics function - gets activity count
 *
 * @since 1.0
 */
function status_user_activity_count($action)
{
    $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : bp_current_user_id();
    $args = array('user_id' => $user_id, 'action' => $action);
    $user_activity = bp_activity_get(array('filter' => $args));
    return $user_activity['total'];
}