mezhopking
11-26-2004, 09:50 AM
I'm probably being pig-headed but I'm having trouble creating my own teplate.
The thing is I've already got a site running with a template I'm happy with (http://www.mezhopking.com). What I want to do is put the relevant code into this template.
I've tried this, by simply copying and pasting the code from the original pixelpost template into a div on my template. I've created the relevant file, uploaded it and selected it from the options in pixelpost admin. But when I come to view www.mezhopking.com/photoblog/index.php - all i get is a blank screen.
Below is the code i'm using for my index.php maybe someone could shed some light on my problem. All the other php stuff is wordpress stuff and my includes. Is there a comprehensive guide out there which I can follow?
The CODE:
<?php
/* Don't remove this line. */
require('../../../wp-blog-header.php');
?>
<!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>
<title>Mez Hopking - Photography :: Travel :: Praha</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../../../styles/screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../../../styles/print.css" rel="stylesheet" type="text/css" media="print" />
<link href="../../../styles/handheld.css" rel="stylesheet" type="text/css" media="handheld" />
<link rel="Shortcut Icon" type="image/ico" href="../../../images/favicon.gif" /></head>
<body id="photo">
<link rel="pingback" href="<?php bloginfo('../../pingback_url'); ?>">
<?php wp_get_archives('type=daily&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
<script language='javascript' type='text/javascript'>
<!-- BEGIN
function flip(rid)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
}
// End -->
</script>
</head>
<body>
<?php include('http://www.mezhopking.com/nav.php');?>
<div id="page-b">
<div id="page-cols">
<div id="col-d-4th">
<div class="column-content">
<img src="../../../images/headers-travel.gif" />
<h1>Pixelpost</h1>
<div id="photos">
<div id="wrapper">
<div id="calendar">
<SITE_CALENDAR>
</div>
<div id="logo">
<SITE_TITLE>
</div>
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="image" src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_PREVIOUS_TITLE>" /></a>
<div id="image_info">
<span class='headline'><IMAGE_TITLE></span>
<IMAGE_NOTES>
<IMAGE_DATETIME> - <IMAGE_COMMENTS_NUMBER> comments. Category: <IMAGE_CATEGORY><p />
<IMAGE_THUMBNAIL_ROW>
</div>
<div id="image_navigation">
<IMAGE_PREVIOUS_LINK>
<a href="index.php">Current</a>
<IMAGE_NEXT_LINK>
&nbsp;&nbsp;&nbsp;
<SITE_PHOTONUMBER> photos | <SITE_VISITORNUMBER> visitors
&nbsp;&nbsp;&nbsp;
<a href="<SITE_REFLINK>">Referers</a>
&nbsp;&nbsp;&nbsp;
<a href="?showimage=<IMAGE_ID>">Permalink</a>
&nbsp;&nbsp;&nbsp;
<a href="<SITE_BROWSELINK>">Browse Archive</a>
</div>
<div id="comments">
<a href='#' onclick="flip('add_comment'); return false;">Add Comment</a><p />
<IMAGE_COMMENTS>
</div>
<div id="add_comment">
<script language='javascript' type='text/javascript'>flip('add_comment');</script>
<form method='post' action='index.php?x=save_comment' name='commentform' >
Message:<br />
<textarea name='message' rows='2' cols='4'></textarea><p />
Name:<br />
<input type='text' name='name' class='input' value='<VINFO_NAME>' /><p />
Website URL, if any: <br />
<input type='text' name='url' class='input' value='<VINFO_URL>' /><p />
<input type='checkbox' value='set' name='vcookie' /> Save User Info<p />
<input type='submit' value='Add' />
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
</form>
</div>
</div>
</div>
</div>
</div>
<div id="col-e">
<div class="column-content">
<?php include('http://www.mezhopking.com/cat-photo.php');?>
</div>
</div>
<div id="footer">
<?php include('http://www.mezhopking.com/footer.php');?>
</div>
</div>
</div>
</body>
</html>
The thing is I've already got a site running with a template I'm happy with (http://www.mezhopking.com). What I want to do is put the relevant code into this template.
I've tried this, by simply copying and pasting the code from the original pixelpost template into a div on my template. I've created the relevant file, uploaded it and selected it from the options in pixelpost admin. But when I come to view www.mezhopking.com/photoblog/index.php - all i get is a blank screen.
Below is the code i'm using for my index.php maybe someone could shed some light on my problem. All the other php stuff is wordpress stuff and my includes. Is there a comprehensive guide out there which I can follow?
The CODE:
<?php
/* Don't remove this line. */
require('../../../wp-blog-header.php');
?>
<!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>
<title>Mez Hopking - Photography :: Travel :: Praha</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../../../styles/screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="../../../styles/print.css" rel="stylesheet" type="text/css" media="print" />
<link href="../../../styles/handheld.css" rel="stylesheet" type="text/css" media="handheld" />
<link rel="Shortcut Icon" type="image/ico" href="../../../images/favicon.gif" /></head>
<body id="photo">
<link rel="pingback" href="<?php bloginfo('../../pingback_url'); ?>">
<?php wp_get_archives('type=daily&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
<script language='javascript' type='text/javascript'>
<!-- BEGIN
function flip(rid)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
}
// End -->
</script>
</head>
<body>
<?php include('http://www.mezhopking.com/nav.php');?>
<div id="page-b">
<div id="page-cols">
<div id="col-d-4th">
<div class="column-content">
<img src="../../../images/headers-travel.gif" />
<h1>Pixelpost</h1>
<div id="photos">
<div id="wrapper">
<div id="calendar">
<SITE_CALENDAR>
</div>
<div id="logo">
<SITE_TITLE>
</div>
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="image" src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_PREVIOUS_TITLE>" /></a>
<div id="image_info">
<span class='headline'><IMAGE_TITLE></span>
<IMAGE_NOTES>
<IMAGE_DATETIME> - <IMAGE_COMMENTS_NUMBER> comments. Category: <IMAGE_CATEGORY><p />
<IMAGE_THUMBNAIL_ROW>
</div>
<div id="image_navigation">
<IMAGE_PREVIOUS_LINK>
<a href="index.php">Current</a>
<IMAGE_NEXT_LINK>
&nbsp;&nbsp;&nbsp;
<SITE_PHOTONUMBER> photos | <SITE_VISITORNUMBER> visitors
&nbsp;&nbsp;&nbsp;
<a href="<SITE_REFLINK>">Referers</a>
&nbsp;&nbsp;&nbsp;
<a href="?showimage=<IMAGE_ID>">Permalink</a>
&nbsp;&nbsp;&nbsp;
<a href="<SITE_BROWSELINK>">Browse Archive</a>
</div>
<div id="comments">
<a href='#' onclick="flip('add_comment'); return false;">Add Comment</a><p />
<IMAGE_COMMENTS>
</div>
<div id="add_comment">
<script language='javascript' type='text/javascript'>flip('add_comment');</script>
<form method='post' action='index.php?x=save_comment' name='commentform' >
Message:<br />
<textarea name='message' rows='2' cols='4'></textarea><p />
Name:<br />
<input type='text' name='name' class='input' value='<VINFO_NAME>' /><p />
Website URL, if any: <br />
<input type='text' name='url' class='input' value='<VINFO_URL>' /><p />
<input type='checkbox' value='set' name='vcookie' /> Save User Info<p />
<input type='submit' value='Add' />
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
</form>
</div>
</div>
</div>
</div>
</div>
<div id="col-e">
<div class="column-content">
<?php include('http://www.mezhopking.com/cat-photo.php');?>
</div>
</div>
<div id="footer">
<?php include('http://www.mezhopking.com/footer.php');?>
</div>
</div>
</div>
</body>
</html>