How would you include it into the home.html calling it via a require?
I like to my addons to be included, rather than copy / pasted into the template files. This makes it easier to keep up with.
I am having a bit of a problem getting the random block to work like this.
Here is what I have in a random_image.php file:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="head1" valign="top">{lang_random_image}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="head1">{random_images}</td>
</tr>
</table>
Here is how I am trying to call it in the home.html template page:
<?php
require "{template_url}/addons/random_image.php";
?>
The code works if I paste it directly, but calling it as 'require' does not.. I want it working more like a 'plugin' style, to keep the code clean..