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 05-01-2005, 02:49 AM
gobears20 gobears20 is offline
 
Join Date: Feb 2004
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default A countdown clock??

Guys I made this countdown clock for my football baord. The problem I am having is just making it show up on the football baord. It keeps showing up on all of my forums.

Any idea on what I have to do where I make it only show up in my football forum? Thanks for any help!

Here is my info...

http://www.baylorfans.com/countdown/.../countdown.htm

Code:
<HTML>
<!--This file created 10:15 PM  4/26/2005 by Claris Home Page version 3.0-->
<HEAD>
   <TITLE>countdown</TITLE>
   <META NAME=GENERATOR CONTENT="Claris Home Page 3.0">
   <X-CLARIS-WINDOW TOP=0 BOTTOM=601 LEFT=0 RIGHT=1268>
   <X-CLARIS-TAGVIEW MODE=minimal>
</HEAD>
<BODY BGCOLOR="#FFFFFF" onload="javascript:countdown();">
<P ALIGN=right><SCRIPT LANGUAGE=""><!-- hide script
//change your event date event here.
var eventdate = new Date("September 3, 2005  18:00:00 CST");
function toSt(n)
{s=""
if(n<10) s+="0"
return s+n.toString();
}
function countdown()
{cl=document.clock;
d=new Date();
count=Math.floor((eventdate.getTime()-d.getTime())/1000);
if(count<=0)
{cl.days.value ="0";
cl.hours.value="0";
cl.mins.value="00";
cl.secs.value="00";
alert("Sic' Em Bears!"); // Message which appears when time is out
return;
}
cl.secs.value=toSt(count%60);
count=Math.floor(count/60);
cl.mins.value=toSt(count%60);
count=Math.floor(count/60);
cl.hours.value=toSt(count%24);
count=Math.floor(count/24);
cl.days.value=count; 
setTimeout("countdown()",500);
}
// end script --></SCRIPT> <FORM ACTION="" METHOD=POST name=clock>
   <CENTER><TABLE BORDER=0 BGCOLOR="#000000" CELLSPACING=5 CELLPADDING=0 WIDTH=444 HEIGHT=100>
      <TR>
         <TD ALIGN=center WIDTH="31%" HEIGHT=19 BGCOLOR="#006600">
            <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Days</B></FONT></P>
         </TD>
         <TD ALIGN=center WIDTH="23%" HEIGHT=19 BGCOLOR="#006600">
            <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Hours</B></FONT></P>
         </TD>
         <TD ALIGN=center WIDTH=56 HEIGHT=19 BGCOLOR="#006600">
            <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Mins</B></FONT></P>
         </TD>
         <TD ALIGN=center WIDTH=44 HEIGHT=19 BGCOLOR="#006600">
            <P><FONT SIZE="-1" COLOR="#FFCC00"><B>Secs</B></FONT></P>
         </TD>
      </TR>
      <TR>
         <TD ALIGN=center WIDTH="31%" HEIGHT=15>
            <P><INPUT TYPE=text NAME=days VALUE="" SIZE=4></P>
         </TD>
         <TD ALIGN=center WIDTH="23%" HEIGHT=15>
            <P><INPUT TYPE=text NAME=hours VALUE="" SIZE=2></P>
         </TD>
         <TD ALIGN=center WIDTH=56 HEIGHT=15>
            <P><INPUT TYPE=text NAME=mins VALUE="" SIZE=2></P>
         </TD>
         <TD ALIGN=center WIDTH=44 HEIGHT=15>
            <P><INPUT TYPE=text NAME=secs VALUE="" SIZE=2></P>
         </TD>
      </TR>
      <TR>
         <TD COLSPAN=4 HEIGHT=49 BGCOLOR="#FFFFFF">
            <CENTER><FONT SIZE="-1" COLOR="#FFCC00"><B><IMG SRC="http://www.baylorfans.com/countdown/football/smu.gif" X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></B></FONT><FONT COLOR="#FF0000"><B>SMU
            </B></FONT><FONT COLOR="#000000"><B>vs</B></FONT><FONT COLOR="#FF0000"><B>
            </B></FONT><FONT COLOR="#006600"><B>Baylor</B></FONT><FONT SIZE="-1" COLOR="#006600"><B><IMG SRC="http://www.baylorfans.com/countdown/football/baylor.gif" X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></B></FONT>
            
            <P><FONT FACE="Arial Baltic" COLOR="#006600"><B>COUNTDOWN
            TO KICKOFF</B></FONT></P></CENTER>
         </TD>
      </TR>
   </TABLE>
   </CENTER>
</FORM></P>
</BODY>
</HTML>
Reply With Quote
  #2  
Old 05-01-2005, 12:48 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put the javascript in the header.

<if condition="forumid==x">
Java script
</if>

Or something like that.
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 10:19 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.04704 seconds
  • Memory Usage 2,181KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (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_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • 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
  • 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