PEAK XOOPS - Re: i need help about the comming event block in englishin japanese

Re: i need help about the comming event block

List posts in the topic

normal Re: i need help about the comming event block

msg# 1.1
depth:
1
Previous post - Next post | Parent - Children.1 .2 | Posted on 2004/4/9 5:56
GIJOE  Gunnery Sergeant   Posts: 4110
hi michael.

Do you want to display location instead of summary ?

ok.
It's not gentle code for power users of XOOPS template system.

You can hack like this:

piCal_xoops.php
line 320 or near
	$yrs = mysql_query( "SELECT start,end,summary,id,allday,location,contact,description FROM $this->table WHERE admission>0 AND ($whr_term) AND ($whr_categories) AND ($whr_class) ORDER BY start LIMIT $num" , $this->conn ) ;

line 391 or near
		$block['events'][] = array( 
			'summary' => $this->text_sanitizer_for_show( $event->summary ) ,
			'location' => $this->text_sanitizer_for_show( $event->location ) ,
			'contact' => $this->text_sanitizer_for_show( $event->contact ) ,
			'description' => $this->textarea_sanitizer_for_show( $event->description ) ,
			'allday' => $event->allday ,
			'start' => $start_for_time ,
			'start_desc' => $start_desc ,
			'end' => $end_for_time ,
			'end_desc' => $end_desc ,
			'id' => $event->id ,
			'dot_gif' => $dot ,
			'distance' => $distance
		) ;

With this hack, you can use $event.location, $event.contact, $event.description in your template of "pical_coming_schedule.html".

This modification will be included next release.
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!