• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Change Date formats on Slider and Upcoming modules

Change Date formats on Slider and Upcoming modules 11 years 1 month ago #26906

I was able to successfully use some workarounds to display the date in a format that works for how we promote events. Using the "phone" field in Contacts, I was able to use the keyword "repeat" to signify that a performance would show as Start Date to End Date without listing times. An example is here: cloweshall.org/events/event/246-girl-of-the-golden-west

I have done the same by using the same field and the keyword "education" to do this: cloweshall.org/education/pnc-school-mati...vent/121-henry-mudge which shows specific times on the same day.

The code I use is


<?php
if ($event->phone == 'repeat') {
echo JText::_('COM_RSEVENTSPRO_GLOBAL_FROM') .' ';
echo rseventsproHelper::date($event->start,$this->config->global_date,true);
echo ' ' . JText::_('COM_RSEVENTSPRO_GLOBAL_TO_LOWERCASE') . ' ';
echo rseventsproHelper::date($event->end,$this->config->global_date,true);
} else {
if ($event->phone == 'education') {
echo JText::_('COM_RSEVENTSPRO_GLOBAL_FROM') .' ';
echo rseventsproHelper::date($event->start,$this->config->global_date,true);
echo " • 10:00 am & 12:00 pm";

} else {
echo ' ' .JText::_('COM_RSEVENTSPRO_GLOBAL_FROM');
echo rseventsproHelper::date($event->start,null,true);

}
}
?>

The issue is that I cannot figure out how to do this same method in the Slider and Upcoming Modules. They don't seem to accept the same method and I am not sure how to approach. Anyone have any ideas??
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!