| Re: piCal Coming Events block customize? |
| by diogenese on 2005/4/25 7:38:02 For anyone still looking for an answer, try this ... If you want to change '26th Apr' to 'Apr 26th', edit piCal/language/english/pical_constants.php, and change this: define('_PICAL_FMT_MD','%2$s %1$s') ; to this: define('_PICAL_FMT_MD','%1$s %2$s') ; If you want to change '26th Apr' to 'Apr 26th 2005' edit piCal/class/piCal_xoops.php, and change this code in function get_block_array_coming_event (line 398): $start_desc = sprintf( _PICAL_FMT_MD , $this->month_middle_names[ date( 'n' , $start_for_date ) ] , $this->date_long_names[ date( 'j' , $start_for_date ) ] ) ; to this: $start_desc = sprintf( _PICAL_FMT_YMD , $this->year, $this->date_long_names[ date( 'j' , $start_for_date ) ], $this->month_middle_names[ date( 'n' , $start_for_date ) ] ) ; Hope someone finds this useful. Ed |
| Re: piCal Coming Events block customize? |
| by evylrat on 2005/1/31 22:52:07 I'd be interested in knowing how to do this too. |
| piCal Coming Events block customize? |
| by sighedwaise on 2005/1/5 21:24:09 I am trying to change the date format in the Coming Events block for piCal. It reads the date as (for example) "1st July", and I would like it to read as "July 1, 2004". I cannot find how to do this after much searching and tinkering on my own. Any help would be greatly appreciated! |