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

Recent

Welcome to TinyPortal. Please login or sign up.

October 04, 2023, 07:22:25 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 194,550
  • Total Topics: 21,182
  • Online today: 84
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 55
Total: 55

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.