Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 07:39 am EST
Geeklog Forums
Events Block Template
Tom Hanks
Anonymous
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
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
12
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
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
15
9
Quote
Tom Hanks
Anonymous
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?
Friday 25-Fri Mar 25 00:00:00 2005
from where i should look to correct this?
14
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
The function is COM_printUpcomingEvents() in lib-common.php
bye, Dirk
11
12
Quote
Tom Hanks
Anonymous
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
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
13
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Tom Hanks: can you give me instructions for how to change it "month.day.year hour:minute" format?
That would take longer to explain than to actually do
Sounds like a good opportunity to learn some PHP ...
bye, Dirk
12
15
Quote
Tom Hanks
Anonymous
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.
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.
12
12
Quote
All times are EST. The time is now 07:39 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content