vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Yesterday/Today Datestamp Hack (https://vborg.vbsupport.ru/showthread.php?t=34527)

Bugz 12-29-2002 11:36 PM

Quote:

Originally posted by glas
I'm using 2.2.9...tried installing it but doesn't work...now there's problems.

http://www.charming-holly.com/hhg

uninstall and retry it i just applyed the hack on my new site forums that are not open yet. so i know they work.

[edit] i just checked an unhacked version of functions and you souldnt even be near the line 812 with this hack [/edit]



bigmattyh remember when I was a dip++++ and asked about why it said at, in my member list I figured it was the template way back when right. so when I just installed it I did it again and was gonna post about it but instead I searched for my post and realized what it was. :cheeky: I helped my self lol.

glas 12-30-2002 12:53 AM

Got it fixed...

drumsy 01-10-2003 08:45 PM

Anyone have this in another format for download other than .rtf?

Red Blaze 02-24-2003 02:53 PM

EDIT: Nevermind about the error, it's fixed thanks to my co-admin. The hack works great. :)

Nomb 02-25-2003 12:00 AM

For the format "Yesterday/Today, at 6:00 pm" in 2.2.8 (Probably the same for 2.2.9) I just changed this (In admin/functions.php):

PHP Code:

    if ($date==$todaydate) {
      
$date="Today";
    }
    if (
$date==$yestdate) {
      
$date="Yesterday";
    } 

to this:

PHP Code:

    if ($date==$todaydate) {
      
$date="Today, at";
    }
    if (
$date==$yestdate) {
      
$date="Yesterday, at";
    } 

:D

Great Hack!

jcary 02-26-2003 07:49 PM

<i>Edited by jcary:</i> Solved my own problem! Great hack!

Thanks.

Josh

julius 02-28-2003 09:23 AM

When you forward or send a reply to a private message, in the out box and the in box there is
Quote:

Fw: julius

quote:

julius wrote on Today 11:59 AM:


The "Today" is still there after some days. I think it would be better the date
Quote:

Fw: julius

quote:

julius wrote on 02-28-2003 11:59 AM:


as when you edit a post.

ChevyMan 03-03-2003 09:06 AM

I like this but I do not have a date showing now so I cannot change it. Do someone know how to add the date to the last posted?

Gutspiller 03-21-2003 12:49 PM

Quote:

05-03-02 at 04:22 PM bigmattyh said this in Post #86
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]).
" , at ".vbdate($timeformat,$bbuserinfo[lastvisit])."\";");

That's all!

What file is that in? I can't seem to find that code in my function.php
:(

Gutspiller 03-21-2003 12:50 PM

Quote:

05-03-02 at 04:22 PM bigmattyh said this in Post #86
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]).
" , at ".vbdate($timeformat,$bbuserinfo[lastvisit])."\";");

That's all!

What file is that in? I can't seem to find that code in my function.php
:(

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

Quote:

Today at 03:21 PM Mist said this in Post #252
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

Quote:

Yesterday at 08:50 AM Gutspiller said this in Post #250


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

Quote:

Today at 05:36 PM Boofo said this in Post #254



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

Quote:

Today at 07:41 PM Boofo said this in Post #256
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

Quote:

Today at 02:06 PM AlexanderT said this in Post #259
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/showthrea...532#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/showthrea...266#post253266

PurpleCow 03-29-2003 10:21 AM

Its a nice hack, I installed it and works fine....

[high]* HostBubble clicks on the installed link !
[/high]

:)

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 :)

[high]* Frozen Dreams goes to click install[/high]

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

Quote:

02-28-03 at 01:23 PM julius said this in Post #247
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):
PHP Code:

    $message[postdate]=vbdate($dateformat,$message[dateline]);
    
$message[posttime]=vbdate($timeformat,$message[dateline]); 

and change to:
PHP Code:

    $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
PHP Code:

\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 :)


All times are GMT. The time now is 05:51 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
  • Page Generation 0.01747 seconds
  • Memory Usage 1,847KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete