SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: RikuAnsem on October 06, 2012, 10:59:04 AM

Title: Calendar Module not work good
Post by: RikuAnsem on October 06, 2012, 10:59:04 AM
Hi!

I've recent installed again simple portal and I needed show holidays under Calendar Menu.
The problem is that the events are show correctly, but holidays not (only show holidays of today).


You can 'solve' this problem if you edit "clase/Sources/PortalBlocks.php" and search '$calendar_array['todayHolidays'] = current(sp_loadCalendarData('getHolidays', $today_date));'

You only need replace for this:
$calendar_array['todayHolidays'] = current(sp_loadCalendarData('getHolidays', $today_date,$event_future_date));


Sorry for my bad english.

I hope i can help your.

Regards.


EDIT:
If you DON'T show the events, maybe need modify this code (in few lines above):

Quote
if ($show_event)
   {
      if (!empty($event_future))
         $event_future_date = date("Y-m-d", ($now + $event_future * 86400));
      else
         $event_future_date = $today_date;


For this:
Quote
      if (!empty($event_future))
         $event_future_date = date("Y-m-d", ($now + $event_future * 86400));
      else
         $event_future_date = $today_date;
if ($show_event)
   {
SimplePortal 2.3.8 © 2008-2024, SimplePortal