Hi @m1000
GamiPress just will prevent to render any shortcode when you set the attribute “current_user” to “yes” since current user is a guest
But if you set it to “no” and you bring a user ID then all this shortcodes will render the specific user information
Hope it helps
Best regards
Thread Starter
m1000
(@m1000)
As you can see in my previous post I already added current_user=”no” and user_id=”‘ . bp_displayed_user_id() . ‘”
Even if I use fixed value
user_id="1"
it displays achievements for logged in members only.
Thread Starter
m1000
(@m1000)
I see where is the source of problem. Your plugin displays user-has-not-earned class for all achievements and ranks when user is not logged. Please take a look on the screenshot:
View post on imgur.com
Hi @m1000
The user-has-not-earned
class doesn’t hides the achievement, just adds a small opacity on it’s image so if achievements with this class aren’t getting displayed then check if you have added custom CSS
About this class after a deep check we just find that GamiPress incorrectly set all achievements to not earned when user is not logged in to all achievements (instead of display the earned status of the user you pass on the shortcode)
We targeted this bug and a fix will releas on the next update
Thank you so much for your report
Best regards
Thread Starter
m1000
(@m1000)
It looks like the fix is very easy, there should be removed
is_user_logged_in() &&
in the wp-content/plugins/gamipress/templates/achievement.php:16
Hi @m1000
Yes, exactly, but we need to include it on an update in order to apply this fix on all installs
You can edit the plugin files right now since on the next update you will get exactly the same fix so you won’t lose the change
If you want to make you own edits to those templates, remember that GamiPress includes a template system to let you safe override any template
Best regards