Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
RepliClock Current date and time on main navbar Details »»
RepliClock Current date and time on main navbar
Version: 1.0.2, by Replicant Replicant is offline
Developer Last Online: Jun 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 5.1.x Rating:
Released: 03-16-2015 Last Update: 09-14-2015 Installs: 15
Uses Plugins
 
No support by the author.

RepliClock
This little mod will put the date and current time on the main navbar on every page. The date and time fonts, color, sizes, and visibility can be configured via CSS. It works on screens all the way down to 320px wide without interfering with view.

Desktop view

Mobile View

Demo - See it on my live site k5bp.com

To install, download the XML file. Go to AdminCP >> Manage Products >> [Add/Import Product].
This mod does not modify any core Vbulletin files.

Enjoy! Please mark as installed if you find this mod useful.:up:

ToDo: Add 12 hour time option

Download Now

File Type: xml product_repliclock-1.0.1.xml (2.3 KB, 45 views)
File Type: xml product_repliclock-1.0.2.xml (2.5 KB, 51 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
baskan35, ForceHSS

Comments
  #12  
Old 04-09-2015, 12:00 AM
BugOutGirl BugOutGirl is offline
 
Join Date: Feb 2015
Location: Canada
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks!
Reply With Quote
  #13  
Old 04-26-2015, 02:56 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A CSS collision was identified that causes the Message center to not display properly in responsive mode. The CSS has been corrected in the new version. To upgrade, download the XML file. Go to AdminCP >> Manage Products >> [Add/Import Product].
Click the allow overwrite checkbox after selecting the XML file.
Reply With Quote
  #14  
Old 08-27-2015, 09:35 PM
JaySeeEm JaySeeEm is offline
 
Join Date: Jun 2015
Location: VA
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
        // Added after seconds variable
        
var ampm >= 12 'PM' 'AM';
        
12;
        
12
You then need to add the ampm variable to the end of this line: ' + ampm added before ;

PHP Code:
        document.getElementById('time').innerHTML ":" ":" " " ampm
Incase anyone wants to display the time in the 12 hour format with am or pm.

If there is a better way, let me know!

- Justin
Reply With Quote
  #15  
Old 08-28-2015, 12:59 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JaySeeEm View Post
PHP Code:
        // Added after seconds variable
        
var ampm >= 12 'PM' 'AM';
        
12;
        
12
Incase anyone wants to display the time in the 12 hour format with am or pm.

If there is a better way, let me know!

- Justin
Nice. I have an AM/PM version, I just never uploaded it since nobdy seamed too interested. Nice coding style. :up:
Reply With Quote
  #16  
Old 09-14-2015, 07:30 PM
joshskeety joshskeety is offline
 
Join Date: May 2004
Location: Virginia
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem with that extra code is it doesn't say AM or PM, just the 12 hour time clock.. Not a big deal, and it works.. Thanks for taking the time to share both of yours...
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 09:24 AM.


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.06873 seconds
  • Memory Usage 2,295KB
  • 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
  • (3)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
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (2)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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