Advertisement:

Author Topic: TinyPortal  (Read 771907 times)

Offline @rjen

  • Full Member
  • ***
  • Posts: 560
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2620 on: February 12, 2020, 06:56:31 AM »
The English files already contain this fix: I see it it missing in the Polish file, so update that one...
Running SMF 2.0 with Tinyportal 1.6.5 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline jsx

  • Full Member
  • ***
  • Posts: 437
  • Gender: Male
Re: TinyPortal
« Reply #2621 on: February 12, 2020, 09:28:06 AM »
Thanks for the help. :)
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,597
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2622 on: February 12, 2020, 12:34:31 PM »
In what file should I replace these lines? In the files TPortal.english.php and TPortal.english-utf8.php and TPortal.polish-utf8.php?

TPortal.english.php and TPortal.english-utf8.php should that code.  So, TPortal.polish-utf8.php

Offline @rjen

  • Full Member
  • ***
  • Posts: 560
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2623 on: February 12, 2020, 04:45:31 PM »
Search isn't returning anything so thought i would ask

  I would like a "Newest Member Block" including the avatar but not seeing it in the available block list?

You can create one using a PHP block. It is not available as a standard block...

Create a PHP block and put this in the code. It will show the newest user with avatar (if he/she has an avatar) or just the name if they don't...

Code: [Select]
global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<br>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">'.$context['common_stats']['latest_member']['link'].'</div>';

or (without avatar):
Code: [Select]
ssi_latestMember();
Running SMF 2.0 with Tinyportal 1.6.5 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2624 on: February 13, 2020, 01:26:18 PM »
Downloads block, you can create this buy adding a new Block, choose type "Article / Download Functions" Then in that block choose one of the required options,

 Downloads: Show x New Files
 Downloads: Top x Downloads
 Downloads: Top x Views
 Downloads: Latest File Uploaded
 Downloads: Top File in Downloads
 Downloads: Top File in Views
 Articles: recently written
 Articles: top views
 Articles: top comments

  Yes - that one does work but is missing the option that i would like and that is to show my 3 download folders in a block.

Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2625 on: February 13, 2020, 01:27:51 PM »
Search isn't returning anything so thought i would ask

  I would like a "Newest Member Block" including the avatar but not seeing it in the available block list?

You can create one using a PHP block. It is not available as a standard block...

Create a PHP block and put this in the code. It will show the newest user with avatar (if he/she has an avatar) or just the name if they don't...

Code: [Select]
global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<br>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">'.$context['common_stats']['latest_member']['link'].'</div>';

or (without avatar):
Code: [Select]
ssi_latestMember();

  Working and so far showing No Errors. Thank You so much!  8)

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,031
  • Master of BBC Abuse
Re: TinyPortal
« Reply #2626 on: February 14, 2020, 05:54:21 PM »
This isn't a TP support question as such, but is something I'm idly curious about. How difficult would it be to expand block placement options, to allow blocks between posts and categories?

The reason I'm curious is that TP is already close to being a comprehensive ad management system (if used for that purpose) so it occurred to me to wonder if it could be extended with the extra placement options. Has anyone ever considered this?

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,597
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2627 on: February 14, 2020, 06:56:53 PM »

Has anyone ever considered this?


Considered , yes.  ;)  It's a good idea and would make use of this myself for that very purpose.  We already made the news block work interdependently from the SMF news, so even with the news deactivated from the theme header you can still display random news in the news block.  That's also a handy option for adding random banner ads.

But as for how difficult it would be to put blocks between posts etc, unfortunately I haven't a clue, and best answered by one of our Developers.


Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2628 on: February 15, 2020, 02:24:14 PM »
The "Help" tab on the menu doesn't provide much to users so would like to remove that help tab and have something like a "Quick Support Block"

  Would be something along the lines of a user can type in a few lines and then click "Send" which goes to the Admin Message Inbox. Or if that isn't possible, keep the help tab but change the TP Text to something else.

  Any thoughts on this?

Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2629 on: February 16, 2020, 09:01:24 PM »
I have the TP Shout to manual scroll but would like to reverse it and have the new shouts appear at the bottom and not the top. What would i change for this?

Offline @rjen

  • Full Member
  • ***
  • Posts: 560
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2630 on: February 17, 2020, 01:17:02 AM »
I have the TP Shout to manual scroll but would like to reverse it and have the new shouts appear at the bottom and not the top. What would i change for this?

