ich möchte gerne für jede Forenkategorie ein eigenes cellpic einstellen.
Ich habe bisher keinen Lösungsansatz dafür finden können.
Ich hoffe, das mir jemand helfen kann

Gruß
Code: Alles auswählen
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
Code: Alles auswählen
<tr>
<td class="catLeft" style="background-image: url({catrow.CELLPIC_L});" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" style="background-image: url({catrow.CELLPIC_R});" colspan="3" align="right"> </td>
</tr>
Code: Alles auswählen
$template->assign_block_vars('catrow', array(
Code: Alles auswählen
$cellpic_l_img = $images['cellpic']['standard']['l'];
$cellpic_r_img = $images['cellpic']['standard']['r'];
if(!empty($images['cellpic'][$cat_id]['l']))
{
$cellpic_l_img = $images['cellpic'][$cat_id]['l'];
}
if(!empty($images['cellpic'][$cat_id]['r']))
{
$cellpic_r_img = $images['cellpic'][$cat_id]['r'];
}
$template->assign_block_vars('catrow', array(
'CELLPIC_L' => $cellpic_l_img,
'CELLPIC_R' => $cellpic_r_img,
Code: Alles auswählen
?>
Code: Alles auswählen
$images['cellpic']['standard']['l'] = "$current_template_images/cellpic1.gif";
$images['cellpic']['standard']['r'] = "$current_template_images/cellpic2.jpg";
$images['cellpic'][1]['l'] = "$current_template_images/kat_1_l.gif";
$images['cellpic'][1]['r'] = "$current_template_images/kat_1_r.gif";
- Anstelle von 1 musst du die ID der Kategorie angeben.$images['cellpic'][1]['l'] = "$current_template_images/kat_1_l.gif"