PEAK XOOPS - list & detail view format editing? in englishin japanese

list & detail view format editing?

  • 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/9/23 22:42
joeblow  办霹始   Posts: 19
if i wanted to change the appearance and fields displayed in the "list view" and "event detail" view, where do i do this? i thought it was the files inside the modules/pical/template folder, but after i edited them it didn't change anything. is this correct?

can anyone help here?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/9/25 2:54
joeblow  办霹始   Posts: 19
is there documentation somewhere that will anser my questions? is that why no one is responding?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/9/27 23:53
joeblow  办霹始   Posts: 19
i find it strange that editing "pical_event_list.html" doesn't change the layout. i'm at a loss here. can anyone help?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/9/30 2:01
joeblow  办霹始   Posts: 19
i'll just keep answering my own questions here i gues (in hopes of helping others).

ok, after cloning the templates i was able to edit the list view. but i still cannot figure out how to edit the event details template. i just want to remove a few fields and change the layout. the "pical_event_detail.html" template doesn't seem to have what i need.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/10/2 18:37
GIJOE  黎扦烦菱   Posts: 4110
piCal is the oldest module as my work about xoops.
Thus, many features which standard modules have are not implemented yet.
Template system of xoops is one of them.

You need hack piCal.php by yourself.
The place should be hacked is near line 640 of piCal.php
	$ret = "
<h2>"._PICAL_MB_TITLE_EVENTINFO." <small>-"._PICAL_MB_SUBTITLE_EVENTDETAIL."-</small></h2>
	<table border='0' cellpadding='0' cellspacing='2'>
	<tr>
		<td class='head'>"._PICAL_TH_SUMMARY."</td>
		<td class='even'>$summary</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_STARTDATETIME."</td>
		<td class='even'>$start_datetime_str</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_ENDDATETIME."</td>
		<td class='even'>$end_datetime_str</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_LOCATION."</td>
		<td class='even'>$location</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_CONTACT."</td>
		<td class='even'>$contact</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_DESCRIPTION."</td>
		<td class='even'>$description</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_CATEGORIES."</td>
		<td class='even'>$categories</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_SUBMITTER."</td>
		<td class='even'>$submitter_info</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_CLASS."</td>
		<td class='even'>$class_status</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_RRULE."</td>
		<td class='even'>$rrule</td>
	</tr>
	".($this->isadmin?"<tr>
		<td class='head'>"._PICAL_TH_ADMISSIONSTATUS."</td>
		<td class='even'>$admission_status</td>
	</tr>":"")."
	<tr>
		<td class='head'>"._PICAL_TH_LASTMODIFIED."</td>
		<td class='even'>$last_modified</td>
	</tr>
	<tr>
		<td align='right'>
			$edit_button
		</td>
		<td align='left'>
			$ics_output_button
		</td>
	</tr>
As it is simple code, you can hack easily.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/10/3 10:55
joeblow  办霹始   Posts: 19
great! thanks. would i also find the form for submitting an even in there? i'd like to remove some of the features on the form to simplify it for my users.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/10/3 18:16
GIJOE  黎扦烦菱   Posts: 4110
It's the same as the detail view.
The function's name should be modified is 'get_schedule_edit_html'.
near line 915 of piCal.php
	$ret = "
<h2>"._PICAL_MB_TITLE_EVENTINFO." <small>-"._PICAL_MB_SUBTITLE_EVENTEDIT."-</small></h2>
<form action='$PHP_SELF' method='post' name='MainForm'>
	<input type='hidden' name='caldate' value='$this->caldate'>
	<input type='hidden' name='event_id' value='$event_id'>
	<input type='hidden' name='last_smode' value='$smode'>
	<input type='hidden' name='last_caldate' value='$this->caldate'>
	<input type='hidden' name='poster_tz' value='$poster_tz'>
	<table border='0' cellpadding='0' cellspacing='2'>
	<tr>
		<td class='head'>"._PICAL_TH_SUMMARY."</td>
		<td class='even'><input type='text' name='summary' size='60' maxlength='250' value='$summary'></td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_STARTDATETIME."</td>
		<td class='even'>
			$textbox_start_date   
			{$select_start_hour}"._PICAL_MB_HOUR_SUF." {$select_start_min}"._PICAL_MB_MINUTE_SUF."     <select name='event_tz'>$tz_options</select>
		</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_ENDDATETIME."</td>
		<td class='even'>
			$textbox_end_date   
			{$select_end_hour}"._PICAL_MB_HOUR_SUF." {$select_end_min}"._PICAL_MB_MINUTE_SUF."
		</td>
	</tr>
	<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>
	<tr>
		<td class='head'>"._PICAL_TH_LOCATION."</td>
		<td class='even'><input type='text' name='location' size='40' maxlength='250' value='$location'></td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_CONTACT."</td>
		<td class='even'><input type='text' name='contact' size='50' maxlength='250' value='$contact'></td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_DESCRIPTION."</td>
		<td class='even'>$description_textarea</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_CATEGORIES."</td>
		<td class='even'>$category_checkboxes</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_CLASS."</td>
		<td class='even'><input type='radio' name='class' value='PUBLIC' $class_public onClick='document.MainForm.groupid.disabled=true'>"._PICAL_MB_PUBLIC."      <input type='radio' name='class' value='PRIVATE' $class_private onClick='document.MainForm.groupid.disabled=false'>"._PICAL_MB_PRIVATE.sprintf( _PICAL_MB_PRIVATETARGET , $select_private )."</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_RRULE."</td>
		<td class='even'>" . $this->rrule_to_form( $rrule , $end_date ) . "</td>
	</tr>
	<tr>
		<td class='head'>"._PICAL_TH_ADMISSIONSTATUS."</td>
		<td class='even'>$admission_status</td>
	</tr>\n" ;
It looks like plain HTML, doesn't it?

Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!