User Login
Register
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Ads
Nevis Hotel
Credit Card Consolidation
Credit Counseling
Nevis Hotel

Browsing this Thread:   2 Anonymous Users






Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2008/4/13 7:35
Group:
Registered Users
Posts: 3
Level : 1
HP : 0 / 2
MP : 1 / 19
EXP : 10
Offline
In the Upcoming Event block, recurring events that are coming up show up as they should, but with the wrong date.

The date shows the first date of the recurring event, and not the next one coming up. I believe the problem is with the assignment of $event.formated_event_start, which should probably reflect the next date of the recurring event and not the first one.

Otherwise, excellent work as usual!

Posted on: 2008/7/10 4:33
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2009/1/11 13:24
Group:
Registered Users
Posts: 1
Level : 1
HP : 0 / 0
MP : 0 / 0
EXP : 0
Offline
Same problem here, with newly installed Xoops 2.3.2b and eXtCal 2.2.2.

Besides that this module rocks.
Thanks

Posted on: 2009/1/11 13:55
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2009/1/15 10:59
Group:
Registered Users
Posts: 4
Level : 1
HP : 0 / 5
MP : 1 / 26
EXP : 21
Offline
Same here, and one other problem along the same lines. Recurring events that have already occurred once don't display in the day by day view (such as when you click a date on the minical).
Other than that, amazing module. Keep up the good work.
John

Posted on: 2009/1/28 4:03
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2006/9/18 17:54
Group:
Registered Users
Posts: 17
Level : 2
HP : 0 / 46
MP : 5 / 540
EXP : 86
Offline
Any idea when this bug will be fixed. The coming event block is a really cool block that I always use.

Thanks and keep up this rockin module !!!


Posted on: 2009/2/26 5:45
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2006/9/18 17:54
Group:
Registered Users
Posts: 17
Level : 2
HP : 0 / 46
MP : 5 / 540
EXP : 86
Offline
Hello,

I patched the code. Replace bExtcalUpcomingShow in blocks/extcal_blocks.php with the following:

function bExtcalUpcomingShow($options) {

include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php';

// Retriving module config
$extcalConfig = ExtcalConfig::getHandler();
$xoopsModuleConfig = $extcalConfig->getModuleConfig();

$eventHandler = xoops_getmodulehandler('event', 'extcal');

$nbEvent = $options[0];
$titleLenght = $options[1];
array_shift($options);
array_shift($options);

// Checking if no cat is selected
if(count($options) == 1 && $options[0] == 0) {
$options = 0;
}

// Calculating timestamp for the begin and the end of the month
// Retriving month and year value according to block options
$month = date('n');
$year = date('Y');


$startNow = time();
// mktime(0,0,0,$month,1,$year);
//echo date('m/d/y',$startNow);
$endWeekOut = time() + (7 * 24 * 60 * 60);


$events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options));

//find and reformat recur events
$i=0;

foreach($events as $event) {


if($event['event_isrecur']) {
$recurEvents = $eventHandler->getRecurEventToDisplay($event, $startNow, $endWeekOut);
$events[$i]=$recurEvents[0];
}
$i++;
}



$eventHandler->serverTimeToUserTimes($events);
$eventHandler->formatEventsDate($events, $xoopsModuleConfig['event_date_month']);

return $events;
}

Posted on: 2009/2/28 17:21
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2009/1/15 10:59
Group:
Registered Users
Posts: 4
Level : 1
HP : 0 / 5
MP : 1 / 26
EXP : 21
Offline
Thanks a lot! I tried the code and it works perfectly... except for one small problem. Under the upcoming events, the date 12/31/1969 shows up as an upcoming event (with no link to an event of course). I guess it has something to do with the timestamp since it is the day before it. Any ideas? Anyways, thanks for the effort and posting the code on the forum! I still plan to use the upcoming events on my site because that's not really much of an issue. Thanks!
John

Posted on: 2009/3/6 9:49
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2006/11/10 12:29
Group:
Registered Users
Posts: 2
Level : 1
HP : 0 / 0
MP : 0 / 7
EXP : 2
Offline
Thanks,

I tried using this code and it works for weekly recurring events... But when i try using recurrance monthly it doesn't display the next event but only 1-1-1970 without a link...

Anyone knows how to fix this?

Posted on: 2009/4/10 3:38
Top


Re: Upcoming Event block = Recurring Display Incorrect
Just popping in
Joined:
2006/11/10 12:29
Group:
Registered Users
Posts: 2
Level : 1
HP : 0 / 0
MP : 0 / 7
EXP : 2
Offline
Anyone????

Posted on: 2/8 22:35
Top





You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]


Minical
September 2010
Add event Submit event
M T W T F S S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Latest versions
eXtCal 2.2.2
(released 2008/10/09)
eXtGallery 1.0.8
(released 2009/21/06)

Download here
Who's Online
11 user(s) are online (7 user(s) are browsing Forum)

Members: 0
Guests: 11

more...