PDA

View Full Version : Printing Last Post time and date


antilife
28 May 2001, 08:47
Hi.

I've added a new column to my members page where I want to put the time and date of each members last post but can't work out which variable etc I need. Could someone help me...

Thanks

Mike Sullivan
28 May 2001, 16:57
You need to add date processing similar to this line:

$userinfo[datejoined]=vbdate($dateformat,$userinfo[joindate]);

Tanya
28 May 2001, 17:15
Please could you be more specific, I know I have to add something to the memberslistbit template but not sure what

Tanya
28 May 2001, 21:05
.

Mike Sullivan
28 May 2001, 21:09
I'm sorry, but incessant bumping does not make me very eager to help you hack your board.

NORRITT
29 May 2001, 14:11
;)

John Percival
30 May 2001, 07:52
Put the code that Ed gave into your memberlist.php file, replacing [datejoined] with [lastpost], at about line 116.

You can then use $userinfo[lastpost] in you memberlistbit template.

John

antilife
05 Jun 2001, 13:15
Ok that works great but can I really be cheeky and ask one more thing. At the moment it says 01-01-1970 in the lastposted column if they have never posted. Can it be changed to 'never'

John Percival
05 Jun 2001, 18:21
Yes, you just need to check to see if the [lastpost] field is equal to 0.

John

antilife
05 Jun 2001, 20:28
Ok what sort of code do i need to put where?

Freddie Bingham
30 Oct 2001, 23:27
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------