MyBB Community Forums

Full Version: add last visit to postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This just gives me a unix timestamp
{$post['lastvisit']}

I have template conditionals installed so i tried to add

		Last Visit: <if 1 then>gmdate("Y-m-d\TH:i:s\Z", {$post['lastvisit']});</if>

but i am not sure how to execute the php code to convert it.

I would like it to read how it does in the profile such as 1 minute ago/15 minutes ago/ etc.