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
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.
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!!!