Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2005, 12:52 PM
dizzine dizzine is offline
 
Join Date: Oct 2005
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03311 seconds
  • Memory Usage 2,208KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete