bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Time Format

(5 posts)
  • Started 1 year ago by seriouslydustin
  • Latest reply from mdawaffe
  • This topic is not a support question

Tags:

  1. seriouslydustin
    Member

    I've been scouring the whole code for bbPress and still couldn't figure out how to set up the format just how I want it for Date and Time (for the post).

    Can anyone tell me where to go for such edits?

    Much thanks.

    Posted 1 year ago #
  2. Here's how I do it in my private messages plugin

    strftime("%m/%d/%y at %r",strtotime($timevar)+($bb->gmt_offset * 60 * 60))

    Where $timevar is the time that I passed to the function.

    Posted 1 year ago #
  3. BTW, that displays something like this:

    01/05/07 at 10:21:21

    Posted 1 year ago #
  4. Ands how does one change the time from
    2007-01-16 18:23:58
    to
    January 16, 2007

    So no time, only date. I have added <?php topic_time(); ?> to my frontpage and it shows: 2007-01-16 18:23:58, but on the fronpage (only there) I want to show it like: January 16, 2007

    Thx

    Posted 1 year ago #
  5. In bbPress 0.8, you just pass the function the date format you want:

    http://bbpress.org/blog/2007/02/bbpress-time-functions-no-longer-insane/#63-templates

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.