Jump to content

How to add Postbit information in IP.Content


Goza

Recommended Posts

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

 

Link to comment
Share on other sites

  • 3 months later...

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>

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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