HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

June 02, 2023, 10:32:00 AM

Login with username, password and session length
  • Total Members: 3,864
  • Latest: Joonoz
  • Total Posts: 194,365
  • Total Topics: 21,157
  • Online today: 120
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 1
Guests: 106
Total: 107

Einige Frage zu TP 2.1.x

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.



I can't thank you enough. That's absolutely great!

Both PHP scripts are stored on my hard drive - in case I want to tinker again. At the moment I would like to leave it with the second script (without the calendar).

Thank you again!

Best regards



:hmm: :hmm: :hmm: :hmm:

Now we've been discussing "my" problem with the calendar box the whole time over and over and pushing code back and forth - the solution is actually RIGHT UNDER THE NOSE!

On the main page of the forum (-> you can see exactly the block I mean. I just didn't notice it because I always stayed in this thread. Title: "Upcoming Calendar" - that's exactly the block I'm missing!

Which one is that in the current TP? I must have been too stupid to find it...
:-\ :-\ :-\ :-\ :-\ :-\ :-\ :-\

Thanks in advance!


That is not a block, but the standard SMF infocenter
Running Latest TP on SMF2.1 at:


But if you really want a block... plop this into a php block

global $context, $scripturl, $txt;

echo '
<div class="sub_bar">
<h4 class="subbg">
<a href="', $scripturl, '?action=calendar' . '"><span class="main_icons calendar"></span> ', $txt['calendar_upcoming'], '</a>
<p class="inline holiday" style="padding: 2px 0;">
<span>', $txt['calendar_prompt'], '</span><br>


echo '
<p class="inline" style="padding: 2px 0;">
<span class="event">', $txt['events_upcoming'], '<br></span>';
echo '
Running Latest TP on SMF2.1 at:


Thanks @rjen.

As we had it in a block with TP 0.9.x it was very comfortable to have it that way again now.

Sorry for confusing - that was my fault.

Kind regards.