![]() |
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 |
You need to add date processing similar to this line:
$userinfo[datejoined]=vbdate($dateformat,$userinfo[joindate]); |
Please could you be more specific, I know I have to add something to the memberslistbit template but not sure what
|
.
|
I'm sorry, but incessant bumping does not make me very eager to help you hack your board.
|
;)
|
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 |
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'
|
Yes, you just need to check to see if the [lastpost] field is equal to 0.
John |
Ok what sort of code do i need to put where?
|
All times are GMT. The time now is 09:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|