The easiest solution may be the following. Open your
template.html file, cut everything from the first line until (including) the CPMFetch code block and save it in a new php file. In your case it would be
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>Madison and Scott Online | Image Gallery</title>
{META}
<link rel="stylesheet" href="themes/gallery/style.css" type="text/css" />
<link rel="stylesheet" href="themes/gallery/wp_style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html 2688 2005-12-04 03:22:35Z donnoman $ -->
<body>
<div id="bodymain">
<div id="header">
<div id="nav" style="position: absolute; top:21px; width: 1000px; left: 0px; height: 60px;z-index:3">
<a href="http://www.madisonandscott.info/word/?page_id=4">MaScott</a> ♥
<a href="http://madisonandscott.info/gallery">Gallery</a> ♥
<a href="http://www.youtube.com/user/MaScottOnline">Youtube</a> ♥
<a href="http://www.madisonandscott.info/word/?page_id=8">Web</a> ♥
<a href="http://www.madisonandscott.info/word/?page_id=10">Site</a> ♥
<a href="http://twitter.com/#!/MaScottOnline">Twitter</a> ♥
<a href="http://madisonandscott.info">Home</a> ♥
</div>
</center></b>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div style="position: absolute; top: 267px; width: 280px; left: 35px; height: 95px;" id="welcome">
Welcome to <b>Madison and Scott Online</b>, the ultimate source for All My Childrens hottest new couple, Madison North and Scott Chandler and their
portrayers Stephanie Gatschet and Daniel Cosgrove. Here you can find everything you want to know about Madison and Scott as well as a growing gallery
and more. So take a look around and I hope you like what you see.
</div>
<div style="position: absolute; top: 272px; width: 375px; left: 699px; height: 95px;" id="pics">
<?php include"/home/justinbr/public_html/madisonandscott.info/gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/home/justinbr/public_html/madisonandscott.info/gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_setfilter($filter = ".jpg");
$options = array('windowtarget' => '_blank',"imagewidth"=>"50");
$objCpm->cpm_viewLastAddedMedia(2,4,$options,$filter);
$objCpm->cpm_close();
?>
</div>
As you removed the
{CUSTOM_HEADER} token in your theme, restore it at the top of the
template.html file.
Now just set the new PHP file as
custom header in the Coppermine config.
I haven't tested that, so please report if it works.