PEAK XOOPS - Editing PiCal event display... in englishin japanese

Editing PiCal event display...

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/20 2:59
blackletter  ÆóÅùʼ   Posts: 6
Hi,

I am investigating the possiblity of tweaking my PiCal settings.
At the moment in the 'Submit' event page you have the option to submit a beginning date and an finishing date. For example, if the event starts on 04/04/2006 and ends on the 09/04/2006. The event is then displayed on every day between and including these dates on the monthly view. Is it possible that it could only display on the first date (i.e. 04/04/2006) on the monthly view?

I am a newbie to this stuff and I apologise if I have not explained the problem clearly.
Any help would be most appreciated.

Cheers
Albert
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/21 6:04
GIJOE  ÀèǤ·³Áâ   Posts: 4110
piCal does not have the feature you want, sorry.
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/22 0:41
blackletter  ÆóÅùʼ   Posts: 6
:( thanks anyways....

do you know is it possible to edit the submit event form to remove the 'finishing date' section and the 'beginning date' value would be entered as the 'finishing date'?

would this be very complicated?

cheers
a.
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/22 5:01
GIJOE  ÀèǤ·³Áâ   Posts: 4110
I had written such code, 1 or 2 years ago.
But I don't remember where I wrote in.

At least, it is not so complicated.
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/24 2:08
blackletter  ÆóÅùʼ   Posts: 6
do you think there would different file need to be edited in order for this to work or just the main submit page?
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/24 5:56
GIJOE  ÀèǤ·³Áâ   Posts: 4110
just edit class/piCal.php
Votes:2 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/19 0:41
blackletter  ÆóÅùʼ   Posts: 6
i have attempted to do this, but the php file is just so complicated....
I attempted to make the 'Finishing DateTime' output as the 'BeginningDateTime' and planned to just comment out the html form part of 'finishingDateTime' but all hell broke lose and it seemed to send an end date equal to 'today'. how could I stop it from sending or requesting any 'BeginningDateTime' or 'FinishingDateTime'?


I changed this part:

********************************************
if( isset( $event->start_date ) ) {
$start_date_str = $event->start_date ; // GIJ TODO
} else {
$start_date_str = strftime( _PICAL_STRFFMT_DATE , $event->start + $tzoffset ) ;
}
if( isset( $event->end_date ) ) {
$end_date_str = $event->end_date ; // GIJ TODO
} else {
$end_date_str = strftime( _PICAL_STRFFMT_DATE , $event->end + $tzoffset ) ;
}

$start_datetime_str = "$start_date_str   $start_time_str" ;
$end_datetime_str = "$end_date_str   $end_time_str" ;

**********************************

to this:


**********************************
if( isset( $event->start_date ) ) {
$start_date_str = $event->start_date ; // GIJ TODO
} else {
$start_date_str = strftime( _PICAL_STRFFMT_DATE , $event->start + $tzoffset ) ;
}
if( isset( $event->end_date ) ) {
$end_date_str = $event->start_date ; // GIJ TODO
} else {
$end_date_str = strftime( _PICAL_STRFFMT_DATE , $event->start + $tzoffset ) ;
}

$start_datetime_str = "$start_date_str   $start_time_str" ;
$end_datetime_str = "$end_date_str   $end_time_str" ;
Votes:2 Average:10.00

question Re: Editing PiCal event display...

msg# 1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/20 16:56
GIJOE  ÀèǤ·³Áâ   Posts: 4110
I can't see what you want.
Anyway, do hack by yourself.
Votes:2 Average:10.00

question Re: Editing PiCal event display...

msg# 1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/24 0:22
blackletter  ÆóÅùʼ   Posts: 6
still struggling with the editing of class/piCal.php...

i don't want the user to be able to change the end date time, i want the end date time to be the same as the start date time...

while this is less functional it suits my users needs, any more help available?

cheers
albert
Votes:2 Average:10.00

question Re: Editing PiCal event display...

msg# 1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/30 4:25
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Just generate $_POST['EndDate'] from $_POST['StartDate']
Votes:8 Average:10.00

happy Re: Editing PiCal event display...

msg# 1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/10/3 0:33
blackletter  ÆóÅùʼ   Posts: 6
a million thank yous! that did exactly what i wanted! thank you thank you thank you :)

me=happy
Votes:2 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!