Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8554725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:56:53+00:00 2026-06-11T14:56:53+00:00

i currently encounter a problem in the activity i was adding to each user

  • 0

i currently encounter a problem in the activity i was adding to each user to be displayed its cubepoint rank i have added the following

<?php echo cp_module_ranks_getRank( bp_displayed_user_id() ); ?>

but it dosent seem to work it seems to repeat the same rank on each user again and again it stays in level 1 also i have applied that same code.

i posted above and it works for each users profile so it displays there actual rank so its weird i will be posting an image of what i mean, thank you have a nice day.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:56:54+00:00Added an answer on June 11, 2026 at 2:56 pm

    bp_displayed_user_id() is used on a member profile page to determine the ID of the user’s profile currently being shown, but it won’t update when part of the loop. Depending on which type of loop you are using, you need to use one of the following methods:

    For the activity loop, the function would be bp_get_activity_user_id() to return the ID and bp_activity_user_id() to echo it. For you case you would want to use:

    <?php echo cp_module_ranks_getRank( bp_get_activity_user_id() ); ?>
    

    In the case of the member loop, the function would be bp_get_member_user_id() to return the ID and bp_member_user_id() to echo it:

    <?php echo cp_module_ranks_getRank( bp_get_member_user_id() ); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have the problem that I encounter an exception I never saw before
I'm currently exploring powershell capabilities, but I have encountered a problem that I have
I currently have three independent projects on my plate - each requiring development in
I currently encountered a problem: I want to handle adding strings to other strings
I currently have a helper class to perform rudimentary AsyncTasks such as the following.
I currently encounter a problem and wonder if there exists a better solution for
I have encountered a problem with passing data from another activity to the current
I have currently switched working with SVN (Tortoise). This is my first encounter with
I only know basic concepts for multi-threading, and I currently encounter a situation that
Currently I'm trying to write my first Python library and I've encountered the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.