Notifications
Clear all

wpForo 1.x.x Date Formating

4 Posts
2 Users
1 Likes
1,493 Views
ripper
Posts: 3
Topic starter
(@ripper)
New Member
Joined: 4 years ago

Was wondering if there is a way to change the default view of posted date 27/02/2019 11:02 pm to the non traditional view of 27-FEB-2019 11:02 PM?

3 Replies
ripper
Posts: 3
Topic starter
(@ripper)
New Member
Joined: 4 years ago

Found it, well at least there isn't an actual setting, this should be an option to add maybe.  However I edited my post.php page, of course after I enabled it to be used by my theme using the Theme Customization instructions by copying the wpforo theme files to my theme directory.  See instructions here: https://wpforo.com/docs/root/forum-themes/theme-customization/

Reply
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi @ripper,

There is another way to do it. Instruction here:

  • Navigate to Dashboard > Forums > Settings > Features admin page, enable the "WordPress Date/Time Format" option
  • Navigate to Dashboard > Settings > General admin page, choose the Custom Date Format option and set it d-M- Y
  • Use the following CSS code to make the characters of the month uppercase
    #wpforo #wpforo-wrap .wpf-right .wpforo-post-content-top > span {
    text-transform: uppercase;
    }

Please don't forget to delete all caches and press CTRL+F5 before checking. 

 

Reply
1 Reply
ripper
(@ripper)
Joined: 4 years ago

New Member
Posts: 3

The Date Time that I was referring to was the one listed on the posts page from wpForo, which was hard coded in the theme page itself (post.php):

wpforo_date($post['created'], 'd/m/Y g:i a'); 
wpforo_date($post['created'], 'd-M-Y g:i a');

I changed the top line to the bottom line.

Reply
Share: