Events Mod

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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
<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">&nbsp;
//<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">&nbsp;
//<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

Quote · 24 Oct 2009

Is this off Dolphinmods or UE30 that you got this?  There the only 2 with this mod and they each do it in a very different way.  Helps to know which one we have here.

Quote · 25 Oct 2009

this one I got from UE30.

Quote · 25 Oct 2009

The one you have is a pain in the arse to say the least.  The one from Dolphinmods is a much better product (yes, I've reviewed both of them for those who are about to jump in here and that review has included looking at all the files, install instructions, sql's and even attempting to install and utilize each of them) and you'll have a much better shot of achieving your goal with Dolphinmods version of it. 

Quote · 25 Oct 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.