1

Is it possible to show the current total userpoints a user have next to menu item?

example menu: Home | Downloads | My Points (24) | Logout

if it's possible, how would one do this (beginner)

1

This snippet will return you user points :

<?php
print userpoints_get_current_points($user->uid);
?>

But to Place this PHP snippet in menu link, you may need Menu views and PHP Menu Modules

|improve this answer|||||
  • Thank you, it turns out you only need the Menu Views modules only to show the total amount of Userpoints as it already integrated inside views. Can't seem to upvote your anwers right now, I dont seem to have enough reputation. Will upvote it later :) – Damienov Nov 29 '14 at 16:06
  • Glad that helped you :) – Pravin Ajaaz Dec 1 '14 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.