There is no setting for that. Changing the shout order would require a code change..
Running SMF 2.0 with Tinyportal 1.6.5 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,031
  • Master of BBC Abuse
Re: TinyPortal
« Reply #2631 on: February 17, 2020, 02:18:26 AM »
Just a thought: you could try display: flex; flex-direction: column-reverse; in the css. That might do the trick.

ETA: Just went over there and tried it. This works.

Code: [Select]
  .tp_shoutframe{
    display: flex;
    flex-direction: column-reverse;
  }
  {
  .tp_shoutframe>div{
    flex: 0 0 auto;
  }

Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2632 on: February 17, 2020, 11:29:34 PM »
Just a thought: you could try display: flex; flex-direction: column-reverse; in the css. That might do the trick.

ETA: Just went over there and tried it. This works.

Code: [Select]
  .tp_shoutframe{
    display: flex;
    flex-direction: column-reverse;
  }
  {
  .tp_shoutframe>div{
    flex: 0 0 auto;
  }

  Awesome - which file exactly do i add this to please?

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,031
  • Master of BBC Abuse
Re: TinyPortal
« Reply #2633 on: February 17, 2020, 11:41:40 PM »
index.css would work. Or any TP css file would also work. Just tack it on the end.

Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2634 on: February 18, 2020, 12:00:33 AM »
I added it at the end of the default theme index css as i couldn't find one for TP but didn't work. Could you see if i did it right?

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,031
  • Master of BBC Abuse
Re: TinyPortal
« Reply #2635 on: February 18, 2020, 02:17:13 AM »
You added it inside the media query for print, so it will only be active if you fire up a printer.

Code: (You have this) [Select]
/* Styles for print media.
------------------------------------------------------- */
@media print
{
#headerarea
{
display: none;
}

.tborder
{
border: none;
}
        .tp_shoutframe{
          display: flex;
          flex-direction: column-reverse;
        }
        {
        .tp_shoutframe>div{
          flex: 0 0 auto;
        }
}

See that last curly bracket? That closes the @media for print. You put it inside the brackets, which is causing the problem.

Do it like this, with the new code outside anyone else's curly brackets.

Code: (You have this) [Select]
/* Styles for print media.
------------------------------------------------------- */
@media print
{
#headerarea
{
display: none;
}

.tborder
{
border: none;
}
}
/* Put your new code here.
------------------------------------------------------- */
.tp_shoutframe{
  display: flex;
  flex-direction: column-reverse;
}
{
.tp_shoutframe>div{
  flex: 0 0 auto;
}

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 891
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: TinyPortal
« Reply #2636 on: February 20, 2020, 10:59:09 PM »
The "Help" tab on the menu doesn't provide much to users so would like to remove that help tab and have something like a "Quick Support Block"

  Would be something along the lines of a user can type in a few lines and then click "Send" which goes to the Admin Message Inbox. Or if that isn't possible, keep the help tab but change the TP Text to something else.

  Any thoughts on this?

Are you talking about the TinyPortal Help or the standard SMF help
The latter is https://www.simplemachines.org/community/index.php?action=help
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,597
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2637 on: February 21, 2020, 02:59:26 AM »
The "Help" tab on the menu doesn't provide much to users so would like to remove that help tab and have something like a "Quick Support Block"

  Would be something along the lines of a user can type in a few lines and then click "Send" which goes to the Admin Message Inbox. Or if that isn't possible, keep the help tab but change the TP Text to something else.

  Any thoughts on this?

You can remove TinyPortal from the help tab using the edit here, https://www.simplemachines.org/community/index.php?topic=27642.msg4026706#msg4026706

Offline big red

  • Semi-Newbie
  • *
  • Posts: 89
Re: TinyPortal
« Reply #2638 on: February 22, 2020, 08:50:29 PM »
Busy work week so Sorry for the late reply. And Thank You for yours  ;)

The help tab i just decided to change true to false to have it disappear. As for the reverse scrolling of the shoutbox, i tried your last suggestion Antechinus in default theme index css and still the new posts start at the top.

  Also i would like the blocks to disappear if someone is viewing in "Mobile View". Can this be done as i don't see anything in the settings. As it stands, the blocks just get pushed to the bottom.

Offline Slonik :)

  • Newbie
  • *
  • Posts: 5
Re: TinyPortal
« Reply #2639 on: March 19, 2020, 10:04:46 AM »
How can I add Key Tags (Hashtags or Global Tags) service to articles?

Maybe in the next versions of TP? :)