View Full Version : PHP Nuke
indianadj
07-15-2006, 05:08 AM
Hi guys, new to this site hope this is where to post this. I have a countdown script I wanna run and and having problems, I have a php based web site and I created a block and I'm trying to copy and paste the code inside of the block but instead of shwing the script (count down data) all it displays it the coding itself, any suggestions? Thanks
jr_yeo
07-15-2006, 05:14 AM
could u post a link to ur problematic page? :p
indianadj
07-15-2006, 05:21 AM
Ok, here it is, as you can see the problem is with My ND Football block, trying to display the countdown script, it says to insert it in the body section but it is inside of a block and I don't know if I have to create a body section or what?? but enough talk here is my site address and the problem is very noticeable
http://www.northernindianaradio.com
Thanks in advance for any help/suggestions
jr_yeo
07-15-2006, 05:36 AM
i suggest u try this:
<SCRIPT type="text/javascript">
/*
Count Down - Script
Visit http://rainbow.arch.scriptmania.com/scripts/
for this script and many more
*/
function setcountdown(theyear,themonth,theday,thehour,themin,thesec){
yr=theyear;mo=themonth;da=theday;hr=thehour;min=themin;sec=thesec
}
//////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////
//STEP 1: Configure the countdown-to date, in the format year, month, day, hour(0=midnight,23=11pm), minutes, seconds:
setcountdown(2004,12,15,21,30,00)
//STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
var occasion="Comets vs Flyers game"
var message_on_occasion="Go Comets Go Go Go!"
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
var countdownwidth='550px'
var countdownheight='35px'
var countdownbgcolor='lightblue'
var opentags='<font face="Verdana" color="blue"><small>'
var closetags='</small></font>'
//////////DO NOT EDIT PAST THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''
function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
countdown()
}
if (document.all||document.getElementById)
document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')
window.onload=start_countdown
function countdown(){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[mo-1]+" "+da+", "+yr+" "+hr+":"+min+":"+sec
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
//if on day of occasion
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
//if passed day of occasion
else if (dday<=-1){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+"Occasion already passed! "+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
return
}
//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</script>
<ilayer id="countdownnsmain" width=&{countdownwidth}; height=&{countdownheight}; bgColor=&{countdownbgcolor}; visibility=hide><layer id="countdownnssub" width=&{countdownwidth}; height=&{countdownheight}; left=0 top=0></layer></ilayer><p><font face="arial" size="-2">This free script provided by </font><br><font face="arial, helvetica" size="-2"><a href="http://rainbow.arch.scriptmania.com/scripts/">Rainbow Arch</a></font></p>
take note of dark read highlights :p
indianadj
07-15-2006, 05:47 AM
Nope, didn't work but thanks much for the suggestion!! Think I'm gonna try to put it somewhere else on my site. Once again, thanks much!
jr_yeo
07-15-2006, 05:50 AM
Nope, didn't work....Think I'm gonna try to put it somewhere else on my site
may i ask where did u put the suggested script? :p
indianadj
07-15-2006, 06:27 AM
<img width="75" vspace="3" hspace="10" height="75" border="0" align="left" src="http://www.northernindianaradio.com/images/nd3.gif" /><strong>THE 2006 NOTRE DAME FOOTBALL SEASON IS NEARING!! THE FIGHTING IRISH WILL OPEN THE SEASON IN PRIME TIME ON ABC TELEVISION ON SATURDAY SEPTEMBER 2ND, AT 8PM EASTERN TIME AGAINST GEORGIA TECH. YOU CAN CHECK OUT THE FIGHTING IRISH 2006 SCHEDULE AND 2005 RESULTS <a target="_self" href="http://und.cstv.com/sports/m-footbl/sched/nd-m-footbl-sched.html">HERE .</a></strong><br />
<strong>
<br />
FOR THE 2006 FIGHTING IRISH ROSTER AND PLAYER AND TEAM INFO, YOU CAN CLICK <a target="_self" href="http://und.cstv.com/sports/m-footbl/nd-m-footbl-body.html">HERE</a><br />
<br />
TO CHECK OUT THE UNIVERSITY OF NOTRE DAME OFFICIAL WEB SITE, CLICK <a target="_self" href="http://und.cstv.com/">HERE</a><br />
<br />
NORTHERN INDIANA RADIO WOULD LIKE TO WISH THE 2006 NOTRE DAME<br />
FIGHTING IRISH THE BEST OF LUCK IN THE UPCOMING SEASON!!<br />
</strong>
I posted the script inside the PHP Nuke block itself, I used the html option when I copied and pasted the code
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.