Posted on: 03/25/05 09:06am
By: Anonymous (Tom Hanks)
hi,
how can i change the date format in the Events Block? Also i could not find the block's template. I looked at config.php and modified to my needs. but event block displays date format different from config.php.
thanks
Events Block Template
Posted on: 03/25/05 09:17am
By: Dirk
The Upcoming Events block uses $_CONF['dateonly'].
The block will the use the default blockheader / blockfooter template files, unless you override them in the theme's functions.php (set $_BLOCK_TEMPLATE['events_block'] to the new files - see the functions.php of the Professional theme).
bye, Dirk
Events Block Template
Posted on: 03/25/05 09:53am
By: Anonymous (Tom Hanks)
Thanks but i is not like that. it displays such:
Friday 25-Fri Mar 25 00:00:00 2005
from where i should look to correct this?
Events Block Template
Posted on: 03/25/05 10:09am
By: Dirk
Okay, misunderstanding there: The name of the day is always there (it's hard-coded). $_CONF['dateonly'] is only used for what comes after the name of the day.
The function is COM_printUpcomingEvents() in lib-common.php
bye, Dirk
Events Block Template
Posted on: 03/25/05 10:36am
By: Anonymous (Tom Hanks)
Dirk,
can you give me instructions for how to change it "month.day.year hour:minute" format? also which file to look at for hard-coded day name?
Lots of Thanks
Events Block Template
Posted on: 03/25/05 10:57am
By: trinity
i think that is tied to "local settings" in config.php
Events Block Template
Posted on: 03/25/05 11:11am
By: Dirk
[QUOTE BY= Tom Hanks] can you give me instructions for how to change it "month.day.year hour:minute" format?[/QUOTE]
That would take longer to explain than to actually do
Sounds like a good opportunity to learn some PHP ...
bye, Dirk
Events Block Template
Posted on: 03/25/05 12:45pm
By: Anonymous (Tom Hanks)
Dirk,
i just want to change the format of date display. i dont want to write anything from scratch. just changing format. as a lot of options give in config.php and this one is forgotten. I really need your help.