vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Modfying vBulleting Datestamp Options (https://vborg.vbsupport.ru/showthread.php?t=229032)

Space Monkey 11-28-2009 03:47 AM

Modfying vBulleting Datestamp Options
 
Hey guys,

I'm aware of the 'Normal/Detailed/Yesterday-Today' datestamp option in the adminCP.
However, I wish to make it so that it's like this:
- Posts made yesterday/today will be displayed as: xx minutes ago, 1 day ago, 3 hours ago etc. (ie. Use detailed for posts made yesterday or today)
- However, posts made before then will be displayed as Normal (16-11-2009, 03:08 PM etc)

Any ideas on this?

Thanks in advance.
SM

Space Monkey 12-01-2009 10:11 AM

Bump :3

kh99 12-01-2009 01:00 PM

It looks like that option is $vbulletin->options['yestoday'], and it's used in vbdate in functions.php. So you could probably change that code so that if the date is not yesterday or today, use '0' (normal). I guess you could add a 4th option to the ACP for that, but there is one place in global.php and one place in includes/functions_online.php where it checks for $vbulletin->options['yestoday'] == 2.


All times are GMT. The time now is 08:17 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.01420 seconds
  • Memory Usage 1,703KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete