Okay I already tried the following (unsuccessful)
Between the categories there is a divider. This divider is controlled by the SMF BoardIndex.template.php at aprox line 227
I added an extra divider with an IF statment so I can control the position of this divider and I added an image file so I can see if it works.
Now it looks like this like this:
if($category['id'] == "5")
{
echo '
<tbody class="divider">
<tr>
<td colspan="4">
<img src="http://www.mysite.com/myimage.png";
</td>
</tr>
</tbody>';
}
This loop puts my image after category 5 and before category 6, just like i want it. The image looks great and i can control the position of the image with the category[id] in the first line.
Now I will have too replace the image with a block. I was thinking of using the <block in block> solution for this.
It should look something like this (replaced image with php code from block in block):
if($category['id'] == "5")
{
echo '
<tbody class="divider">
<tr>
<td colspan="4">
$block = current(getBlockInfo(false, 24, false, false));
$block['style'] = sportal_parse_style('explode', $block['style'], true);
parameters.template_block($block);
</td>
</tr>
</tbody>';
}
The problem is that this gives a PHP error and I can't fix that. Some , or ; on the wrong place ?
I just need the custom php of the "block in block" to echo out correctly
$block = current(getBlockInfo(false, 24, false, false));
$block['style'] = sportal_parse_style('explode', $block['style'], true);
parameters.template_block($block);
Is there some PHP guru that can help me ?
Greetz