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

Recent

Welcome to TinyPortal. Please login or sign up.

November 06, 2024, 08:45:59 PM

Login with username, password and session length
Members
  • Total Members: 3,923
  • Latest: Nobohdy
Stats
  • Total Posts: 195,412
  • Total Topics: 21,248
  • Online today: 98
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 36
  • Total: 37
  • @rjen

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.

AmaSha

@rjen,

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

Thomas

AmaSha

OMG....
: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 (-> https://www.tinyportal.net/index.php?action=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!

@rjen

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

@rjen

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>
</h4>
</div>
<p class="inline holiday" style="padding: 2px 0;">
<span>', $txt['calendar_prompt'], '</span><br>
</p>';

ssi_todaysHolidays();

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

AmaSha

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.

Thomas