TinyPortal

Development => Support => Topic started by: DinoToyForum on January 03, 2026, 05:59:02 PM

Title: Recent Topics block in two columns?
Post by: DinoToyForum on January 03, 2026, 05:59:02 PM
Is it possible to adjust the Recent Topics block so it appears as two columns (say, of 10 posts each)?

I've achieved a rough work-around for this by creating two separate Recent Topics blocks for different non-overlapping sets of boards, but what I really want is a continuous sequential list of recent posts from all boards, most recent on the left column, less recent on the right column.

Could this be achieved by having two Recent Topics blocks, and somehow omitting the first 10 Recent Posts from the second Recent Topics block?
Title: Re: Recent Topics block in two columns?
Post by: @rjen on January 03, 2026, 06:39:33 PM
Not easily: the block is not designed to do this.
Title: Re: Recent Topics block in two columns?
Post by: @rjen on January 03, 2026, 07:42:54 PM
You can do it with a bit of css, but that will show multiple columns in one block, making it a bit tight for a side block. Try adding this to tp-custom.css

ul.tp_recenttopics {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}


That will work better for a center block though...

Title: Re: Recent Topics block in two columns?
Post by: DinoToyForum on January 03, 2026, 07:49:12 PM
It's on a center block anyway, I'll try it out, thanks!
Title: Re: Recent Topics block in two columns?
Post by: DinoToyForum on January 03, 2026, 07:55:13 PM
Ah, a slight wrinkle. I only want two columns on screens over 900px.

At the moment, I have a separate Recent Topics block (20 Topics) for <900px, that I'd like to keep one column. Will your suggested css affect that block too?
Title: Re: Recent Topics block in two columns?
Post by: @rjen on January 03, 2026, 08:05:42 PM
Can you share a link to your site?
Title: Re: Recent Topics block in two columns?
Post by: DinoToyForum on January 03, 2026, 09:23:37 PM
Sure: https://dinotoyblog.com/forum
Title: Re: Recent Topics block in two columns?
Post by: @rjen on January 04, 2026, 07:31:46 AM
Based on your site, you are using three center panel blocks for recent topics

Block 43 with 20 recenttopics showing on screens < 900 px
Block 73 and 74 with 10 recenttopics showing on screens > 900 px

If you want multiple columns based on a screen width while maintaining only one block you can solve it with css..

1. First deactivate blocks 73 and 74
2. Then set block 43 to show at all screen sizes
3. Then add this to you tp-custom css:

@media screen and (min-width: 900px) {
#block43 > div > div > div> ul.tp_recenttopics {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}
}

4. make sure to clear your browser cache and it will work...
Title: Re: Recent Topics block in two columns?
Post by: DinoToyForum on January 04, 2026, 12:07:57 PM
Thanks! I'll give it a try.
Title: Re: Recent Topics block in two columns?
Post by: DinoToyForum on January 04, 2026, 12:17:47 PM
Perfection. Thanks so much for your help!  8)
Title: Re: Recent Topics block in two columns?
Post by: @rjen on January 04, 2026, 08:22:15 PM
Marked solved