vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   header item not showing in thread view (https://vborg.vbsupport.ru/showthread.php?t=101334)

dizzine 11-22-2005 12:52 PM

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

dizzine 11-24-2005 01:57 AM

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..


All times are GMT. The time now is 08:24 AM.

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.01150 seconds
  • Memory Usage 1,727KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete