Events

Hey guys,

this is my code from the Event Unit

<div class="sys_file_search_unit bx_events_unit">
<div class="sys_file_search_pic" style="background-image: url(__thumb_url__);">
<a href="__event_url__"><img src="__spacer__"/></a>
</div>
<div class="sys_file_search_header">
<div class="sys_file_search_rate">__rate__</div>
<div class="sys_file_search_size bx_events_unit_participants"><b>__participants__</b></div>
<div class="clear_both"></div>
</div>
<div class="sys_file_search_title">
<a href="__event_url__">__event_title__</a>
</div>
<div class="infoUnit">
__date__
</div>
<div class="sys_file_search_country">__country_city__</div>
<div class="sys_file_search_when">__event_start__</div>   
</div>

Any idea why the date isn´t showing up? I manually added the date

Quote · 3 Mar 2010

Provide the code snippet where you manually added the date.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 3 Mar 2010

hmm... its up there

<div class="infoUnit">
__date__
</div>

Quote · 3 Mar 2010

I see that already. I am asking you to provide the other piece of code where you have assigned the date value to __date__

You should note that __date__ is just a placeholder in the HTML. You have to assign a value to it in the class file (Specifically, In function unit() found in /modules/boonex/events/classes/BxEventsTemplate.php).

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 3 Mar 2010

Ah wow sorry Okey thanks for you calmness :P thought its global defined like that ^^ I will see if I can define it manually now big thanks Ill post when I did it :P

sorry if I´m wrong but isnt that already defined

'date' => getLocaleDate($aEvent['Date'], BX_DOL_LOCALE_DATE_SHORT),

Quote · 3 Mar 2010

You are looking at the blockInfo function which controls the data displayed in the Info block on the Events View Page. The definition needs to be in the unit function. See below for example of how to do this :

Find :

'thumb_url' => $sImage ? $sImage : $this->getIconUrl('no-photo.png'),

Just below, Add :

'date' => getLocaleDate($aData['Date'], BX_DOL_LOCALE_DATE_SHORT),

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 3 Mar 2010

if it now shows 01.01.1970 take this in the unit function in BxEventsTemplate.php

Find :

'thumb_url' => $sImage ? $sImage : $this->getIconUrl('no-photo.png'),

Just below, Add :

'date' => getLocaleDate($aData['EventStart'], BX_DOL_LOCALE_DATE_SHORT),

ue30 Mods - http://www.boonex.com/market/posts/ue30
Quote · 3 Mar 2010
 
 
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.