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?

July 04, 2022, 07:03:50 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 193413
  • Total Topics: 21081
  • Online today: 62
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 55
Total: 56

Author Topic: Einige Frage zu TP 2.1.x  (Read 1378 times)

0 Members and 1 Guest are viewing this topic.

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #20 on: January 28, 2022, 04:44:10 AM »
Ok, I see the issue.

The code I provided is used to include EVENTS in the calendar. You only have HOLIDAYS. These are not included. Create an event (I created a test event for you) and it shows...

I changed one setting in the calendar to " Allow events not linked to posts"

By the way I also deactivated the panles in admin sections, because I got a bit claustrofibic...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #21 on: January 28, 2022, 05:06:10 AM »
By the way, I would recommend to use the responsive curve mod....
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline AmaSha

  • Jr. Member
  • **
  • Posts: 23
Re: Einige Frage zu TP 2.1.x
« Reply #22 on: January 28, 2022, 07:30:26 AM »
Hello @rjen.

Okay, that seems to be working now. But I still have three "luxury problems":

1. The output format of the date. Currently dd-mm-yyy would be better dd.mm.yyyy because it is so common in German-speaking countries.
2. Are the recurring holidays now also being output, or only the manually created appointments?
3. Is it possible to omit the calendar in the block as marked in the attached photo?

What does the Responsive Curve Mod do? Is it absolutely necessary?

Thanks in advance.

Thomas

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #23 on: January 28, 2022, 07:44:55 AM »
Date: not sure, but should be possible.

Holidays are not included: this code is only for Events

Yes, you can remove the Calender bit by removing that section from the php code

Responsive curve makes the curve theme adapt to mobile screens. You site is pretty ‘messy’ when I visit on mobile. Is that required, no. But mobile use is a lot more now then it used to be when curve was developed…
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline AmaSha

  • Jr. Member
  • **
  • Posts: 23
Re: Einige Frage zu TP 2.1.x
« Reply #24 on: January 28, 2022, 07:57:18 AM »
Hi @rjen.

Many thanks for your effort.

As far as mobile devices are concerned, we as the "chief desk" in the forum have not yet given it any thought. This has to do with the subject we are addressing: shortwave radio signals. Most of our users, there aren't that many, use our forum directly in their shack, besides the receiver. Many connect the forum to their radio software and have everything on one device - you only need to switch from one application to the next. But I'll make a note of that for our next "patch day" and install accordingly.

Then what part should I delete from the PHP code?

Too bad that the holidays and recurring events are not displayed. That was quite pleasant with the old "mini-calender" under TP 0.9.x. But well, that's the way it is.

Once again I say thank you very much!

Best regards

Thomas

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #25 on: January 28, 2022, 08:00:54 AM »
There are ways to show the calender evebts using ssi_ functions. The one I used does only show events though
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline AmaSha

  • Jr. Member
  • **
  • Posts: 23
Re: Einige Frage zu TP 2.1.x
« Reply #26 on: January 28, 2022, 08:08:14 AM »
Thanks, @rjen.

I think we'll leave it at that for now. I've already taken up too much of your effort. That's a lot more than I could have expected. Maybe soon then...

Greetings from the north of Germany.

Thomas

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #27 on: January 28, 2022, 09:09:57 AM »
Try this (compare to the first code to understand the change)

Code: [Select]

global $scripturl, $smcFunc;

$result = ssi_todaysEvents('array');

if (!empty($result))
{
   echo '<div class="smalltext"><a href="../index.php?board=28.0"><b>Geplande activiteiten:</b></a></div>';
   echo '<div class="supersmalltext">';
   foreach ($result as $event)
      {
      $temp = explode('-', $event['date']);
      $event['date'] = $temp[2] . '.' . $temp[1] . '.' . $temp[0];
    echo '<a href="' . $event['href'] . '">' . $event['date'] . ' : ' . $event['title'] . '</a><br />';
      }
   echo '</div>';
}
else
{
      echo '<div class="supersmalltext">Er zijn geen evenementen gepland.<br /><br /></div>';
  }
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline AmaSha

  • Jr. Member
  • **
  • Posts: 23
Re: Einige Frage zu TP 2.1.x
« Reply #28 on: January 28, 2022, 09:28:18 AM »
Dank U well, @rjen.

Yes, that's roughly what the overview looked like at the time. Excellent!

But these are only the “manually” entered dates, right?

Thomas

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #29 on: January 28, 2022, 09:30:09 AM »
Yep, like I said. Just the events
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info