Hey, how're you doing today? My name is Robb Moceri and I have been working on a website for somebody and I ran into a very complicated problem(complicated on my end), and seriously cannot find the answer.

Like I said, I am working on a site... they wanted me to create just a simple html template for them. Then they tell me its gonna be used as a php template, which I am not familiar with... but I pasted in the php tags all the same, so it exactly mirrors their old template. The problem is, obviously, is that the filetype is .tpl. And I can't for the life of me find a way to creat a .tpl.

I tried saving it as a template in dreamweaver, but it saves it as a .dwt and not .tpl. I tried using a text editor to just save it as a .tpl. My computer opens it in dreamweaver when I double click it, so at least my computer recognizes it. but their server doesn't.... one thing I did notice is that their old .tpl was only 9 kb, my new one saved at like 24kb, so something isn't right! So could you possibly either tell me how to save that code as a .tpl, or possibly even do it for me if its simple enough? I am in a real tight spot... thanks!

.tpl is the extension for phpBB (www.phpbb.com) template files. It may also be used as templates for other software as well. In any case, the .tpl files must be placed in the templates directory within the phpBB software to be used - not accessed directly.

Any file can be saved with any extension. If it's easier for you, create the file in DreamWeaver as an HTML file. Then, simply rename it with a .tpl extension before you upload it.

thats for that... it really clears things up a lot. the problem is that I did just use dreamweaver to rename the file with an extension of .tpl, and the server doesn't recognize it. So, I am sorta in a tough spot... I could only figure when I used dreamweaver, and just regular notepad to save at that perticular file extensive it didn't encode it correctly? I dunno

maybe, if you possibly could... because I have exhausted all efforts at this point, is maybe just take the code I've written and make a .tpl file for me to upload? I dunno what I could do!? heres the code if you would...

