vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [How to] Print date in template? (https://vborg.vbsupport.ru/showthread.php?t=281020)

basketmen 04-02-2012 06:12 PM

[How to] Print date in template?
 
Is there simple way to print today date in template?

Instead using plugin and include a php file that contain php date code

kh99 04-02-2012 09:54 PM

As far as I know the only way to do it without a plugin would be to use javascript (and if you do that it will show the date that the user's computer is set to). You can google something like "output date using javascript" to find many examples.

basketmen 04-03-2012 08:54 PM

ok after searching again, the variable it is existed in vb

it is $datenow

and to change the format if needed, in vboptions > Date and Time Options > Format For Date

hope can help others members that searching similar information

kh99 04-03-2012 11:39 PM

I didn't think to look for an existing variable. Thanks for sharing that.

basketmen 04-03-2012 11:47 PM

Quote:

Originally Posted by kh99 (Post 2316553)
I didn't think to look for an existing variable. Thanks for sharing that.

thank you for you too, you give another alternative solution too


All times are GMT. The time now is 09:19 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.00958 seconds
  • Memory Usage 1,712KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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