vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Easy way (variable) to display Current Time in vB? (https://vborg.vbsupport.ru/showthread.php?t=95059)

mkdevo 08-25-2005 04:27 PM

Easy way (variable) to display Current Time in vB?
 
is there a variable in vB to display the current time? can't figure out how to do it like it displays in the footer template (the time is now x).. i'd like to display the current time in other places.. how can i do it?

thanks in advance..

Blam Forumz 08-25-2005 04:51 PM

look in the footer template, get the time phrase and paste it wherever else you want

mkdevo 08-25-2005 04:53 PM

i just want the time itself though; not the The time now is part...

Blam Forumz 08-25-2005 07:10 PM

I suppose you could edit the phrase? and just add in tthe "The time now is" part into the footer template yourself

Tony G 08-26-2005 03:21 AM

You'd have to edit the vbphrase to get rid of "the time is now" part.

Adrian Schneider 08-26-2005 06:50 AM

an alternative:

vBulletin 3.5
global_start hook:
PHP Code:

$time vbdate($vbulletin->options['timeformat'], TIMENOW); 

Then stick $time wherever you want it.

vBulletin 3.0.x
php_include_start template:
PHP Code:

$time vbdate($vboptions['timeformat'], TIMENOW); 

Then stick $time wherever you want it.


All times are GMT. The time now is 07:14 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.01045 seconds
  • Memory Usage 1,716KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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