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)

EnIgMa1234 02-12-2007 10:00 PM

Clock In Navbar
 
Dont Copy This Hack
Javascript Code By w3schools.com

Description: This Shows The Time, In Hours Minutes And Seconds, In The Navbar When The Page Is Loaded

1 New Phrase
1 Template Edit

Install:

Find In Navbar:
Code:

<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
                </div>


Add Below:


Code:

<head>
<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
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>

Then: Import The Product

History
- V.1.0 Released

Future Developments
- Cache Template


I Will Only Give Support To Those That Click Install

Sofia 02-13-2007 03:55 PM

Thanks a lot, Enigma.

EnIgMa1234 02-13-2007 03:57 PM

your welcome. thanks for installing

Renada 02-13-2007 04:49 PM

Thank you :)

TTG 02-13-2007 06:51 PM

Nice and simple .. reminds me of my ex :)

Clicked install

EnIgMa1234 02-13-2007 06:53 PM

haha thanks for installing :)

DannyMilner 02-13-2007 06:56 PM

Quote:

Originally Posted by TTG (Post 1181742)
Nice and simple .. reminds me of my ex :)

lmao, :p

Nice one!

Snake 02-14-2007 05:34 AM

Thanks!

roger.kore 02-14-2007 08:52 AM

Thanks. as suggestion: Since when there is a lot of space, what about add the current date?
dd/mm/yy -> User should choose the format.
14/02/07 your clock GMT user

EnIgMa1234 02-14-2007 10:37 AM

Yes I Will Add That In The Next Version


All times are GMT. The time now is 05:11 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.01059 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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