acwder
07-21-2008, 09:19 PM
Hey.
I got a problem with using a countdowntimer on my wordpress site (www.orkfia-portal.com), Im using a span id to display this.
I can get it to work on basic sites like this: http://www.orkfia-portal.com/wordpress/wp-content/themes/oldschool-10/counter.php but when I try to implent it on my wordpress frontpage it just doesnt work. it shows the box but wont show the span.
here is the header.php where Im putting it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<script language="javascript" type="text/javascript" src="realtime.countdown.v1.1.js"></script>
<script language="javascript" type="text/javascript">
function load() {
countdown('a', "September 4, 2008 00:00:00", 3, 'Orkfia');
}
</script>
<link rel="shortcut icon" href="http://www.orkfia-portal.com/icon.ico" />
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php wp_head(); ?>
</head>
<body onload="load()">
<center><ul class='menu green'>
<li><a href='http://www.orkfia-portal.com'>Home</a></li>
<li><a href='http://www.orkfia-portal.com/phpBB3'>Forum</a></li>
<li><a href='http://www.orkfia-portal.com/?page_id=6'>Orkfia Faces</a></li>
<li><a href='http://www.orkfia-portal.com/?page_id=40'>Chat</a></li>
<li id='dv'><a href='http://www.orkfia-portal.com/?page_id=2'>About</a></li>
<li><a href='http://www.orkfia.org' target='_blank'>Orkfia - Alliances at War</a></li>
<li id='dv2'><a href='http://www.orkfiaclassic.com' target='_blank'>Orkfia - Classic</a></li><li><a href='http://www.orkfia-portal.com/?page_id=20'>What is Orkfia?</a></li>
</ul></center>
<div id="container"><div id="page">
<div id="header">
<div class="topmenu">
<h1><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
</div>
It feels like quite a mess, what Im trying to add is a <div id="counter"><span id="a"></span></div> and preferbly a href around it but dunno if its possbile.
Im trying to put it on the banner which is just next to that </h1>.
Ultimate would be to have it on the upper right corner of the banner but atm I would just be happy if I could get it to work.
Cheers for any help that could be provided, (didnt know which sections this should be put in so I put it here)
I got a problem with using a countdowntimer on my wordpress site (www.orkfia-portal.com), Im using a span id to display this.
I can get it to work on basic sites like this: http://www.orkfia-portal.com/wordpress/wp-content/themes/oldschool-10/counter.php but when I try to implent it on my wordpress frontpage it just doesnt work. it shows the box but wont show the span.
here is the header.php where Im putting it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<script language="javascript" type="text/javascript" src="realtime.countdown.v1.1.js"></script>
<script language="javascript" type="text/javascript">
function load() {
countdown('a', "September 4, 2008 00:00:00", 3, 'Orkfia');
}
</script>
<link rel="shortcut icon" href="http://www.orkfia-portal.com/icon.ico" />
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php wp_head(); ?>
</head>
<body onload="load()">
<center><ul class='menu green'>
<li><a href='http://www.orkfia-portal.com'>Home</a></li>
<li><a href='http://www.orkfia-portal.com/phpBB3'>Forum</a></li>
<li><a href='http://www.orkfia-portal.com/?page_id=6'>Orkfia Faces</a></li>
<li><a href='http://www.orkfia-portal.com/?page_id=40'>Chat</a></li>
<li id='dv'><a href='http://www.orkfia-portal.com/?page_id=2'>About</a></li>
<li><a href='http://www.orkfia.org' target='_blank'>Orkfia - Alliances at War</a></li>
<li id='dv2'><a href='http://www.orkfiaclassic.com' target='_blank'>Orkfia - Classic</a></li><li><a href='http://www.orkfia-portal.com/?page_id=20'>What is Orkfia?</a></li>
</ul></center>
<div id="container"><div id="page">
<div id="header">
<div class="topmenu">
<h1><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
</div>
It feels like quite a mess, what Im trying to add is a <div id="counter"><span id="a"></span></div> and preferbly a href around it but dunno if its possbile.
Im trying to put it on the banner which is just next to that </h1>.
Ultimate would be to have it on the upper right corner of the banner but atm I would just be happy if I could get it to work.
Cheers for any help that could be provided, (didnt know which sections this should be put in so I put it here)