1
snow77
Date smarty configuration
  • 2008/7/8 10:15

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


If for example in the comments template, the date information is retrieved with the following smarty:

<{$comment.date_posted}>

and is displayed as

year/month/date

Is there a unique code to identify each of the date values?

Are there different options to display the date?

Which of the core files create the date?
www.polymorphee.com
www.xoopsdesign.com

2
iHackCode
Re: Date smarty configuration

Quote:
snow77 wrote:

Which of the core files create the date?

include/comment_view.php
calls...
class/commentrenderer.php
which uses the formatTimestamp function with the 'm' (medium date string)

formatTimestamp is found in include/functions.php
Quote:
snow77 wrote:

Are there different options to display the date?

you could change the datestring in language/english/global.php ,but it will also change the other dates that are using that format.

or change the class/commentrenderer.php file to use a different date string.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

3
snow77
Re: Date smarty configuration
  • 2008/7/8 21:21

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Thanks so much Bandit-X
www.polymorphee.com
www.xoopsdesign.com

Login

Who's Online

107 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 107


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits