Its simple - write correct code. If you write correct template code there will be no problems with eXtreme Styles mod.
To use eXtreme Styles mod features and keep template compatible with default template.php you can use one of these features:
1. eXtreme Styles mod switch.
There is root-level switch 'switch_xs_enabled' that you can use to write code that will be visible only with eXtreme Styles mod. Like this:
- Code: Select all
<!-- BEGIN switch_xs_enabled -->
<?php
// this php code will be visible only if eXtreme Styles mod is enabled
?>
<!-- END switch_xs_enabled -->
2. Using replacement templates.
There is a feature to use different templates for default phpBB and phpBB with XS mod. To use that feature you need to create file xs.cfg in current template directory and write something like this:
- Code: Select all
<?php
$replace['overall_header.tpl'] = 'overall_header_xs.tpl';
?>
After that when file overall_header.tpl is shown if forum uses default phpBB it will show overall_header.tpl and if forum uses eXtreme Styles mod it will show overall_header_xs.tpl
And of course you can use combination of those features using <!-- INCLUDE file.tpl --> to include default tpl file after you are done with processing tpl file for extreme styles mod. Look at jumpbox_xs.tpl in any of my themes for example.



