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)

bigmattyh 09-13-2002 08:15 PM

Right... Sorry 'bout that.

Try replacing the 4th line (from my suggestion above) with:
Code:

$userlastvisit=(vbdate($dateformat,$bbuserinfo['lastvisit']).", at ".vbdate($timeformat,$bbuserinfo['lastvisit']));

julius 09-15-2002 08:30 AM

Great Hack!
Thanks.

Areku 09-26-2002 10:34 AM

/me installed it onto v2.2.0!

AyaRose 09-29-2002 07:09 PM

It looks like a cool hack , I hope we get this when vb3 comes out

Paul 09-30-2002 06:48 AM

The "at" addition instructions do not make any sense whatsoever in the context of 2.2.8. What file does this change need to be made? I've searched high and low for that eval statement and I don't see it anywhere.

In index.php, I made the following change:

Find:
PHP Code:

$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']); 

And REPLACE with:
PHP Code:


          
// Hack: Today/Yesterday
          /*
          $forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
          */
          
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']) . ", at ";
          
// End hack: Today/Yesterday hack 


bigmattyh 10-02-2002 07:16 AM

Quote:

Originally posted by LoveShack
The "at" addition instructions do not make any sense whatsoever in the context of 2.2.8.
Yeah, so I've heard.

I won't be much help on this particular issue. Evidently, 2.2.8 changed some things that directly affect the ", at" functioning of this hack, and unfortunately, I don't have the time to investigate.

Talisman 10-14-2002 01:00 AM

Nice hack, thanks. You made it simple for us to install by being thorough with those updates.

Well done.

bigmattyh 10-14-2002 11:54 PM

Quote:

Originally posted by Talisman
Nice hack, thanks. You made it simple for us to install by being thorough with those updates.

Well done.

Thanks -- I appreciate that. :)

bigmattyh 11-27-2002 06:07 PM

I don't like to bump. But it's been over 5 weeks since anyone's posted to this thread.

One last spin around the vB-verse before vB3 makes it obsolete. Huzzah!

N9ne 11-27-2002 06:41 PM

Question: will this hack work properly under 2.2.8...ie. no innaccuracies in the text, such as some areas not making sense?


All times are GMT. The time now is 09:13 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
  • Page Generation 0.01230 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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