OK so you want it all done, is taht what you call the easy way??
this in your route
chess.php
<?php
/***************************************************************************
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/GPL-license.php GNU Public License
*
* my template.php
* -------------------
* Instructions by Lopalong 8th September 2009 < http://www.lopalong.com >.
*
***************************************************************************/
/***************************************************************************
*
* READ THIS! Wherever you see MY_TEMPLATE or My_Template or my_template, replace with whatever you
* want to call your new page.
*
***************************************************************************/
// CTracker_Ignore: File checked by human
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
/***** If you want to create VARS (Custom) that do not already exist in Icy Phoenix, you can add them to this page, or create the file "variables.php" for variable-transition of your own "Stand-Alone VARS" to the .tpl file(s). So you will need to uncomment the line below.
*****/
// include(IP_ROOT_PATH . 'variables.' . PHP_EXT);
// standard session management
$userdata = session_pagestart($user_ip);
init_userprefs($userdata);
// Check if user is logged in
if (!$userdata['session_logged_in'])
{
redirect(append_sid('login_ip.' . PHP_EXT . '?redirect=files/chess.' . PHP_EXT, true));
}
// set the page title
$page_title = 'Chess';
// The standard page header
include(IP_ROOT_PATH . 'includes/page_header.' . PHP_EXT);
// assign the template
$template->set_filenames(array('body' => 'chess.tpl'));
$template->assign_vars(array(
// This is where you would add a new VARS Array and any of your own if you intend to use your OWN custom VARS with a variables.php file.
));
$template->pparse('body');
// standard page footer
include(IP_ROOT_PATH . 'includes/page_tail.' . PHP_EXT);
?>
and this in templates/default/chess.tpl
<table width="100%" border="0">
<tr>
<td><div align="center">
<h1>Chess </h1>
<p>
The Macromedia player code, including path of your swf file
</p>
</div></td>
</table>
only thing you need to edit is the tpl file