Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 19, 20168 yr 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
October 9, 20168 yr 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>
Archived
This topic is now archived and is closed to further replies.