PEAK XOOPS - help customizing pical.php? in englishin japanese

help customizing pical.php?

  • 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/8/17 5:25
mike1234  企霹始   Posts: 3
Hi,
I am trying out piCal-0.60.

I would like to change the following, but am not a strong enough programmer:

-- Change _PICAL_MB_ALLDAY_EVENT so that when checked, _PICAL_MB_LONG_EVENT is true, and when _PICAL_MB_ALLDAY_EVENT is unchecked _PICAL_MB_LONG_EVENT is false

--- remove the _PICAL_MB_LONG_EVENT checkbox. It will be true only when _PICAL_MB_ALLDAY_EVEN is checked.

--- remove the _PICAL_MB_LONG_SPECIALDAY checkbox & caption.

...great program
Thx!


Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/8/21 13:55
GIJOE  黎扦烦菱   Posts: 4110
hi mike1234.

It's an easy hack.

line 1939 of piCal.php
	<tr>
		<td class='head'>"._PICAL_TH_ALLDAYOPTIONS."</td>
		<td class='even'>
			<fieldset>
				<legend class='blockTitle'><input type='checkbox' name='allday' value='1' $allday_checkbox onClick='document.MainForm.event_tz.disabled=document.MainForm.StartHour.disabled=document.MainForm.StartMin.disabled=document.MainForm.EndHour.disabled=document.MainForm.EndMin.disabled=this.checked'>"._PICAL_MB_ALLDAY_EVENT."</legend>
				<!-- <input type='checkbox' name='allday_bits[]' value='1' {$allday_bit1}>"._PICAL_MB_LONG_EVENT."    <input type='checkbox' name='allday_bits[]' value='2' {$allday_bit2}>"._PICAL_MB_LONG_SPECIALDAY."    <!-- <input type='checkbox' name='allday_bits[]' value='3' {$allday_bit3}>rsv3    <input type='checkbox' name='allday_bits[]' value='4' {$allday_bit4}>rsv4 -->
			</fieldset>
		</td>
	</tr>


line 2024 of piCal.php
	// allday 属性のビットを立てる
	$allday = 1 3 ;
	if( isset( $_POST[ 'allday_bits' ] ) ) {
		$bits = $_POST[ 'allday_bits' ] ;
		if( is_array( $bits ) ) foreach( $bits as $bit ) {
			if( $bit > 0 && $bit < 8 ) {
				$allday += pow( 2 , intval( $bit ) ) ;
			}
		}
	}
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/8/22 8:56
mike1234  企霹始   Posts: 3
hey, thanks GIJOE!

yes, that wasn't too bad.

MIKE1234
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!