Exemplo n.º 1
0
function dwqa_user_question_number($user_id)
{
    _deprecated_function(__FUNCTION__, '1.3.2', 'dwqa_user_question_count( "user_id" )');
    dwqa_user_question_count($user_id);
}
Exemplo n.º 2
0
function dwqa_user_counter()
{
    $dwqa_user_question_count = dwqa_user_question_count(bp_displayed_user_id());
    $dwqa_user_answer_count = dwqa_user_answer_count(bp_displayed_user_id());
    $dwqa_user_comment_count = dwqa_user_comment_count(bp_displayed_user_id());
    ?>
    <div>
      <strong><?php 
    echo $dwqa_user_question_count;
    ?>
</strong> <span class="activity"><?php 
    echo $dwqa_user_question_count == 0 ? __('Question', 'dwqa') : __('Questions', 'dwqa');
    ?>
</span><br>
      <strong><?php 
    echo $dwqa_user_answer_count;
    ?>
</strong> <span class="activity"><?php 
    echo $dwqa_user_answer_count == 0 ? __('Answer', 'dwqa') : __('Answers', 'dwqa');
    ?>
</span><br>
      <strong><?php 
    echo $dwqa_user_comment_count;
    ?>
</strong> <span class="activity"><?php 
    echo $dwqa_user_comment_count == 0 ? __('Comment', 'dwqa') : __('Comments', 'dwqa');
    ?>
</span>
   </div>
  <?php 
}