here is how I created my "otherpage.php"
Code:
<?php
define('OFFERS_DONT_SHOW_NEW',1);
require "./auth.php";
$smarty->assign("main","catalog");
$smarty->assign("location", $location);
func_display("customer/mytemplate.tpl",$smarty);
?>
mytemplate.tpl below contains what I want to display.
Code:
{* $Id: mytemplate.tpl,v 1.67.2.10 2005/10/31 11:36:14 max Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
<LINK rel="stylesheet" href="{$SkinDir}/tabs.css">
</HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
{capture name=whatever}
fill in the space to your heart content
{/capture}
{include file="dialog.tpl" title= "Your Title" content=$smarty.capture.whatever extra="width=100%"}
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}
an example
http://www.haitiwebs.net/ecommerce/states.php?state=Alaska