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

Recent

Welcome to TinyPortal. Please login or sign up.

April 23, 2024, 07:13:35 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,170
  • Total Topics: 21,219
  • Online today: 62
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 74
  • Total: 74

Einige Frage zu TP 2.1.x

Started by AmaSha, January 06, 2022, 10:38:37 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

@rjen

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

@rjen

By the way, I would recommend to use the responsive curve mod....
Running Latest TP on SMF2.1 at: www.fjr-club.nl

AmaSha

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

@rjen

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

AmaSha

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

@rjen

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

AmaSha

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

@rjen

Try this (compare to the first code to understand the change)



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

AmaSha

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

@rjen

Yep, like I said. Just the events
Running Latest TP on SMF2.1 at: www.fjr-club.nl