![]() |
I found a small request I'd like for this hack, but I don't know if its possible. I noticed that on $bbuserinfo[lastvisitdate] the date shows up without the Today or Yesterday timestamp. Is it possible to hack the code so that the date given by this will display the today/yesterday plus the time? It already shows the date last visted and than the time, so the only thing that would need to be changed would be the actual way the date is outputed.
I'd take a screenshot and show you, but I'm using this code on my design for PJ v3 so, well, you get the piucture :) Hopefully someone can take a look at this ;) |
Hi Matt,
People are now showing as registering as "Today" and "Yesterday" fine. I think I thought they weren't showing properly because I have my timestamp set a different time than the time on server. Thanks anyway Matt - Great Hack! |
If you want $bbuserinfo[lastvisitdate] to follow the "Today 8:33 AM" format, here's how:
1) In index.php, around line 65, find: PHP Code:
PHP Code:
|
Screenshot:
|
Would it be possible to make it so it says "Today at 04:47", with the AT in there for gramatical purposes? If its not to much trouble that is?
|
If you would like your date to be formatted in the "Today, at 08:33 PM" format, here's how to do so:
When you install the hack, just insert ", at" into this line: Code:
eval("\$bbuserinfo[lastvisitdate] = \"".vbdate($dateformat,$bbuserinfo[lastvisit]). |
Worked Perfectly, Thanks!
BTW, great hack, totally usefull :) |
bigmattyh, good addon :) Add this for first post :)
|
Quote:
|
That is a nice addon, bigmattyh. :cool:
|
All times are GMT. The time now is 06:36 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:
|