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
  #22  
Old 02-05-2009, 04:58 PM
djlotus djlotus is offline
 
Join Date: Oct 2005
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed Thanks
Reply With Quote
  #23  
Old 02-10-2009, 07:47 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, installed!

I've got some suggestions and questions.
Quote:
Upload date_clock.js to your clientscript folder.
I would put that line also in the installation zipfiles.
Would be better to add the bold zipfiles next to the normal zip's, that way, if the post grows longer, users won't keep asking for the bold stuff.

Quote:
No, it's set on the PC's clock.
Timezone maybe, but language and display is not. My forums say it's Tue 10th feb 2009.
My pc says it's "dinsdag 10 februari 2009" or "dinsdag 10 feb 2009".
Is there a way to maybe make it like a phrase so we can make a translation?
Is there a way to make it so that days are not shortened anymore but displayed in full? So not Tue but Tuesday?
Reply With Quote
  #24  
Old 02-10-2009, 08:27 PM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it and it worked great except it left another occurance of the date and time on the top left of my forums. Any ideas?
Reply With Quote
  #25  
Old 02-10-2009, 10:43 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found a second thing, an alignment problem for users which are not logged in.
When logged in, the alignment is ok. When not logged in, alignment is not ok, the date/clock is displayed a bit too far to the left side.
Attached Images
File Type: png login.png (2.6 KB, 0 views)
Reply With Quote
  #26  
Old 02-11-2009, 12:15 AM
DobieGillis? DobieGillis? is offline
 
Join Date: Feb 2009
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uninstalling..meh!
Reply With Quote
  #27  
Old 02-18-2009, 05:18 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Black Tiger View Post
Found a second thing, an alignment problem for users which are not logged in.
When logged in, the alignment is ok. When not logged in, alignment is not ok, the date/clock is displayed a bit too far to the left side.
Fixed that, thanks for letting me know.
The .js file isn't phrased so the date is in English.
However, you could edit it and change the week days, and month names for your language.
Quote:
Originally Posted by DobieGillis? View Post
I installed it and it worked great except it left another occurance of the date and time on the top left of my forums. Any ideas?
Could you please explain better? Or maybe post a screenshot so i can understand...
Reply With Quote
  #28  
Old 02-18-2009, 06:12 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update!

What has been changed for fixing the alignment problem?
Reply With Quote
  #29  
Old 02-19-2009, 03:19 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has been centered
Reply With Quote
  #30  
Old 02-20-2009, 10:32 AM
a marked man 70 a marked man 70 is offline
 
Join Date: Sep 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed thanks
Reply With Quote
  #31  
Old 02-28-2009, 02:22 PM
fragg fragg is offline
 
Join Date: Dec 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
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 12:41 PM.


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.04659 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_php
  • (4)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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