Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Live Clock & Date in Navbar Details »»
Live Clock & Date in Navbar
Version: 2.00, by Magnumutz Magnumutz is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.x Rating:
Released: 01-20-2009 Last Update: 02-17-2009 Installs: 123
Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

Please mark as "Installed" if you use this modification, thanks !
Okay, here's a little something i did for my forum, cuz i just wanted a place where to look for the right time.

See the attached screenshot for a demo.

Install instructions:

Edit the navbar template under Navigation / Breadcrumb Templates and search for:
PHP Code:
        <if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
    </
div
Right under that, add:
PHP Code:
    <div class="smallfont">
    <
script type="text/javascript" language="javascript" src="clientscript/date_clock.js"></script>
    <
script type="text/javascript" language="javascript">dT();</script>
    </
div
In the same template search for:
PHP Code:
        <!-- / login form --> 
Right under that, add:
PHP Code:
        <div class="smallfont" align="center">
        <
script type="text/javascript" language="javascript" src="clientscript/date_clock.js"></script>
        <
script type="text/javascript" language="javascript">dT();</script>
        </
div
Upload date_clock.js to your clientscript folder.

That's it

26th January: Added a 12 hour format package.
18th February: Updated Installation Instructions, fixed guest view alignment and moved the Bold version into the first post.


Please mark as "Installed" if you use this modification, thanks !

Download Now

File Type: zip Live Date & Clock in Navbar (12 hour format).zip (4.1 KB, 151 views)
File Type: zip Live Date & Clock in Navbar (24 hour format).zip (4.1 KB, 207 views)
File Type: zip Live Date & Clock in Navbar (Bold 12 hour format).zip (4.1 KB, 147 views)
File Type: zip Live Date & Clock in Navbar (Bold 24 hour format).zip (4.1 KB, 162 views)

Screenshots

File Type: png Screenshot.PNG (2.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 07-02-2009, 04:51 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by expeditionman View Post
Nice little feature, installed.

Hope you don't mind but I edited the .js file to change the way the date is displayed.
Find this section of the file:
Code:
.getDay()]+' '+tS().getDate()+dE(tS().getDate())+' '+mN[tS().getMonth()]+' '+y4(tS().getYear())+','+' '+tH(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+' '+aP(tS().getHours())";
Change it to this:
Code:
.getDay()]+' '+mN[tS().getMonth()]+' '+tS().getDate()+dE(tS().getDate())+' '+y4(tS().getYear())+'
It will now show up like this:
Well, europeans (me) like dates displayed like that
Reply With Quote
  #53  
Old 07-04-2009, 05:37 AM
wAnBoA wAnBoA is offline
 
Join Date: Sep 2008
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have problem installing this with the Drop Down Menu i'm using.
https://vborg.vbsupport.ru/showthread.php?t=203521
Whenever i hover the menu, it will show me a blank page.
Reply With Quote
  #54  
Old 09-18-2010, 05:36 AM
Froggy32701 Froggy32701 is offline
 
Join Date: Aug 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need a mod like this that shows zulu time. So I guess it would need to pull the time from another source.
Reply With Quote
  #55  
Old 09-18-2010, 11:56 AM
Erica1977's Avatar
Erica1977 Erica1977 is offline
 
Join Date: Nov 2009
Location: Laramie, Wyoming
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this Nice Mod.
Reply With Quote
  #56  
Old 11-17-2011, 02:37 PM
gsmlover4u's Avatar
gsmlover4u gsmlover4u is offline
 
Join Date: Jan 2007
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any update for vb4
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05465 seconds
  • Memory Usage 2,302KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete