Skip to:
Content
Pages
Categories
Search
Top
Bottom

Time Format

  • @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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @ardentfrost

    Member

    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.

    @ardentfrost

    Member

    BTW, that displays something like this:

    01/05/07 at 10:21:21

    @null

    Member

    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

    @mdawaffe

    Member

    In bbPress 0.8, you just pass the function the date format you want:

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar