vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Clock and Date in Navbar (https://vborg.vbsupport.ru/showthread.php?t=118253)

sdphotoforum 02-12-2007 09:52 AM

Very nice! Thanks.

- Marshall

Gizmo5h1t3 02-16-2007 09:44 AM

date before the month is this, not as shown above....

Quote:

<!-- clock hack-->
<div id="clock">Loading...</div>
<script type="text/javascript">
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var day=d.getDay();
var date=d.getDate();
var month=d.getMonth();
var year=d.getFullYear();
var days=new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday");
var months=new Array("1","2","3","4","5","6","7","8","9","10","11 ","12");
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>12) {h-=12;am_pm = "pm"}
else {am_pm="am"}
if (h<10) {h="0" + h}
document.getElementById("clock").innerHTML= date + "-" + months[month] + "-" + year + " " + days[day] + " " + h + ":" + m + ":" + s + " " + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / clock hack -->

deezelpope 03-14-2007 10:41 AM

Damn, that was easy and fast!!! Beautiful!! Thank you very much!!:up: :D

Kadi 03-19-2007 03:01 PM

Quote:

Originally Posted by daPLAYBOY (Post 1095262)
Cheers, Aclikyano, :D for sharing this great revised code...this is what it looks like:

Thursday | October 12, 2006 | 6:33:51 P.M.

Thanks also to, Superfly, for sharing, too!

Br.:cool:

Thanks guys...Superfly, Aclikyano, daPLAYBOY...finally changed it to Arabic and here it is if anybody should need it.

Quote:

<!-- clock hack -->
<div id="clock">Loading...</div>
<script type="text/javascript">
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var day=d.getDay();
var date=d.getDate();
var month=d.getMonth();
var year=d.getFullYear();
var days=new Array("الأحد","الإثنين","الثلاثاء","الأربعاء","الخ ميس","الجمعة","السبت");
var months=new Array("يناير","فبراير","مارس","أبريل","مايو","يوني و","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديس مبر");
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h<10) {h="0" + h}
if (h>12) {h-=12;am_pm = "مساءً"}
else {am_pm = "صباحاً"}
document.getElementById("clock").innerHTML=days[day] + " | " + months[month] + " " + date + ", " + year + " | " + h + ":" + m + ":" + s + " " + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / clock hack -->

K D Umbaugh 06-03-2007 04:58 PM

works great I just made a minor changes, inserted title and made bold.

if you would like to see Neighborhood Round Table

SuperTaz 06-03-2007 05:53 PM

Very nice...Installed.

lgnd 06-08-2007 12:39 PM

Thank You! Very useful! :)

jderouen 06-14-2007 02:20 PM

Very nice. Installed. Just one question - is it possible to make it use the time zone from whatever the user selects in the UserCP?

jderouen 06-15-2007 04:46 AM

Hmm. It seems to be working fine, except that, at 46 minutes after midnight, the time reads 00:46:21. What's up with that, and how do I fix it?

Thanks!
Joe

CMGU 06-15-2007 03:05 PM

thanks very nice


All times are GMT. The time now is 01:10 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.01221 seconds
  • Memory Usage 1,740KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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