Manual installation of mods

Originally Written by A.M.A.

Mods are installed on the default theme&#039;s template files. It is hard for a Mod&#039;s author as well as a [[Theme] creater to make Mods work with other themes especially if they have several of their own template files. When a template file is not found in a custom non-default [[Theme] the [[Theme] will rollback and use the default theme&#039;s template file. But for the template files that the custom [[Theme] does use, you will need to manually install the mod on to your custom themes template files if the mod edited the same template file in the default theme. To apply a Mod to any [[Theme] manually use the following steps.

1. unzip the Mod package, and look for a file ending with .mod or .xml

2. open the .mod file with any text editor and search for &lt;edit file&gt;...&lt;/edit file&gt;, you will find a file name after the tag. What we need here is looking for a template file i.e. index.template.php, BoardIndex.template.php ..etc.

3. If you locate any template after the &lt;edit file&gt; tag, you will find the &lt;search for&gt;...&lt;/search for&gt;tag below it. It will contain a block of code that must be located in the specified template.

4. After the &lt;search for&gt; tag, you will find one of these: &lt;add after&gt;...&lt;/add after&gt;, which add a block of code after the code found. &lt;add before&gt;...&lt;/add before&gt;, which add a block of code before the code found. &lt;replace&gt;...&lt;/replace&gt;, which replace a block of code with the code found.

For example:

And that means, we need to open Display.template.php and look for:

and replace it with: