Creating a custom skin starting from the IpbWiki Skin
From IpbWiki
Contents |
Step 1: Copy the skin to a new skin name
- copy the directory ipbwiki_skin_monbook to the directory myownskinname
- copy the file ipbwiki_skin_monobook.php to myownskinname.php
- copy the file ipbwiki_skin_monobook.deps.php to myownskinname.deps.php
Step 2: edit the file myownskinname.php
- open myownskinname.php
- change class Skinipbwiki_skin_monobook extends SkinTemplate { by class Skinmyownskinname extends SkinTemplate {
- change $this->skinname = 'ipbwiki_skin_monobook'; by $this->skinname = 'myownskinname';
- change $this->stylename = 'ipbwiki_skin_monobook'; by $this->stylename = 'myownskinname';
- change $this->template = 'ipbwiki_skin_monobookTemplate'; by $this->template = 'myownskinnameTemplate';
- change class ipbwiki_skin_monobookTemplate extends QuickTemplate { by class myownskinnameTemplate extends QuickTemplate {
Step 3: apply customizations to myownskinname.php
- At this point the myownskinname skin should already work, it's time to apply your own customizations
- Generally you will have to edit the code within the function execute()
- if you want to add php code make sure to put it in between the tags <?php and ?>
- if you want to add plain html code make sure they are not between the tags <?php and ?>
Step 4: Connect your skin to an Invision Power Board Skin
- Go to your forum admin cp -> components -> IpbWiki -> IpbWiki Skin
- Set the skintype to Custom Skin
- Set custom skin to myownskinname
- Save the changes
- See also: IpbWiki:Skin_Synchronization
