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)

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 10:51 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.01314 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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