ok, it is not really a mod, it is just a snipped. but it is extremly powerful :D.
it activates the templatesystem. as you know u can choose different theme styles/theme/xxx as themes.
this mod let you add custom templates.
as ususal this can be viewed at tests 2moons . go to settings -> change skin and see that the templates are different
we now do a tutorial
first
make a folder
styles/templates/new/game/
then also
styles/theme/new/
copy the stuff form folder gow to folder new (copy means in both folder you have the same stuff)
now go to
styles/templates/new/game/ and add
page.officier.default.tpl.txt
now comes the snipped
edit includes/classes/class.template.php
find
replace width
now you go to styles/theme/new/style.cfg
now you shoud have a skin, can be choosen with settings -> skin -> new
wich has a custom officerpage.
ps:don't forget to delete the .txt at the end of page.officer.default.tpl.txt
it activates the templatesystem. as you know u can choose different theme styles/theme/xxx as themes.
this mod let you add custom templates.
as ususal this can be viewed at tests 2moons . go to settings -> change skin and see that the templates are different
we now do a tutorial
first
make a folder
styles/templates/new/game/
then also
styles/theme/new/
copy the stuff form folder gow to folder new (copy means in both folder you have the same stuff)
now go to
styles/templates/new/game/ and add
page.officier.default.tpl.txt
now comes the snipped
edit includes/classes/class.template.php
find
replace width
now you go to styles/theme/new/style.cfg
PHP Source Code
- <?php
- $Skin = array(
- 'name' => 'new skin',
- 'tag' => 'new', #this will be also the foldername for the templates
- 'author' => 'icke',
- 'templates' => array('page.officier.default.tpl'), #example array('page.officier.default.tpl' , 'page.buildings.default.tpl' , 'page.research.default.tpl') If Skin have CustomTemplates, copy them to styles/templates/<theme tag>/ and add the names here
- );
wich has a custom officerpage.
ps:don't forget to delete the .txt at the end of page.officer.default.tpl.txt