• Resolved tomasward

    (@tomasward)


    Hello,

    How can I display the user balance and rank of other users dynamically (not the current logged in user, nor just a specific user.). I would use this in author archive pages for example for others to see in which rank other players are.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @tomasward

    The unique way to perform this is by modifying the author template (you can override any theme template by copying it on your child theme directory) and adding the GamiPress shortcodes with the current user option to “no” and with the user_id of the author displayed

    Hope it helps

    Hi @rubengc I have a similar problem and want to display user badges on user profiles (my membership plugin is UsersWP). So, do I need a variable that defines the user_id of the author displayed? And I guess it should be defined by the membership plugin, right?

    Plugin Author Ruben Garcia

    (@rubengc)

    Hi @royalbunny

    Exactly, you need to pass the author ID from the plugin functions you are using and, as I mentioned to @tomasward, you need to set the current_user option to “no”

    Hope it helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic User Ranks & Points’ is closed to new replies.