vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Date? (https://vborg.vbsupport.ru/showthread.php?t=47100)

eggz 12-29-2002 02:59 PM

Date?
 
This is probably really simple and just requires one variable but.... I'm tired and stressed and I think my brains deserted me - how on earth can I get The time now is... on the front page to be followed by the date? Is it just $datenow or something similar?

Thanks in Advance,
Oliver

Xenon 12-30-2002 10:37 AM

$timenow :) ?

eggz 12-30-2002 12:19 PM

Quote:

to be followed by the date?
Is the question - times fine thank you :)

Thanks anyway - should word my questions better!
Oliver

Boofo 12-30-2002 01:48 PM

Go into your root/global.php file and find:

PHP Code:

$timenow=vbdate($timeformat,time()); 

and replace it with:

PHP Code:

$timenow=vbdate("g:i a"time()) . " on " vbdate("l, F j, Y",time()); 

Make sure you set the time and date variables to how you want them to actually show up.

eggz 12-30-2002 06:06 PM

Thanks mate I owe you one! :D

Boofo 12-31-2002 01:51 AM

No problem. You can thank the man above (Xenon) for this one. :)

eggz 12-31-2002 11:02 AM

OK.... Thanks Xenon! :squareeyed:

Ollie

NTLDR 12-31-2002 11:33 AM

Alternativly you can add this code so you can use $datenow and that they following the date and time format in the ACP:

PHP Code:

$datenow=vbdate($dateformat,time()); 


Boofo 12-31-2002 11:39 AM

I thought of doing that but it isn't quite as configurable as to the way to be able to set the date how you want it to show there and different on the rest of the site. But I suppose you could configure that the same way. Where were you when I was trying to figure this out before? ;)

Chris M 12-31-2002 12:45 PM

Probably
Quote:

In Bed Sleeping:D
;):p

Satan


All times are GMT. The time now is 07:13 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.01092 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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