News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

cihancan

Hello. How can I narrow the gap between Articles in Tiny Portal version 3.0?

@rjen

It would help to see exactly what gap you are referring to. Your screenprint is not clear to me
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

razor1995

Hi,
I can't find anything about it in this topic, so I'm asking.
How to add recent posts block to TinyPortal?
By default we only have recent topics, I also want to add recent posts block.
Thanks for the answer :)

@rjen

If you want to create a recent posts block you can use the SSI function

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Bandicoot

I have added the recent posts to the bottom panel on the frontpage and set it to 100% width.

However, it is set to float left by default, as you can see below.

<div class="tp_panelsColHoriz tp_floatleft" style="width: 100%;">
Is there any way to make it float none?

@rjen

what are you trying to achieve?
The float is coded in, but maybe you can achieve your goal in a different way?

Perhaps you can share a link to the site or share a screenshot?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Bandicoot

I am trying to get the block centered in the panel.

It's 2am here so just about to call it quits for the day.
Which file is it hard coded into? I couldn't find it.

@rjen

The float is set to the block itself not the content: the content is simply aligned left as far as i can see...

But you can try..
the code is in TinyPortal.php, line 1982

         echo '<div class="tp_panelsColHoriz tp_floatleft" style="width: ' . $context['TPortal']['blockwidth_'.$side].';"><div style="padding-right: ' . $pad . 'px;">';
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Just checked it: the recent posts SSI function from SMF simply outputs a table, that is aligned left in the block. Nothing to do with the float you are seeing
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Think I found a way for you to do it..

There is surrounding DIV set by TinyPortal. Mind you: this will change the DIV for any SSI block you may have..

in TPsubs.template.php

Find:
echo '<div style="padding: 5px;" class="smalltext">';
and change this to:

echo '<div style="padding: 5px; text-align: -webkit-center;" class="smalltext">';
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Bandicoot

Yep, that did the trick.

Thank you so very much for sorting this out for me.

Very much appreciated!

Tonyvic

Is it easy to change the text on the 'Shout' button to 'Send'?
I can't seem to find it.

cihancan

Quote from: @rjen on January 24, 2024, 07:28:35 AMIt would help to see exactly what gap you are referring to. Your screenprint is not clear to me
How to remove space between articles. This is what I want to do. I cannot explain my problem fully because my English is not good. I am sorry.

Bandicoot

Quote from: Tonyvic on January 25, 2024, 06:41:42 AMIs it easy to change the text on the 'Shout' button to 'Send'?
Themes/default/languages/TPortal.english.php

Tonyvic

Quote from: Bandicoot on January 25, 2024, 09:24:17 AM
Quote from: Tonyvic on January 25, 2024, 06:41:42 AMIs it easy to change the text on the 'Shout' button to 'Send'?
Themes/default/languages/TPortal.english.php

Thanks a lot @Bandicoot, it's easy when you know it's a shame I didn't. :-[

Cheers from 'Another Old Fart' ;)

@rjen

Quote from: cihancan on January 25, 2024, 07:01:26 AM
Quote from: @rjen on January 24, 2024, 07:28:35 AMIt would help to see exactly what gap you are referring to. Your screenprint is not clear to me
How to remove space between articles. This is what I want to do. I cannot explain my problem fully because my English is not good. I am sorry.

The gap between the columns is set by this bit of css in tp-style.css
Set the values to 0 and check..

.tp_leftcol {
padding-right: .2em;
}
.tp_rightcol {
padding-left: .2em;
}

The bottom space is set by this. You may set the .5em to 0
But this will affect many more elements...

.tp_article .windowbg, .tp_article .roundframe {
margin-bottom: .5em !important;
}
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Jailer

I have a question about the shoutbox history button. When you click the history button it shows a page with the latest shouts but is limited to the last 50 shouts. Is there a way to show more shouts than just the last 50?

@rjen

Not at the moment.
Tbh the history button is there like this for ages and I don't think it is used that much...

As an admin you can access all history in the shoutbox admin section...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

cihancan

Hello, I did not see the optional block hiding feature on mobile devices in the new version of tinyportal. Are you considering adding this feature? What can be done at this stage to prevent some blocks from appearing on mobile devices?

@rjen

Was this feature announced at any time?

It not part of the functions at the moment.

We may consider adding it in a future version. To do so we would have to agree on the definition of what screen size defines a 'mobile device' ?
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Advertisement: