• Resolved xiot

    (@xiot)


    Hi,

    I’m not a coder but trying different things by myself.

    Through some research i found out how to write something like this;

    <?php
    if (is_user_logged_in()==TRUE) {
    	echo 'You have currently '.mycred_get_users_cred( $user_id, $type ). ' Tickets';
    } else {
    	echo 'Log in to see your Ticket Balance';
    				}
    				?>

    But this isnt working properly. It doesnt display the logged out version somehow.
    I did some research here but couldnt figure out why this isnt working.

    Thanks in advance, I’m thankful for every hint.

Viewing 1 replies (of 1 total)
  • Thread Starter xiot

    (@xiot)

    OK its no problem anymore, it finally appeared after a refresh 5 minutes later!

    Thanks anyway, great support here!

Viewing 1 replies (of 1 total)
  • The topic ‘IF Logged echo this else echo that – not working’ is closed to new replies.