vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Clock In Navbar (https://vborg.vbsupport.ru/showthread.php?t=139314)

United32 03-06-2007 01:02 PM

Hi,

Do you know where I can find a clock liks this:

http://www.bihforum.com/

It looks awesome!

rjmjr69 04-03-2007 08:42 PM

Thats a macro flash file.

kollam003 06-02-2007 08:46 AM

i'm using with indian standard time where can i change that its showing now in GMT ? help plz

EnIgMa1234 06-02-2007 09:55 AM

Quote:

Originally Posted by kollam003 (Post 1259665)
i'm using with indian standard time where can i change that its showing now in GMT ? help plz

it shows the time on your computer. look on the bottom right side of your moniter, it matchs the time

athlon64bit 06-05-2007 07:01 AM

Great wee Hack. I like it. Thanks for this hack/add-on. It rocks!! :)

athlon64bit 06-05-2007 08:24 AM

The clock gets stuck on loading time when viewing threads but works fine when viewing forum home or forum boards. Why does this happen? I am using 3.6.7 vb.
What could the problem be?

iBaker 06-12-2007 09:28 PM

Great clock but unfortunately I won't be able to download it as I need a clock that will show UTC time and not the PC time - my web server is UTC time so if there was some way I could hook into that or some other way I could mod yours to show UTC then I would be over the moon - thanks!

msalman 06-13-2007 12:00 PM

thanks for the hack!! i've slightly modify it to add more stuff e.g. am/pm and full date, here's the modified version of it

Java script
Code:

<head>
<script type="text/javascript">
function startTime()
{
var today = new Date()
var h = today.getHours()
var m = today.getMinutes()
var s = today.getSeconds()
var day = today.getDay()
var date = today.getDate()
var month = today.getMonth()
var year = today.getFullYear()
var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var months = new Array(" January"," February"," March"," April"," May"," June"," July"," August"," September"," October"," November"," December")
var am_pm

if (h > 12) {
    h -= 12
    am_pm = "P.M."
}
else {
    am_pm ="A.M."
}

// add a zero in front of numbers<10
m = checkTime(m)
s = checkTime(s)
h = checkTime(h)
document.getElementById('txt').innerHTML = days[day] + " " + date + months[month] + " " + year + ", " + h + ":" + m + ":" + s + " " + am_pm
t = setTimeout('startTime()', 500)
}

function checkTime(i)
{
if (i < 10)
  {i = "0" + i}
  return i
}
</script>
</head>
<b>
<body onload="startTime()">
<div id="txt"><b>$vbphrase[loading_clock]</b></div>
</body></b>


Alibass 06-13-2007 02:46 PM

*Installed*

Works good on 3.6.7PL1, but when viewing thread the clock constantly shows Loading Clock.....

Alibass 06-13-2007 05:19 PM

Quote:

Originally Posted by msalman (Post 1267599)
thanks for the hack!! i've slightly modify it to add more stuff e.g. am/pm and full date, here's the modified version of it

I have tried your modified version and it looks great. Did notice from 12pm to 1pm the clock showed AM and switch to PM when the clock rolled to 1pm. Any suggestions?


All times are GMT. The time now is 02:36 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.01053 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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