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

Recent

Welcome to TinyPortal. Please login or sign up.

December 04, 2024, 01:20:34 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 158
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 69
  • Total: 69

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