Goza Posted June 19, 2016 Posted June 19, 2016 I am trying to use some basic member information to display in my custom pages displaying template (record) such as warning points, reputations, member title, or birthday etc etc. However, when I tried to insert postbits it's either giving me an fatal error: call to member function reputation() on a non-object or getting no error but not displaying at all. I am new to IPS coding (coding in general) but reading the template syntax is little confusing ] Any pointers or direction how to approach this would appreciated
BN_IT_Support Posted October 9, 2016 Posted October 9, 2016 It would help if you posted what you have so far. If a call to member gives a non-object then you may need to start with loading the current member: {{$member = \IPS\Member::loggedIn();}} <p>{$member->name}</p> <p>{$member->email}</p> <p>{$member->reputation()}</p> <p>{$member->bday_day}/{$member->bday_month}/{$member->bday_year}</p>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.