PEAK XOOPS - disabling "end date" in englishin japanese

disabling "end date"

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/10/8 10:30
joeblow  Private 1st Class   Posts: 19
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?
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/10/8 19:08
GIJOE  Gunnery Sergeant   Posts: 4110
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-.
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/10/8 22:48
joeblow  Private 1st Class   Posts: 19
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/10/9 7:59
GIJOE  Gunnery Sergeant   Posts: 4110
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.
Votes:6 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!