All the ACP would really have to do is:
1.)create the files template.php in phpbb root and template.tpl in your current templates directory.
2.)add required lines into files for sessions to work
3.)edit the line in template.php to point to template.tpl
Then, the user would have to edit the template.tpl file to include the content they wanted as well as add a link to the new template.php file someplace on the site. Optionally, there could be a text area for user input that would accept HTML and PHP (If they have extreme styles MOD installed)
So basically, the admin panel would ask you for the page name (To be put in the line:
Code: Select all
// set page title
$page_title = 'TEMPLATE';
in the template.php file
the filename to call the template.php and template.tpl files (And to place into the line:
Code: Select all
// assign template
$template->set_filenames(array(
'body' => 'template.tpl')
);
$template->pparse('body');
in template.php
If you get what I'm saying. Sometimes I don't even understand what I'm talking about.
