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.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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.
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.
PunBB Forums → PunBB 1.2 troubleshooting → Using my own Templates
Powered by PunBB, supported by Informer Technologies, Inc.