![]() |
YESTERDAY/TODAY DATESTAMP HACK - Updated 5/25/02
Tested and working on vB 2.2.1 -> 2.2.6 Description: This hack replaces the standard "05-25-02, 02:45 PM" date with "Today" or "Yesterday" anywhere you have a date posted, if the date matches today's or yesterday's date. Demo: Installed on vBulletin.org. The following are add-ons that may be helpful depending on your specific needs. Extra features:
Please click the install button to show your support. |
Thanks for a cool hack!
|
Great hack, well done. Thnx
|
Excellent hack :)
|
well done, thanks :up:
|
Nice and clean! Should be in vB long ago :-) Maybe v3?
- djr |
Great hack, well done. Thnx
:pleased: |
good work bigmattyh
also, the instructions were very laid out and easy to read keep em coming big man!!! |
Very nice! Thanks. :up:
|
I replace the code in functions.php but nothing changed still says date and time
|
I'd be interested to see your board, so that I can help you out.
But I'm sure it isn't www.abcnews.com -- which is what you've listed as your www page. |
i don't have a board. I just install hacks and do work for Avenger board called Verbal Warfare.
|
The hack should work anywhere vbdate() is called. Check to see that it's called in the places that it isn't working. Without seeing your files, I can't diagnose the problem!
Good luck, Matt |
Nemesis77
It is working but the threads in your test forum are older than two dayes. post a new thread and you will see the hack working perfictly :greedy: |
this is just superb. simple, but so effective! thanks! :D
|
well, here's something i've noticed: see the attachment.
there's now a space between the last post info and lastpost.gif, whereas before they were tucked in real tight together. this is the case everywhere -except- the lowest forum in each category, where the small gap has been maintained. what is the reason for this, and is there a simple fix? |
Twig Deez,
I've looked at your board, and I think that's a template problem with forumdisplaybit. Take a look at that nested table that has the date display info -- and do two things: 1) In the <table> tag, set align="right" 2) Remove width="100%" That ought to do it, I think. |
Quote:
|
thanks for checking that for me, bigmattyh;
your fix didn't work, but fwc, yours did! on both forumhome and in forumdisplay. thank you both for your assistance, i'm now 125% satisfied with this hack! :D |
Cool.
|
I second that cool. :)
|
1 thing I have noticed is "edited by" messages in the post bit alaso use this time format, and by default it creates a gramatical error:
Last edited by Nickname on Today at 18:38 Last edited by Nickname on Yesterday at 18:38 Last edited by Nickname on 26-01-2002 at 18:38 See what I mean? |
I've noticed this issue, and I'm currently working on an upgrade to fix this, so that the replacement is more context-sensitive.
|
Some of my users like it, some don't. Can this be an option in their user cp?
|
Quote:
Other than that, it's a BRILLIANT hack. |
Easy - thanks!
|
Just to keep you updated, this weekend, I'm going to work on a fix for the issues mentioned above. Specifically, I'll be fixing the problem that causes grammatical errors on some pages.
So if anyone's interested, check back on Monday for a fix! |
its a few days late but did you get it fixed?
|
Very effective hack,thanks a lot :)
|
Works beautifully.
Thank you! :) Jennie |
Hey everybody,
I posted a couple of weeks ago that I would post an upgrade that would fix some of the minor unintended side effects of this hack. For example, the last-edited-by tagline can say "Last updated on Today at 8:32 PM." There are only a few places where this is an issue, but I am about to fix them. I now have the time to do it. I will post a document with fixes later tonight. :) |
Woohoo! I have been anxiously (but patiently) awaiting this for some time now.
This is the only hack I use on my board. Thanks a lot for working on it! |
The bug has been fixed, and the new release can be downloaded in the first post of this thread.
Enjoy! :) |
Thank you for that. Actually, I wrote a similar (unpublished) hack for UBB, and always wanted it on vBulletin but didn't have the patience to add it. :)
|
works great - thanks!
|
I've got to ask the mods here (and what better place to do it than in this thread) --
Is that my hack you're using on this forum?? If so, :) :) :) :)! |
Looks like this is your hack. I was sure when I saw "by FireFly on Today 02:03 AM"
|
Works just fine.
Thank you. |
Any chance of getting this hack to work for all instances, such as You last visited: 02-26-2002 12:43 AM.
To: You last visited: Today 12:43 AM. |
Works perfectly on my board. Thanks very much!
|
All times are GMT. The time now is 04:31 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:
|