Jump to content

Login/Register not returning field values


froot
 Share

Recommended Posts

if($user->isLoggedin() && !$input->get('profile') && !$input->get('logout')) {
echo '<h2>'.__('Mein Profil').'</h2>';
echo '<p><strong>'.$user->fields[130].': </strong>' . '<span>'.$user->givenname.'</span></p>';
echo '<p><strong>'.$user->fields[131].': </strong>' . '<span>'.$user->lastname.'</span></p>';
echo '<p><strong>'.$user->fields[92].': </strong>' . '<span>'.$user->email.'</span></p>';
echo '<p><strong>'.$user->fields[171].': </strong>' . '<span>'.$user->units_balance.'</span></p>';
}

I don't know why none of the values don't return anything (in the span tags). Also, the ->fields[] API is not very elegant either. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...