View Full Version : Yesterday/Today Datestamp Hack
Gutspiller
03-22-2003, 08:12 PM
Bug found, When you edit a post it says
"Originally posted by Gutspiller on Today 03:03 PM"
That don't really make sense now do it. Anyway to fix that small thing so it sounds good when it shows today/yesterday or the numberic date?
Dean C
03-22-2003, 08:21 PM
bigmattyh gave the fix - i believe it is functions.php :)
Gutspiller
03-22-2003, 10:31 PM
Today at 03:21 PM Mist said this in Post #252 (https://vborg.vbsupport.ru/showthread.php?postid=371518#post371518)
bigmattyh gave the fix - i believe it is functions.php :)
Don't find those lines in my function.php :(
Boofo
03-22-2003, 10:36 PM
Yesterday at 08:50 AM Gutspiller said this in Post #250 (https://vborg.vbsupport.ru/showthread.php?postid=370632#post370632)
What file is that in? I can't seem to find that code in my function.php
:(
forum/index.php
Gutspiller
03-22-2003, 11:23 PM
Today at 05:36 PM Boofo said this in Post #254 (https://vborg.vbsupport.ru/showthread.php?postid=371564#post371564)
forum/index.php
That seems to only fix where it says
"You last visited: Today , at 12:48 PM"
There still needs to be a "at" in the last date post on forum index and forum display AND where I stated before, when you edit a post it displays
"Originally posted by Gutspiller on Today 05:55 PM"
Which isn't even proper engrish.
This is more like a beta hack if these small things can't be fix isn't it?
Thanks for the help so far, any more left in ya? ;)
Boofo
03-23-2003, 12:41 AM
editpost template
Gutspiller
03-23-2003, 02:51 AM
Today at 07:41 PM Boofo said this in Post #256 (https://vborg.vbsupport.ru/showthread.php?postid=371613#post371613)
editpost template
and how do I edit it so when it's "today" or "yesterday" it says one thing in the template, and when it's past today or yesterday it changes it?
Because "Today at 12:30 PM" sounds fine, but 3/22/03 at 12:30 PM sounds lame. maybe 12:30 on 3/22/03 could work. But how do I get it to say one thing if today/yesterday and the other if it's a actual date? :ermm:
Boofo
03-23-2003, 03:54 AM
Install Logician's Dynamic templates hack and you can do what you want very easily inside the template itself. I just did it and it works fine. ;)
AlexanderT
03-28-2003, 05:06 PM
I noticed that the in forumhome, the "Today" entry in the "Last Post" column is not perfectly aligned (see attached image). Does anyone know the proper html code to fix that?
Smoothie
03-28-2003, 06:20 PM
Today at 02:06 PM AlexanderT said this in Post #259 (https://vborg.vbsupport.ru/showthread.php?postid=374599#post374599)
I noticed that the in forumhome, the "Today" entry in the "Last Post" column is not perfectly aligned (see attached image). Does anyone know the proper html code to fix that?
https://vborg.vbsupport.ru/showthread.php?postid=254532#post254532
same for forumhome
AlexanderT
03-28-2003, 08:38 PM
where did I put my glasses again... will look better next time. Thanks!
BTW: For all the other blind people like me.. the working solution is this one: https://vborg.vbsupport.ru/showthread.php?postid=253266#post253266
PurpleCow
03-29-2003, 10:21 AM
Its a nice hack, I installed it and works fine....
* HostBubble clicks on the installed link !
:)
Geminy
04-05-2003, 02:04 PM
This is the Italian translate of the hack
Questa ? la traduzione in Italiano dell'Hack.
Gutspiller
04-16-2003, 04:33 AM
How do I call the regular time, so that even if it was yesterday it still says the numbers instead of yesterday/today? I would like to have the option of where it says today and yesterday and other places not to.
When people quote each other I have it show the date of the original post. However, having this timestamp hack installed, their quotes say today or yesterday, but since it doesn't update the quote, the quotes are left saying today and yesterday forever.
Is there another command I can call so that it doesn't show the today or yesterday in the quotes, without removing the entire date?
Frozen Dreams
04-29-2003, 12:58 PM
had probs the first time - now (few days later) works like a charm
thanks :)
* Frozen Dreams goes to click install
ogden2k
05-03-2003, 07:26 PM
The only thing that I see that doesn't work, is if you search for a user to prune in the ACP. It shows:
Last visit at:
Today, at
ogden2k
05-06-2003, 05:54 PM
Also on the annoucements it just shows Today, at ??
Darwinist
05-12-2003, 06:37 AM
What about dropping the leading '0'... for example,
02:24 AM -> 2:24 AM
Boofo
05-12-2003, 06:45 AM
You can do that in your vbulletin options when you set up the time format. ;)
Ember
05-17-2003, 08:31 AM
Nice hack, thanks =)
cyrus
05-31-2003, 03:15 PM
EXCELLENT, THIS ONES SO EASY TO INSTALL AND JUST AS USEFUL ;)
KEEP IT UP !
julius
06-01-2003, 11:18 AM
02-28-03 at 01:23 PM julius said this in Post #247 (https://vborg.vbsupport.ru/showthread.php?postid=359392#post359392)
When you forward or send a reply to a private message, in the out box and the in box the "Today" is still there after some days. I think it would be better in these cases the date, as when you edit a post. I solved this:
in private.php find (NOT the first, but the second at about line 514):
$message[postdate]=vbdate($dateformat,$message[dateline]);
$message[posttime]=vbdate($timeformat,$message[dateline]); and change to: $message[postdate]=vbdatenoty($dateformat,$message[dateline]);
$message[posttime]=vbdatenoty($timeformat,$message[dateline]);
That's all.
reismarktq2
06-12-2003, 04:49 PM
With the exception of a few Finns, most of my users like this hack very much. Would anyone know how to make this hack a user-selectable option so that I can appease the not-so-silent minority on my boards?
Ninth Dimension
07-01-2003, 02:20 PM
great hack, thank you
kristian
11-17-2003, 09:12 AM
Installed first time withou any problems at all...
vBulletin Version 2.3.3
Might be nice to update the install document with new code references as the version this was originaly written for is well outdated.
VirtualHogwarts
11-29-2003, 04:14 PM
/me clicks install!
Love this .. dont understand why it's not defualt but hey easy install none the less!
Shell Geeks
12-26-2003, 11:24 PM
Does anyone have a text file of this hack? I have downloaded it three times and the text file looks like
\clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr
\brdrnone \cltxlrtb\clftsWidth3\clwWidth2088\clshdrawnil
\par global $bbuserinfo,$timeoffset, $dateformat, $timeformat;
\par
\par if ($dateformat==$format) \{
\par $todaystamp=mktime();
\par $todaydate=date($format,$todaystamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
\par $yestdate=date($format,(($todaystamp-86400)+($bbuserinfo['timezoneoffset']-$timeoffset)*3600));
\par $date = date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
\par if ($date==$todaydate) \{
\par $date="Today";
\par \}
\par if ($date==$yestdate) \{
\par $date="Yesterday";
\par \}
\par \} else \{
\par $date = date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*3600);
\par \}
\par return $date;
\par \}
\par
\par {\listtext\pard\plain\f35\fs20\insrsid9528220 \hich\af35\dbch\af0\loch\f35
enginethatcan't
12-28-2003, 06:50 PM
Installed
DarkSavior
01-24-2004, 03:55 AM
Wow, easy install! Works great on 2.3.4! Two thumbs up! :)
TheLab
01-24-2004, 04:13 PM
Ok after i resolved my noob problems i installed it and it works great on 2.3.2 :)
lordofgun
07-02-2004, 04:24 PM
Installed the original instructions in post #1 on VB 2.3.5 - worked like a charm!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.