this is a strange request. is there a way to remove the end date/time feature from events? i'm trying to simplify a form for users to post events and this is honestly an unneeded feature for what we're doing. i know how to remove it from the form, but is there a global way to disable it?
hi joeblow.
I see what you want.
But you have to do many hacks to do that.
I'll implement such a feature near future.
Using smarty for displaying each pages becomes MUST for catching up minahito's special modules -Anywhere Series-.
is there a way to have the end date and time always default to whatever the start date and time is? that way i can disable it from the forms and not have to make a global change.
thanks for the input.
Thus, you can hack piCal.php like this:
- search 'function update_schedule' (near line 2008)
- append a few lines like this
function update_schedule( $set_sql_append = '' , $whr_sql_append = '' , $notify_callback = null )
{
$_POST['EndDate'] = $_POST['StartDate'] ;
$_POST['EndHour'] = $_POST['StartHour'] ;
$_POST['EndMin'] = $_POST['StartMin'] ;
// debugモードで Location が効かなくなるのを防ぐ
// error_reporting( 0 ) ;
// $_SERVER 変数の取得
$PHP_SELF = $_SERVER[ 'PHP_SELF' ] ;
This hack always makes the datetime of end same as start.