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, 06:36:38 AM

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

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

0 Members and 1 Guest are viewing this topic.

Offline AmaSha

  • Jr. Member
  • **
  • Posts: 23
Re: Einige Frage zu TP 2.1.x
« Reply #30 on: January 28, 2022, 09:33:38 AM »
@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

Offline AmaSha

  • Jr. Member
  • **
  • Posts: 23
Re: Einige Frage zu TP 2.1.x
« Reply #31 on: February 09, 2022, 01:04:49 AM »
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!

Online @rjen

  • Support Team
  • *
  • Posts: 3253
    • FJR-club Nederland
Re: Einige Frage zu TP 2.1.x
« Reply #32 on: February 09, 2022, 02:14:16 AM »
That is not a block, but the standard SMF infocenter
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 #33 on: February 09, 2022, 10:04:44 AM »
But if you really want a block... plop this into a php block

Code: [Select]
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

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 #34 on: February 10, 2022, 03:05:46 AM »
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