My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow JCal Pro 1.5.xarrow 1.5.x General Discussionarrow SOLVED: A couple of wee bugs
Pages: [1] 2
Print
Author Topic: SOLVED: A couple of wee bugs  (Read 2111 times)
RakiuraSkies
Newbie
*

Karma: +0/-0
Posts: 26


View Profile Email
« on: February 24, 2007, 04:29:04 AM »

OK, when I edit an existing calendar entry, the duration field always  reverts to 1 days duration, regardless of the time-span set in the original entry.  If you ain't careful, it's easy to miss and mess up your calendar entry.

The other, ..OK, it looks like you've fixed it Smiley  so just the one for now then!

It's bloody great otherwise guys!  Keep up the good work!
« Last Edit: February 24, 2007, 08:45:29 PM by V-man » Logged
van
Sr. Member
****

Karma: +0/-0
Posts: 442


View Profile
« Reply #1 on: February 24, 2007, 02:24:42 PM »

There was an issue with event durations not being set correctly when editing an event. Could you please make sure you are using the latest component, then let us know if this is still an issue or not?
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #2 on: February 24, 2007, 04:42:08 PM »

I am using the latest downloads from this site, and am having a problem setting event durations. When I set one, it does not show up on the page for the event. The duration shows as blank, and when I return to the backend event page, days show as -4, and things like that.
Logged
van
Sr. Member
****

Karma: +0/-0
Posts: 442


View Profile
« Reply #3 on: February 24, 2007, 04:57:34 PM »

This was a bug in the Administrator edit event form that was identified and resolved. I just checked and the changes are in com_jcalpro_1.5.1.zip, but not in earlier versions.

If you want to verify your component, look for the following:

Line 385 of "administrator/components/com_jcalpro/includes/events.php" should read:
Code:
$total_hours = $start_time_hour + $_POST['end_hours'];

If your versions does not have this, you should download the latest component.

If it does, and you are still experiencing these problems, please let us know!
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #4 on: February 24, 2007, 05:11:09 PM »

Okay, I thought I had the latest, but line 385 is different. I'll post back after the change to the newest version if I can find it on the site... Roll Eyes
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #5 on: February 24, 2007, 05:32:16 PM »

Hi, I am attaching two screenshots of the new installation. While the hour duration  works, the minute keeps reverting to zero with I put in 30 minutes.

Am I missing something obvious, or is there still an error in the code? Thanks for troubleshooting!
Logged
van
Sr. Member
****

Karma: +0/-0
Posts: 442


View Profile
« Reply #6 on: February 24, 2007, 06:26:20 PM »

You are right ... something is still wrong with this. In my case, I can change the minutes in the event start time to 30 (or anything else), and it sticks. But, if I change the duration to 45 (for example), when I come back in, it is showing 15. So, a half-hour is being tossed.

The database records are correct, and the start and end times in the event list show correctly, but they are displayed incorrectly in the Administrator edit form, and on the event display on the main site. So, I believe this is in one of the common functions used to calculate durations for display.

I will get this fixed.
Logged
van
Sr. Member
****

Karma: +0/-0
Posts: 442


View Profile
« Reply #7 on: February 24, 2007, 07:26:48 PM »

I found the problem. The solution is to edit the following:

Line 386 of "administrator/components/com_jcalpro/includes/events.php":

Code:
$total_minutes = $_POST['minutes'] + $_POST['end_minutes'];

Hoping you will confirm that this fixes the problem.
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #8 on: February 24, 2007, 07:54:18 PM »

Okay, I made the substitution, however, when I returned to the events list, I am now not able to click on a link to the detailed page for configuring the event.

This is what it looks like (and I'll double check to make sure I inserted the language correctly.)
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #9 on: February 24, 2007, 08:09:16 PM »

I got a fresh copy of events.php and changed the code very carefully to the exact language you provided. I still come up with an event that is not clickable in the backend admin panel.

What now?
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #10 on: February 24, 2007, 08:15:42 PM »

My apologies! I checked the box so I could edit the event, changed the minutes to 30, saved the event, and now have an event that shows up on the front as lasting for 2 hours and 30 minutes. After that edit, I am now able to simply click on the event title in the admin backend to edit the event.

That you so much for providing the corrected code!
Logged
RakiuraSkies
Newbie
*

Karma: +0/-0
Posts: 26


View Profile Email
« Reply #11 on: February 25, 2007, 01:49:35 AM »

Thanks Van, that seems to have done the trick!
Logged
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #12 on: February 25, 2007, 08:53:56 AM »

Van, thank you so much for great support of this fantastic calendar solution. I am using it in conjunction with the VirtueMart component after changing the VirtueMart language file to reflect "registrations" rather than "products."

The two components working together have created an excellent event registration vehicle for the non-profit I help.

Brilliant work! (And I particularly appreciate your dogged troubleshooting yesterday!)
Logged
V-man
Administrator
Hero Member
*****

Karma: +4/-0
Posts: 1741


Ignorance is curable, stupid is forever.


View Profile
« Reply #13 on: February 25, 2007, 09:02:02 AM »

I would love to see this. Can you please post the url?
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.
gayle28607
Newbie
*

Karma: +0/-0
Posts: 8


View Profile
« Reply #14 on: February 25, 2007, 09:38:33 AM »

Sure Van, here you go. (I'm still playing with the flypage of VirtueMart, so you may see some fiddling going on. You'll also see that the JCal Pro component doesn't connect to the VirtueMart component, and vice versa. Instead, I'm running them kind of in parallel, with VirtueMart there to accept reservations if the organization needs that capacity.

http://partnershipforwataugasfuture.org/

Source of first module on the left below the random image: VirtueMart
Second: ditto
third and so on: JCal Pro

I'd love any input if you see something less than stellar on the site!
Logged
Pages: [1] 2
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)