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

i need help about the comming event block

  • 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/4/7 20:03
michael  企霹始   Posts: 6
Hi !
On my site i want to add the location in the coming event block that is diplayed on center center block !! but it seem that it does not work.
because when i place the variable $location instead of $summary pical displayed nothing .
i thing the "location" variable is not initialized in the block .
how can i do that !!

Thanks for this great module !!

Michael



Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2004/4/9 5:56
GIJOE  黎扦烦菱   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
Previous post - Next post | Parent - No child | Posted on 2004/4/11 3:47
michael  企霹始   Posts: 6
Thanks !!

this hack works great .

Michael



Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/5/12 12:58
linuxway  企霹始   Posts: 7
Thank you very much for this hack (for the piCal-0.60 beta version). Very nice!!!

It is possible now to display the date, the location and of course the title of the event.

I just switched from AgendaX to piCal 0.60 beta, on my production site.

You also implemented the management of the categories, a great feature that makes your module the most powerful calendar module for XOOPS.

Good job!!!

Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!