Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter chuyqwerty

    (@chuyqwerty)

    I am logged in. I think maybe it can’t tell I am logged in because of my theme?
    Is there a way I can just have all shortcodes show even if I am not logged in?

    I would like [mycred_my_rank] and [mycred_my_balance] to show even if they are not logged in. So if users visit their profile they can see it as well.

    Is it possible to do this? Maybe its that “NULL” part of the code I have to modify, but I dont know PHP to make this happen. If you’re so kind, your help would be greatly appreciated again.

    Thank you

    Plugin Author myCred

    (@designbymerovingi)

    Hi chuyqwerty.

    The mycred_my_rank shortcode will show the current logged in users ranking or if you have set the user_id attribute, a specific users ranking. If you do not set a user_id and are logged out, the shortcode will show nothing (NULL).

    The mycred_my_balance shortcode will only show the logged in users balance that is viewing the page / post where you have inserted the shortcode.

    You can not show logged out users balance since we do not know who the visitor is if they are not logged in so there is unfortunately no way you can change this unless you somehow know 100% who is visiting your website without them being logged in.

    Thread Starter chuyqwerty

    (@chuyqwerty)

    Ok, I see

    Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My Ranking Shortcode’ is closed to new replies.