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


All times are GMT. The time now is 03:53 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.01561 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (5)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