The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
header item not showing in thread view
i am sure one of you will know exactly what ive done wrong with this one..
so.. i modified my [header] to include this.. <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function getTime() { c1 = new Image(); c1.src = "http://twobrutal.co.uk/images/clock/1c.gif"; c2 = new Image(); c2.src = "http://twobrutal.co.uk/images/clock/2c.gif"; c3 = new Image(); c3.src = "http://twobrutal.co.uk/images/clock/3c.gif"; c4 = new Image(); c4.src = "http://twobrutal.co.uk/images/clock/4c.gif"; c5 = new Image(); c5.src = "http://twobrutal.co.uk/images/clock/5c.gif"; c6 = new Image(); c6.src = "http://twobrutal.co.uk/images/clock/6c.gif"; c7 = new Image(); c7.src = "http://twobrutal.co.uk/images/clock/7c.gif"; c8 = new Image(); c8.src = "http://twobrutal.co.uk/images/clock/8c.gif"; c9 = new Image(); c9.src = "http://twobrutal.co.uk/images/clock/9c.gif"; c0 = new Image(); c0.src = "http://twobrutal.co.uk/images/clock/0c.gif"; Cc = new Image(); Cc.src = "http://twobrutal.co.uk/images/clock/Cc.gif"; now = new Date(); //ENTER BELOW THE DATE YOU WISH TO COUNTDOWN TO later = new Date("Jul 21 2006 0:00:01"); days = (later - now) / 1000 / 60 / 60 / 24; daysRound = Math.floor(days); hours = (later - now) / 1000 / 60 / 60 - (24 * daysRound); hoursRound = Math.floor(hours); minutes = (later - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound); minutesRound = Math.floor(minutes); seconds = (later - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound); secondsRound = Math.round(seconds); if (secondsRound <= 9) { document.images.g.src = c0.src; document.images.h.src = eval("c"+secondsRound+".src"); } else { document.images.g.src = eval("c"+Math.floor(secondsRound/10)+".src"); document.images.h.src = eval("c"+(secondsRound%10)+".src"); } if (minutesRound <= 9) { document.images.d.src = c0.src; document.images.e.src = eval("c"+minutesRound+".src"); } else { document.images.d.src = eval("c"+Math.floor(minutesRound/10)+".src"); document.images.e.src = eval("c"+(minutesRound%10)+".src"); } if (hoursRound <= 9) { document.images.y.src = c0.src; document.images.z.src = eval("c"+hoursRound+".src"); } else { document.images.y.src = eval("c"+Math.floor(hoursRound/10)+".src"); document.images.z.src = eval("c"+(hoursRound%10)+".src"); } if (daysRound <= 9) { document.images.x.src = c0.src; document.images.a.src = c0.src; document.images.b.src = eval("c"+daysRound+".src"); } if (daysRound <= 99) { document.images.x.src = c0.src; document.images.a.src = eval("c"+Math.floor((daysRound/10)%10)+".src"); document.images.b.src = eval("c"+Math.floor(daysRound%10)+".src"); } if (daysRound <= 999){ document.images.x.src = eval("c"+Math.floor(daysRound/100)+".src"); document.images.a.src = eval("c"+Math.floor((daysRound/10)%10)+".src"); document.images.b.src = eval("c"+Math.floor(daysRound%10)+".src"); } newtime = window.setTimeout("getTime();", 1000); } // End --> </script> and put this in the [header includes].. <BODY onLoad="getTime()"> <center> <table width="319" height="55" border="0"> <tr> <td width="313" height="18" align="center" bgcolor="#D1D1E1"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">JAE 2006 - WILL YOU BE READY? </font></td> </tr> <tr> <td height="31" align="center" bgcolor="#D1D1E1"><table align="center"> <tr valign="middle" bgcolor="#000000"> <td><img height=21 src="0c.gif" width=16 name=x> <img height=21 src="0c.gif" width=16 name=a> <img height=21 src="0c.gif" width=16 name=b> <img height=21 src="Cc.gif" width=9 name=c> <img height=21 src="0c.gif" width=16 name=y> <img height=21 src="0c.gif" width=16 name=z> <img height=21 src="Cc.gif" width=9 name=cz> <img height=21 src="0c.gif" width=16 name=d> <img height=21 src="0c.gif" width=16 name=e> <img height=21 src="Cc.gif" width=9 name=f> <img height=21 src="0c.gif" width=16 name=g> <img height=21 src="0c.gif" width=16 name=h> </td> </tr> </table> </td> </tr> </table> </center> as you can tell its a simple countdown clock.. now heres the problem.. the clock works great on the home page and other forum pages BUT does not work in THREAD VIEW..! hmm..i presumed if the header worked in one page it worked on all pages..but i am wrong.. anyone know whats missing..? heres the forum for reference: http://twobrutal.co.uk/TBforum thanks in advance.. nik |
#2
|
|||
|
|||
any ideas anyone..? its really annoying me now..
im not sure i have explained fully whats going on but cant explain it any better now..lol basically...why does my mod to the header code not work in thread view yet it works everywhere else..? also if i wanted to put the html that i have added to the [header] in a file (.php/.html) in the forum directory structure how do i call that instead of making a mess of my [header] template.. once again thanks in advance.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|