Hi All
I got a mod to put events into categories and it works well, but it uses a filter box to show the categories by location which is all fine but it does not show how many events are whitin each category in the same fassion as the classifieds.
Here is the code used to display the events filter box.
$sRetHtml = $this->DecorateAsTable(_t('_All Events'), $sRetHtml.$pagination);
$filterret .= '<table border="0" width="100%">
<tr>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=1"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['1']['LKey']).'</b></a></td>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=2"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['2']['LKey']).'</b></a></td>
</tr>
<tr>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=3"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['3']['LKey']).'</b></a></td>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=4"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['4']['LKey']).'</b></a></td>
</tr>
<tr>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=5"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['5']['LKey']).'</b></a></td>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=6"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['6']['LKey']).'</b></a></td>
</tr>
<tr>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=7"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['7']['LKey']).'</b></a></td>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=8"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['8']['LKey']).'</b></a></td>
</tr>
<tr>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=9"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['9']['LKey']).'</b></a></td>
<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=10"><img src="/templates/base/images/icons/more.png">
<b>'._t($aPreValues['EventCategorie']['10']['LKey']).'</b></a></td>
</tr>
//<tr>
//<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=9"><img src="/templates/base/images/icons/more.png">
//<b>'._t($aPreValues['EventCategorie']['11']['LKey']).'</b></a></td>
//<td><a style="text-decoration:none;" href="events.php?show_events=categorie&show_events_categorie=10"><img src="/templates/base/images/icons/more.png">
//<b>'._t($aPreValues['EventCategorie']['12']['LKey']).'</b></a></td>
//</tr>
</table>';
$sEventFilterSectFDB = <<<EOF
{$filterret}
EOF;
$sEventFilterSect = DesignBoxContent($sEventFilterC, $sEventFilterSectFDB, 1);
$sRetHtmlNew .= <<<EOF
<div>
<div class="clear_both"></div>
<div class="cls_info_left2">
{$sRetHtml}
</div>
<div class="cls_info2">
{$sEventFilterSect}
</div>
<div class="clear_both"></div>
</div>
<div class="clear_both"></div>
EOF;
Is it possible to edit this to show the number of events within each category.
Please help as I have posted this before but never got a reply.
Thank