![]() |
Postbit last date and time online
1 Attachment(s)
Postbit last date and time online
This is a simple mod that will place the last date and time online in the postbit. Installation: (1) Product To Upload Via: Acp > Plugins & Products > Manage Products > Add/Import Product (1) Simple Template To Edit Via: Acp > Styles & Templates > postbit or postbit_legacy template This works on 4.0.0 up to 4.2.1 (see attached pics of 4.2.1) https://vborg.vbsupport.ru/external/2013/07/2.jpg?2Date and time in postbit https://vborg.vbsupport.ru/external/2013/07/1.jpg?1 Date only in postbit If you wish to only use the last date online in the postbit, without the time, use the XML titled LastdatePB |
That did the trick.....
One question, is it possible to take out the time of day? Currently it reads Last Online:1 Minute Ago @ 12:24 How do I change it to read Last Online:1 Minute Ago Thanks for all you have done.... Edit: Nevermind, common sense really, I figured it out... Cheers... |
Quote:
|
Any ideas how much this will slow down page load?
Also how to show just today, yesterday,... 100days ago? Thank you |
Quote:
|
For those that may have already installed this , have updated the zipfile. If you only want to use the last date online in the postbit please use the following code.
<!-- LAST ONLINE DATE START --> <vb:if condition="$post['lastactivity']"> <dt>{vb:rawphrase last_online_activity}</dt><dd>{vb:raw post.lastactivity_date} </dd> </vb:if> <!-- / LAST ONLINE DATE END --> |
Good job justicechick... Keep it up..
|
done...
|
But how can I remove the AM/PM part?
|
Quote:
and use the following when modifying your template. <!-- LAST ONLINE DATE START --> <vb:if condition="$post['lastactivity']"> <dt>{vb:rawphrase last_online_activity}</dt><dd>{vb:raw post.lastactivity_date} </dd> </vb:if> <!-- / LAST ONLINE DATE END --> |
All times are GMT. The time now is 11:00 PM. |
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:
|