ACCORD5
Add a reply

ACCORD5 Company Forums » Trellis Desk » General Discussion

Display custom field on member in frontend

 
  • Started 4 years ago by marcelv9
  • 2 posts in this topic
  • Latest reply from marcelv9
  1. User has not uploaded an avatar

    marcelv9
    Member

    I have added a field to ad_member.php. I now have this field visible in the account/member configuration , and users can check true or false. This works correctly, and is also visible in the database (tinyint, 1 or 0).

    I want the value of this field visible on the homepage once a user is logged in. So i changed the temlpate file (wrapper.tpl). I added this line of code:
    'staff {$member['isstaff']}'. The name of my field is 'isstaff' everywhere. Whenever I change this field to for example 'dst_active', it works. It shows 0 or 1. But the value of isstaff just does not showup.

    How can I do this? Any help would be appreciated. Thanks in advance.

    Posted 4 years ago #
  2. User has not uploaded an avatar

    marcelv9
    Member

    Nevermind, found it! I had to change my select query in class_session

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.