events mod

All the topics other than the two goes here.
  • Ads

events mod

Postby aiden857181 » Sat Oct 24, 2009 11:48 pm

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 on boonex but never got a reply.

Thank
aiden857181
Newbie
Newbie
 
Posts: 3
Joined: Sat Oct 03, 2009 8:09 am

Re: events mod

Postby Administrator » Mon Oct 26, 2009 1:37 pm

Please write these codes in a code tag while writing. Otherwise it is hard to read.

I have to see the database before giving a solution. PM me with database login details.
Regards,
Praveen
Administrator
Administrator
Administrator
 
Posts: 1069
Joined: Mon Aug 25, 2008 7:18 am
Location: India

  • Ads

Return to Dolphin General Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron