Change the date format : mod_eb_events

  • Priscille
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #17865 by Priscille
Change the date format : mod_eb_events was created by Priscille
Hi,

I would like change the date format because I need to add a different style to the hour.

Can you help me please?

Thank you :)

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #17867 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change the date format : mod_eb_events
Hi

Right now, the module use the format which you entered on Event Date Format config option to display event date. If you want to use a different date format, you will have to edit code in the file modules/mod_eb_events/tmpl/default.php . Please try to edit it yourself.

Tuan

Please Log in or Create an account to join the conversation.

  • Priscille
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #17879 by Priscille
Replied by Priscille on topic Re: Change the date format : mod_eb_events
Thanks for you reply.
I saw this line in default.php
Code:
<span class="event_date"><?php echo JHTML::_('date', $row->event_date, $config->event_date_format, $format); ?></span>

But I want separate date and hour with a different span class.

This code generate the date :
Code:
$where[] = 'DATE(event_date) >= CURDATE()' ; $where[] = '(cut_off_date = "'.$db->getNullDate().'" OR DATE(cut_off_date) >= CURDATE())' ;

But my knowledges in PHP are limited, so I need your help :)

Thank you

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #17905 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change the date format : mod_eb_events
Hi

Could you please let me know a sample format of how you want the data to be displayed so that I can guide you ? Also, what Joomla version you are using ?

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc