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
 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
 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?
 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
 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
 Quote

Status: offline

trinity

Forum User
Regular Poster
Registered: 01/30/05
Posts: 80
i think that is tied to "local settings" in config.php
glFusion - Technology Fused with Style - www.gllabs.org
 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 Rolling Eyes

Sounds like a good opportunity to learn some PHP ...

bye, Dirk
 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.
 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