Topic: Using my own Templates

How could I create a new template in /include/template/ for the register script.

What part of the script do I need to edit so instead of using main.tpl it would use register.tpl

Thank You.

2 (edited by chris9902 2005-04-28 13:03)

Re: Using my own Templates

Sorry about that, I got it now.

I changed this part in /header.php (line 37)

// Load the template
if (defined('PUN_ADMIN_CONSOLE'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/admin.tpl');
else if (defined('PUN_HELP'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/help.tpl');
else if (defined('PUN_REGISTER'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/register.tpl');
else
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/main.tpl');

And added

// Tell header.php to use the register template
define('PUN_REGISTER', 1);

To line 25 of /register.php

-------------

Thanks for making it so easy to edit, I love this script.