vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display current server time? (https://vborg.vbsupport.ru/showthread.php?t=111354)

dazzlin 03-26-2006 12:47 AM

Display current server time?
 
Wow, this seems like it should be simple to figure out, but I've spent hours and have gotten nowhere.

All I want to do is display the current server time right after the user's local time in the footer of the home page.

Currently, I show:
All times are GMT -6. The time now is 08:35 PM. (which uses this code: $vbphrase[all_times_are_gmt_x_time_now_is_y] )

and under that I want to have the server's time. Could someone specifically tell me what to put? I tried a javascript, I tried a php function, I tried $vbphrase[time]. Nothing worked. Surely, this must be a simple thing to do, but I have no clue how to make it work. Anyone?

Kirk Y 03-26-2006 01:40 AM

I think vb uses a plugin to get the time -- so it'd have to be in a plugin as well. I'm trying to find the plugin used... I'll get back to you.

dazzlin 03-26-2006 11:51 AM

Thanks, acidburn.


All times are GMT. The time now is 05:28 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.00887 seconds
  • Memory Usage 1,705KB
  • 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