My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow Extensionsarrow JCal Pro and JCal Clientarrow JCal Pro 1.5.x for Joomla! 1.0.xarrow SOLVED: Latest Events Module correction
Pages: [1]
Print
Author Topic: SOLVED: Latest Events Module correction  (Read 938 times)
ironman67
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« on: February 27, 2007, 11:37:50 PM »

I am posting this to make you aware of a correction I made to mod_jcalpro_latest.php on my end to fix a recurring event problem. In my case I had an event that started on Feb 27, repeat every 1 day, end after 4 occurrences. The latest events module was showing Feb 28-mar 3 but it should be feb 28-mar 2.

Here is the correction I made:
Line 364
if ( $whichtype == 'upcoming'  &&  $nextdatestamp < $EXTCAL_CONFIG['now_stamp'] )
{
  $add_this_event = false;
}
changed to:
{
  $number_of_recurrences_added++; /* increment past skipped event */
  $add_this_event = false;
}
Hopefully this wasn't just a work around to the problem but an actual fix. You guys would know best.
« Last Edit: March 04, 2007, 05:36:05 PM by van » Logged
ChichipioWilson
Jr. Member
**

Karma: +0/-0
Posts: 66


View Profile
« Reply #1 on: March 02, 2007, 12:09:41 PM »

Great find. After reading your post we replicated it and indeed there's something wrong.

The thing is, it's not a problem with the latest events module but with the component itself. If you look closely, you can see the error in action when viewing the event details.

The correction you made, efectively hides the error, preventing it from appearing in the latest events module but unfortunately it's not a solution to the real problem.

For the time being, keep using it. As soon as we have news on this, we'll post it here.
Logged
V-man
Administrator
Hero Member
*****

Karma: +8/-1
Posts: 1910


Ignorance is curable, stupid is forever.


View Profile
« Reply #2 on: March 03, 2007, 05:44:01 PM »

The issue has been addressed in the forthcoming Release Candidate v1.5.2.
« Last Edit: March 04, 2007, 12:15:46 AM by V-man » Logged

*** Please read this post before posting in the forum. ***

Support questions via PM will be ignored. Please use the forum for all support-related enquiries.
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)