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)

Snake 08-21-2006 11:11 PM

Super, how do I change the clock to like this?

Tuesday, August 25th, 2006

Snake 08-21-2006 11:20 PM

Nevermind.

racer_69 08-22-2006 12:25 AM

In Portuguese its like this :D

<!-- 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("Domingo","Segunda","Ter?a","Quarta","Quinta ","Sexta","Sabado");
var months=new Array("Janeiro","Fevereiro","Mar?o","Abril","Maio" ,"Junho","Julho","Agosto","Setembro","Outubro","No vembro","Dezembro");
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>24) {h=24;}

if (h<10) {h="0" + h}
document.getElementById("clock").innerHTML=days[day] + " " + date + " " + months[month] + " " + year + ", " + h + ":" + m + ":" + s + " ";
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / clock hack -->

Lionel 08-29-2006 05:09 AM

Looks like this javascript is interfering with cron.php
I installed and the message on status bar "Downloading cron.php etc..." is frozen. I uninstalled and no problems.

Gazer 08-29-2006 11:45 AM

installed thanks
Regards Gazer.

Gazer 09-03-2006 05:50 PM

I have noticed that the 1st three days of the date is like this..... 1th 2th 3th is there anyway of changing this so we can have 1st 2nd 3rd please i think the rest should be ok 4th 5th 6th and so on untill we get to 21st

Regards Gazer.

LordDB 09-04-2006 02:59 PM

Quote:

Originally Posted by Gazer
I have noticed that the 1st three days of the date is like this..... 1th 2th 3th is there anyway of changing this so we can have 1st 2nd 3rd please i think the rest should be ok 4th 5th 6th and so on untill we get to 21st

Regards Gazer.

Yes, me too! How can this problem be resolved?

Cheers!

Aclikyano 09-04-2006 06:00 PM

Quote:

<!-- clock vb 3.6.0 wrote by SuperFly - edited by Aclikyano -->
<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("Sun","Mon","Tue","Wed","Thurs","Fri","Sat") ;
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=months[month] + "-" + date + "-" + year + " [" + days[day] + "] [" + h + ":" + m + ":" + s + "] " + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / clock hack -->
-> DISPLAY: 9-4-2006 [Mon] [03:00:32] pm

TheBlackPoet 09-06-2006 06:09 AM

thanks for posting this... its a lot easier for me and mems... i switched the date around and made it more ordered according to how we say it.. wed sept 6, 2006
still, i couldnt have done it without you....

VViper 09-10-2006 02:22 AM

Great Mod i have installed it, However between the date and the month their is no space can this be fixed?


All times are GMT. The time now is 02:53 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.01141 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
  • (2)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