• 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: Problem with template overrides

Problem with template overrides 2 years 3 months ago #41717

Hello
Sorry for my english

I would like to put "Start / End date" between <h2>

So I followed this tutorial : www.rsjoomla.com/support/documentation/r...s-look-and-feel.html

Copy "show.php" into "templates/yootheme/html/com_rseventspro/rseventspro"
I modifed file in line 349 with :
<h2><?php echo JText::_('COM_RSEVENTSPRO_GLOBAL_ON'); ?> <?php echo rseventsproHelper::showdate($event->start,$this->config->global_date,true); ?> </h2>

But when I refresh an event page nothing change...
I don't see any change nto source code...

I tried to modify this line into original file into original path but same problem...

Someone can help me ?
Last Edit: 2 years 3 months ago by tdconcepts.
The administrator has disabled public write access.

Problem with template overrides 2 years 3 months ago #41732

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 557
  • Thank you received: 102
Hello,

The piece of code is displaying the date if the 'All day event' option is checked while editing your event. If your event has a start / end date, then you should adjust the following code:
<?php if (!empty($this->options['start_date']) || !empty($this->options['start_time'])) { ?>
	<?php if ((!empty($this->options['start_date']) || !empty($this->options['start_time'])) && empty($this->options['end_date']) && empty($this->options['end_time'])) { ?>
	<?php echo JText::_('COM_RSEVENTSPRO_EVENT_STARTING_ON'); ?>
	<?php } else { ?>
	<?php echo JText::_('COM_RSEVENTSPRO_EVENT_FROM'); ?> 
	<?php } ?>
 
	<?php echo rseventsproHelper::showdate($event->start,rseventsproHelper::showMask('start',$this->options),true); ?>
<?php } ?>
 
<?php if (!empty($this->options['end_date']) || !empty($this->options['end_time'])) { ?>
	<?php if ((!empty($this->options['end_date']) || !empty($this->options['end_time'])) && empty($this->options['start_date']) && empty($this->options['start_time'])) { ?>
	<?php echo JText::_('COM_RSEVENTSPRO_EVENT_ENDING_ON'); ?>
	<?php } else { ?>
	<?php echo JText::_('COM_RSEVENTSPRO_EVENT_UNTIL'); ?>
	<?php } ?>
 
	<?php echo rseventsproHelper::showdate($event->end,rseventsproHelper::showMask('end',$this->options),true); ?>
<?php } ?>
The administrator has disabled public write access.
The following user(s) said Thank You: tdconcepts
  • 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!