<html>
<head>
<SCRIPT language=Javascript1.1>if (self!=top) top.location.replace(location.href)</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Service Provider Weekly</title>
<!-- TemplateEndEditable --><style type="text/css">
<!--
body {
background-image: url(images/newbg.gif);
}
.style3 {font-family: Tahoma, Verdana, Arial; font-size: 10px; }
.style4 {color: #000000}
a:link {
color: #990000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #990000;
}
a:hover {
text-decoration: underline;
color: #CC3300;
}
a:active {
text-decoration: none;
color: #990000;
}
.style6 {font-family: Tahoma, Verdana, Arial; font-size: 10px; font-weight: bold; }
.style10 {font-size: 9}
-->
</style>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>


<body>
<p align="center"><script language="JavaScript" src="http://www.gmmediacorp.com/cgi-bin/banerrotate/jrotate.cgi?UID=83">
</script></p>
<table width="782"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr><td>
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="18" align="center"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46" background="images/topbgleft01.gif">&nbsp;</td>
<td height="28" align="left" valign="top" background="images/topbg01.gif">&nbsp;</td>
<td width="46" background="images/topbg01.gif"><img src="images/topbgright01.gif" width="46" height="28"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="18" align="center"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46" background="images/logomid01left.gif">&nbsp;</td>
<td height="78" align="left" valign="bottom" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="195" align="left" valign="middle"><img src="images/spw_logo01.gif" width="194" height="57"></td>
<td height="80" align="right" valign="middle">{TOP_BANNER}</td>
</tr>
</table></td>
<td width="46" background="images/topbgright01mid.gif">&nbsp;</td>
</tr>
<tr>
<td height="28" background="images/topbgleft01bot.gif">&nbsp;</td>
<td background="images/topbg01bot.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
<td background="images/topbgright01bot.gif">&nbsp;</td>
</tr>
<tr>
<td height="30" background="images/menubar_under01left.gif">&nbsp;</td>
<td background="images/menubar_top01.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="325" height="30" background="images/menubar_under01midleft.gif">&nbsp;</td>
<td width="21"><img src="images/menubar_under01mid.gif" width="21" height="30"></td>
<td background="images/menubar_under01lright.gif">&nbsp;</td>
</tr>
</table></td>
<td background="images/menubar_under01lright.gif">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24" align="center" valign="bottom" background="images/topback01top.gif" bgcolor="#6D6D6D"><img src="images/mostinfo01.gif" width="429" height="14"></td>
</tr>
<tr>
<td height="122" align="center" valign="middle" background="images/topback01.gif" bgcolor="#6D6D6D">{TOP_BIG_BANNER}</td>
</tr>
<tr>
<td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" align="left" valign="top" bgcolor="#CCCCCC"><table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Search &nbsp;</span></td>
</tr>
<tr>
<td align="center" valign="middle"><br>
<form action="./search.php">
<input type="text" name="keyword" style="font-size:10px;background:#eeeeee" size="20">
<input type="image" name="image" src="" width="1" height="1" border="0">
</form><br>
<script language="JavaScript" src="http://www.gmmediacorp.com/cgi-bin/banerrotate/jrotate.cgi?UID=91">
</script><br>
</td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Home&nbsp;</span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">News&nbsp;</span></td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=1" class="txtNav2">&nbsp;Latest News</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=2" class="txtNav2">&nbsp;Product News</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=393" class="txtNav2">&nbsp;International News</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=401" class="txtNav2">&nbsp;Business News</a></span></td>
</tr>
</table>


</td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Business&nbsp;</span></td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=4" class="txtNav2">&nbsp;Finance</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=5" class="txtNav2">&nbsp;Legal Briefs</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=8" class="txtNav2">&nbsp;Telecom</a></span></td>
</tr>
</table>


</td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Wireless&nbsp;</span></td>
</tr>
<tr>
<td align="center" valign="top">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=405" class="txtNav2">&nbsp;Wireless News</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=406" class="txtNav2">&nbsp;Wireless Tech</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=407" class="txtNav2">&nbsp;Backbone Providers</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">By Company &nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=15" class="txtNav2">&nbsp;Microsoft</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=402" class="txtNav2">&nbsp;HP</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=403" class="txtNav2">&nbsp;Cisco</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Features&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=12" class="txtNav2">&nbsp;Features Archives</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Security&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=6" class="txtNav2">&nbsp;Security News</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=394" class="txtNav2">&nbsp;Security Appliances</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=396" class="txtNav2">&nbsp;VOIP Security</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=397" class="txtNav2">&nbsp;Firewalls</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Data&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=3" class="txtNav2">&nbsp;Broadband</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=395" class="txtNav2">&nbsp;VOIP</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=404" class="txtNav2">&nbsp;Backbone</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=411" class="txtNav2">&nbsp;IP</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Web Hosting &nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=7" class="txtNav2">&nbsp;Hosting News</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=398" class="txtNav2">&nbsp;Hosting Automation</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=399" class="txtNav2">&nbsp;Hosting Reseller</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Technology&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif" bgcolor="#CCCCCC"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=400" class="txtNav2">&nbsp;Dial-up Accelerators</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Reading&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=9" class="txtNav2">&nbsp;Books</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=14" class="txtNav2">&nbsp;Studies & Reports</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Showcase&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=11" class="txtNav2">&nbsp;Product Showcase</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=10" class="txtNav2">&nbsp;Company Showcase</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Online Advertising&nbsp;</span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0" background="images/sidebarbgl.gif">
<tr>
<td height="18" align="left" valign="top"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="http://www.spweekly.com/marketing/" class="txtNav2">&nbsp;Media Kit</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">Electronic Magazine&nbsp;</span></td>
</tr>
<tr>
<td height="18" bgcolor="#CCCCCC">
<table width="150"  border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=386" class="txtNav2">&nbsp;Archives</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="http://www.spweekly.com/productspotlight.pdf" class="txtNav2">&nbsp;Product Spotlight</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="http://www.spweekly.com/companyspotlight.pdf" class="txtNav2">&nbsp;Company Spotlight</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="http://www.spweekly.com/marketing/" class="txtNav2">&nbsp;Advertise</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="publish.php?cmd=viewcat&catid=409" class="txtNav2">&nbsp;Reprints</a></span></td>
</tr>
<tr>
<td height="18" align="left" valign="top" background="images/sidebarbgl.gif"><span class="style3">&nbsp;<IMG height=7 hspace=2
src="images/ar_off.gif" width=7 name=nHome>&nbsp;<a href="http://www.spweekly.com/artengine/publish.php?cmd=register" class="txtNav2">&nbsp;Current Issue</a></span></td>
</tr>
<tr>
<td height="25" align="right" valign="middle" background="images/sidebarheader01.gif"><span class="style6">White Papers &nbsp;</span></td>
</tr>
<tr>
<td align="center" valign="top" background="images/sidebarbgl.gif"><P>
<DIV align=center>
{LEFT_BANNERS}</DIV>
</td>
</tr>
</table>


</td>
</tr>
</table>
</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
</table>


</td>
</tr>
<tr>
<td align="center" valign="top">
</td>
</tr>
</table></td>
<td align="left" valign="top" bgcolor="#FFFFFF"> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF">{CONTENT}</td>
</tr>
<tr>
<td height="466" align="center" valign="top" background="images/back1.gif" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
</table></td>
<td width="150" align="left" valign="top" background="images/sidebarbgr.gif"><table width="166"  border="0" cellpadding="0" cellspacing="0" background="images/sidebarbgr.gif">
<tr>
<td height="25" align="left" valign="middle" background="images/sidebarheader01right.gif"><span class="style6">&nbsp;Members</span></td>
</tr>
<tr>
<td align="center" valign="top"><span class="style3"><strong>You must be a member to access our data.</strong><BR>
<br>
<A href="./publish.php?cmd=logout">Log Out</A> | <A href="publish.php?cmd=register">Register</A></span></td>
</tr>
<tr>
<td height="25" align="left" valign="middle" background="images/sidebarheader01right.gif"><span class="style6">&nbsp;Sponsored Links </span></td>
</tr>
<tr>
<td align="center" valign="top"><br><script language="JavaScript" src="http://www.gmmediacorp.com/cgi-bin/banerrotate/jrotate.cgi?UID=85">
</script><br></td>
</tr>
<tr>
<td height="25" align="left" valign="middle" background="images/sidebarheader01right.gif"><span class="style6">&nbsp;Misc.</span></td>
</tr>
<tr>
<td align="center" valign="top">
<table width="100%"  border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center" valign="top">
<p><strong><font face=arial size = 1><span class="style4">For the latest issue available to non-subscribers in PDF format - Click on the cover below. To get your own copy every week click on the subscribe but<span class="style4">ton</span></span></font><span class="style4"><font face=arial size = 1>!
</font> </span></strong></p>
<p><a href="http://www.spweekly.com/current/cissue.pdf"><IMG src="http://www.spweekly.com/artengine/img/latestissuesmall.jpg" alt="Read the latest issue - click here!" border=0></a><br>
<a href="http://www.spweekly.com/artengine/publish.php?cmd=2004%20"><span class="style3">Magazine Archive</span></a></td>
</tr>
<tr>
<td align="center" valign="top">{RIGHT_BANNERS}</td>
</tr>
</table>


</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="19" align="center" background="images/menubar_top01.gif" class="style3">&nbsp;</td>
</tr>
<tr>
<td height="22" align="center" background="images/foottop01.gif" class="style3">&nbsp;</td>
</tr>
<tr>
<td align="center" class="style3"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48" background="images/footminl01.gif">&nbsp;</td>
<td align="center" valign="top" bgcolor="#E9E9E9" class="style3"><A href="http://www.possibilitymedia.com/emags/spw.html">About Us</A> | <A
href="http://www.spweekly.com/marketing/">Advertise</A> | <A
href="http://www.possibilitymedia.com/privacy.html">Privacy Policy</A> <A
href="http://www.possibilitymedia.com/copyright.html">All content &copy; Possibility Media All rights reserved.</A> <BR>
<BR>
Your Memebership On This Site Is Also Good To Visit Our Other Sites:<BR>
<BR>
<A
href="http://www.serviceprovidermagazine.com">Service Provider Magazine</A> &nbsp; <A
href="http://www.ispprofessional.com">ISP Professional</A>&nbsp;&nbsp; <A
href="http://www.ispnewswire.com">ISP NewsWire</A>&nbsp;&nbsp; <A
href="http://www.ispweekly.co.uk">ISP Weeekly (U.K.)</A>&nbsp;&nbsp; <A
href="http://www.broadbandworldmag.com">Broadband World Magazine</A>&nbsp;&nbsp; <A
href="http://www.ebusinessmag.com">E Business Magazine</A>&nbsp;&nbsp;<BR>
<A
href="http://www.esecuritymonthly.com">E Security Monthly</A>&nbsp;&nbsp; <A
href="http://www.netbizmagazine.com">Net Biz Magazine</A>&nbsp;&nbsp; <A
href="http://www.softwareworldmagazine.com">Software World Magazine</A>&nbsp;&nbsp; <A
href="http://www.mobileworldmagazine.com">Mobile World Magazine</A>&nbsp;&nbsp; <A
href="http://www.wirelessworldmagazine.com">Wireless World Magazine</A>&nbsp;&nbsp;<BR>
<A
href="http://www.hostingworldmagazine.com">Hosting World Magazine</A>&nbsp;&nbsp; <A
href="http://www.computerbuyermonthly.com">Computer Buyer Monthly</A>&nbsp;&nbsp; <A
href="http://www.businesscomputingmagazine.com">Business Computing Magazine</A>&nbsp;&nbsp; <A href="http://www.webmastermonthly.com">Webmaster Monthly</A>&nbsp;&nbsp; <A href="http://www.ispjobfair.com">ISP Job Fair</A>&nbsp;&nbsp;</td>
<td width="46" background="images/footminr01.gif">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="22" align="center" background="images/footbottom01.gif" class="style3">&nbsp;</td>
</tr>
</table>


</td></tr></table>
</body>
</html>

Thank you!

also, here is the php file that will be using the template, heres its code:

<?php


session_start();
session_register('MemberUsername');
session_register('MemberPassword');


require("data/config.inc");
require("sys/func.php");
require("sys/wp_config.php");
require("sys/window.class.php");
require("sys/page.class.php");
require("sys/form.class.php");
require("sys/easytemplate.class.php");
require("sys/artengine.db.class.php");
////
require("./sys/libmail.php");
require("./sys/htmlMimeMail.php");
require("./sys/mimePart.php");
require("./sys/RFC822.php");
require("./sys/smtp.php");
////
$ARTDB = new art_db ( $dbhost, $dbuser , $dbpass , $dbdebug);
$ARTDB->connect($dbname);
$tmmp = $ARTDB->check_exp();
if ( $ARTDB->connect_on < 1 )    {
echo "Can't go on, DB not initialized.";
}
$categories = $ARTDB->get_categories();
$adfss = $ARTDB->get_adfss();


if(!isset($MemberUsername)){$MemberUsername="";}
if(!isset($MemberPassword)){$MemberPassword="";}


if($cmd == "memberlogin"){
$uname = prepare_data($uname);
$MemberUsername = $uname;
$MemberPassword = $pass;
setcookie ("MemberUsername", $MemberUsername, time()+99999999);
setcookie ("MemberPassword", $MemberPassword, time()+99999999);
}


$MemberOk = false;


if($MemberUsername != ""){
$query = "select userpass from members where username='$MemberUsername' and sid='$sid'";
$res = $ARTDB->query($query);
if($row=$res->fetch_assoc()){
$tmppass = crypt("$MemberPassword","AE");
if($row[0] == $tmppass){
$MemberOk = true;
}
}
}


if($cmd == "logout"){
session_unregister("MemberUsername");
session_unregister("MemberPassword");
unset($MemberUsername);
unset($MemberPassword);
setcookie ("MemberUsername", "", time() - 3600);
setcookie ("MemberPassword", "", time() - 3600);
$cmd = "";
$MemberOk = false;
}


if(($cmd == "memberlogin")&&(!$MemberOk)){
$error_msg = "Authentication Error<br><br>";
$cmd = "login";
}else{
$error_msg = "";
}


$cmd = prepare_data($cmd);
$suffix = "";
switch ($cmd) {
case "frontpage" : $suffix=$cmd; break;
case "viewcat" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "viewart" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "2004" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "2003" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "2002" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "2001" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "register" : $suffix=$cmd; break;
case "login" : $suffix=$cmd; break;
case "wp" : if($MemberOk){$suffix=$cmd;}else{$suffix="register";} break;
case "postwp" : $suffix=$cmd; break;
case "postwpdone" : $suffix=$cmd; break;
case "regwp" : $suffix=$cmd; break;
default : $suffix="frontpage"; break;
}


$main_tmp = new EasyTemplate("./data/frontpage.tpl");


if($MemberOk){
$main_tmp->assign("LOGINOUT","<A href=\"./publish.php?cmd=logout\">LogOut</A>");
}else{
$main_tmp->assign("LOGINOUT","<A href=\"./publish.php?cmd=login\">Login</A>");
}
$tbfile = @file("data/uploads/inc/topbanner.inc");
$tbcode = "";
for($i=0; $i < sizeof($tbfile);$i++){
$tbcode .= $tbfile[$i];
}
$main_tmp->assign("TOP_BANNER","$tbcode");


$tbbfile = @file("data/uploads/inc/topbigbanner.inc");
$tbbcode = "";
for($i=0; $i < sizeof($tbbfile);$i++){
$tbbcode .= $tbbfile[$i];
}
$main_tmp->assign("TOP_BIG_BANNER","$tbbcode");


$lbfile = @file("data/uploads/inc/leftbanners.inc");
$lbcode = "";
for($i=0; $i < sizeof($tbfile);$i++){
$lbcode .= $lbfile[$i];
}
$main_tmp->assign("LEFT_BANNERS","$lbcode");


$rbfile = @file("data/uploads/inc/rightbanners.inc");
$rbcode = "";
for($i=0; $i < sizeof($rbfile);$i++){
$rbcode .= $rbfile[$i];
}
if($MemberOk){
$rbcode = preg_replace("/{LATESTISSUE}/i","$latest_issue",$rbcode);
}else{
$rbcode = preg_replace("/{LATESTISSUE}/i","./publish.php?cmd=register",$rbcode);
}
$main_tmp->assign("RIGHT_BANNERS","$rbcode");


$fpnn = "";
if($logo!="NONE"){
if(file_exists("./data/$logo")){
$logo_size = @GetImageSize("./data/$logo");//[0] - width, [1] - height
$lh_size = "810";
$lv_size = "120";
$lh_space = 1;
$lv_space = 1;
$lsize_extra = "width=\"$lh_size\" height=\"$lv_size\" hspace=\"$lh_space\" vspace=\"$lv_space\"";
$fpnn .= "<img align=\"middle\" alt=\"$front_page_newspaper_name\" $lsize_extra src=\"$web_root/data/$logo\" border=\"0\">";
}
}
//$main_tmp->assign("NEWSPAPERNAME","$fpnn");
$cat_keys = array_keys($categories);
$cat_vals = array_values($categories);
$cat_str = "";
$ci = 0;
$tracks = $ARTDB->get_tracks();
$tracks_keys = array_keys($tracks);
for ($j = 0; $j < sizeof($tracks_keys); $j++) {
$tmptk = $tracks_keys[$j];
$tkname = $tracks[$tmptk];
$tkinfo = $ARTDB->track_info($tmptk);
if($tkinfo["url"] != ""){
$tkurl = $tkinfo["url"];
$tkurl = preg_replace("/^http:\/\//i","",$tkurl);
$tkname = "<a class=\"txtNav\" href=\"http://$tkurl\">$tkname</a>";
}
$cat_str .= "
<tr>
<td height=\"23\"> <IMG height=7 hspace=2
src=\"images/ar_off2.gif\" width=7 name=nHome> <b style=\"font-size:11px\">$tkname</b></td>
</tr>";
$tcategories = $ARTDB->get_categories("and tid='$tmptk'");
$tcat_keys = array_keys($tcategories);
$tcat_vals = array_values($tcategories);
for ($i = 0; $i < sizeof($tcat_keys); $i++) {
$cur_cat = $ARTDB->cat_info("$tcat_keys[$i]");
if($cur_cat["status"] == "visible"){
$cc = $cur_cat["cat_id"];
$query = "SELECT cat_id FROM categories WHERE cat_id='$cc'";
$hres = $ARTDB->query($query);
if($row = $hres->fetch_assoc()){
$cur_name = $cur_cat["name"];
$cat_url = "publish.php?cmd=viewcat&catid=$tcat_keys[$i]";
if($cur_cat["url"] != ""){
$tmpcurl = preg_replace("/^http:\/\//i","",$cur_cat["url"]);
$cat_url = "http://$tmpcurl";
}
$cat_str .= "
<tr>
<td height=\"18\" bgcolor=\"#CCCCCC\">&nbsp;<IMG height=7 hspace=2
src=\"images/ar_off.gif\" width=7 name=nHome>&nbsp;<a href=\"$cat_url\" class=\"txtNav2\">&nbsp;$cur_name</a></td>
</tr>";
//OLD_SPW        <IMG height=2 src=\"./img/div_nav.gif\" width=155 vspace=1><BR>
//        <IMG height=7 hspace=2 src=\"./img/ar_off.gif\" width=7 name=nShowCoverage>
//        <A class=txtNav href=\"publish.php?cmd=viewcat&catid=$cat_keys[$i]\">&nbsp;$cur_name</A><BR>
//      ";
}
}
}
}
$cat_str .= "
<tr>
<td height=\"23\"> <IMG height=7 hspace=2
src=\"images/ar_off2.gif\" width=7 name=nHome> <b style=\"font-size:11px\"><a class=\"txtNav\" href=\"publish.php?cmd=wp\">White Papers</a></b></td>
</tr>";
$cat_str .= "\n";


$cur_date = date("j M Y");
$main_tmp->assign("CATEGORIES","$cat_str");


include ("include/publish_$suffix.inc.php");


$main_tmp->assign("TITLE","$front_page_title");
$main_tmp->assign("CONTENT","$content_code");


$main_content = $main_tmp->easy_parse();
echo $main_content;


?>

maybe I coded something wrong? I dunno... but I would really appreciate the help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.