HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

December 06, 2023, 03:17:33 PM

Login with username, password and session length
  • Total Posts: 194,611
  • Total Topics: 21,189
  • Online today: 136
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 133
Total: 133

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.


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:


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


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