vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How can I set the time (https://vborg.vbsupport.ru/showthread.php?t=177862)

Medina 05-02-2008 05:24 PM

How can I set the time
 
above my header.


But not the time of my computer or a members computer. But the time of the forum self. Just like the time under in the footer.


"All times are GMT +2. The time now is 20:19."




How can I add this for twice, but without the text.

just like this.


20:19:04 02-05-2008


pleasse?!

MoT3rror 05-02-2008 08:31 PM

Create a new plugin with the hook of global_complete.

Code should be something like this.
PHP Code:

$headertimenow vbdate('date format'TIMENOW); 

Then in your template you put $headertimenow in where you need.

Medina 05-03-2008 01:57 PM

It doesn`t work, maybe the plugin is not working.

Dismounted 05-03-2008 02:02 PM

Yes. Make sure you replace "date format" with the appropriate PHP date format style - as detailed in the manual.

Medina 05-03-2008 02:16 PM

I have edit it like this:


$headertimenow = vbdate('H:i:s', TIMENOW);



But it doesn`t work.

Medina 05-10-2008 03:58 PM

????

Dismounted 05-11-2008 05:29 AM

What appears?

Medina 05-11-2008 04:36 PM

Nothing, nothing at all. :S

Lynne 05-11-2008 04:39 PM

What plugin are you using? Exactly what do you have entered? And what template are you modifying and exactly what have you put in there?

Medina 05-11-2008 04:44 PM

Product : vBulletin,
Hook location: global_complete,
Execution Order: 5
Plugin PHP code: $headertimenow = vbdate('("d-m-Y");', TIMENOW);


I have edit my navbar template, and add this "$headertimenow"


All times are GMT. The time now is 03:33 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.01069 seconds
  • Memory Usage 1,725KB
  • 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_php_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