• 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: Calendar - disable empty days from linking

Calendar - disable empty days from linking 12 years 5 months ago #15474

  • haris5
  • haris5's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
This is a hack to remove the comments in the callendar plus disabling the link from the empty days of the callendar, i m sharing as promised!!

So in the event of an update of the component this will be overwritten....apply with caution!!


You will need to edit the components/com_rsevents/helpers/calendar.php file and search for this class: editlinktip hasTip.

Around line 675, you will need to replace this:

<td class="<?php echo $day->class; ?>"><a href="<?php echo rseventsHelper::route('index.php?option=com_rsevents&view=calendar&layout=day&date='.date('m/d/Y',$day->unixdate).$itemId);?>" <?php echo $this->is_module ? 'class="editlinktip hasTip" title="'.$this->_showDetails($day->events, $suffix).'"' : ''; ?>>

with:

<td class="<?php echo $day->class; ?>"><a href="<?php echo rseventsHelper::route('index.php?option=com_rsevents&view=calendar&layout=day&date='.date('m/d/Y',$day->unixdate).$itemId);?>" <?php echo $this->is_module ? '' : ''; ?>>

If you also wish to apply the non-link issue, you can use this instead:

<?php if(empty($day->events)) { ?>
<span class="rse_date"><?php echo date('j', $day->unixdate); ?></span>
<?php } else { ?>
<a href="<?php echo rseventsHelper::route('index.php?option=com_rsevents&view=calendar&layout=day&date='.date('m/d/Y',$day->unixdate).$itemId);?>" <?php echo $this->is_module ? '' : ''; ?>>
<span class="rse_date"><?php echo date('j', $day->unixdate); ?></span>
</a>
<?php } ?>

Regards!
Last Edit: 12 years 5 months ago by haris5. Reason: changes
The administrator has disabled public write access.

Re: Calendar - disable empty days from linking 12 years 4 months ago #15642

  • aborlix
  • aborlix's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Hello haris5, I managed to do the 1st option, but the 2nd i dont not know where to put the code! Can you help me please!


<?php if(empty($day->events)) { ?>
<span class="rse_date"><?php echo date('j', $day->unixdate); ?></span>
<?php } else { ?>
<a href="<?php echo rseventsHelper::route('index.php?option=com_rsevents&view=calendar&layout=day&date='.date('m/d/Y',$day->unixdate).$itemId);?>" <?php echo $this->is_module ? '' : ''; ?>>
<span class="rse_date"><?php echo date('j', $day->unixdate); ?></span>
</a>
<?php } ?>

I do not know programming, and that makes it the hardest thing :(

Thanks so much for this TIPS!
Marco Lopes
The administrator has disabled public write access.

Re: Calendar - disable empty days from linking 12 years 4 months ago #15653

  • haris5
  • haris5's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
aborlix - its at the same position... its either the first or the second.

Regards
The administrator has disabled public write access.

Re: Calendar - disable empty days from linking 12 years 4 months ago #15683

  • aborlix
  • aborlix's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
Hello, sorry but I still can not do that!


Change the whole line of origin ...

<td class = "<? php echo $ day-> class; ?>">< a href =" <? echo <php echo $ this-> is_module? 'class = "editlinktip hasTip" title ="'.$ this-> _showDetails ($ day-> events, ).'"' $ suffix:'';?>>



FOR:

<php if (empty ($ day-> events)) {?>
<span class="rse_date"> <php echo date ('j', $ day-> unixdate);?> </ span>
<php} else {?>
<a href = "<? echo <php echo $ this-> is_module?'':'';?>>
<span class="rse_date"> <php echo date ('j', $ day-> unixdate);?> </ span>
</ a>
<php}?>


And the layout of the calendar looks like this!



know what can be?

I leave you the modified code!
CODE

Thank you.
The administrator has disabled public write access.

Re: Calendar - disable empty days from linking 12 years 1 month ago #16631

Haris or Aborlix, I am struggling with this, if either of you is online, I would appreciate some guidance.
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!