TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 04:53:38 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 304
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 306
  • Total: 306

Looking for assistance to Get Calendar Events to list in a block

Started by Bixby, January 23, 2023, 01:30:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

Quote from: @rjen on January 23, 2023, 12:49:12 PM
Recent topics shows the topics most recently posted to, not most recently created...

Why do you think it is showing incorrect?

And indeed, it links to the latest post added to that topic
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Bixby

Quote from: @rjen on January 23, 2023, 05:35:53 PM
You will need to switch these date field around...

      $temp = explode('-', $event['date']);
      $event['date'] = $temp[2] . '-' . $temp[1] . '-' . $temp[0];

Temp0 is year
Temp1 is month
Temp2 is day

And replace the separators '-'  to whatever

Brilliant!!

Thank you so much. The quick and efficient support is greatly appreciated.