MyBB Community Forums
add last visit to postbit - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: add last visit to postbit (/thread-205004.html)



add last visit to postbit - metulburr - 2016-10-12

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.