Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

January 29, 2023, 07:43:30 PM

Login with username, password and session length
Members
  • Total Members: 3856
  • Latest: Bixby
Stats
  • Total Posts: 193887
  • Total Topics: 21127
  • Online today: 49
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 42
Total: 42

Author Topic: Looking for assistance to Get Calendar Events to list in a block  (Read 171 times)

0 Members and 1 Guest are viewing this topic.

Offline @rjen

  • Support Team
  • *
  • Posts: 3450
    • FJR-club Nederland
Re: Looking for assistance to Get Calendar Events to list in a block
« Reply #10 on: January 23, 2023, 10:37:47 AM »
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

Offline Bixby

  • Jr. Member
  • **
  • Posts: 6
Re: Looking for assistance to Get Calendar Events to list in a block
« Reply #11 on: January 23, 2023, 10:40:59 AM »
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.