Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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!

Who's Online

216 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits