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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,910
  • Total Topics: 21,307
  • Online today: 872
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 487
  • Total: 488
  • @rjen

Recent Topics block in two columns?

Started by DinoToyForum, January 03, 2026, 05:59:02 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

DinoToyForum

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?

@rjen

Not easily: the block is not designed to do this.
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

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...

Running Latest TP on SMF2.1 at: www.fjr-club.nl

DinoToyForum

It's on a center block anyway, I'll try it out, thanks!

DinoToyForum

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?

@rjen

Running Latest TP on SMF2.1 at: www.fjr-club.nl


@rjen

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...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

DinoToyForum


DinoToyForum

Perfection. Thanks so much for your help!  8)

This website is proudly hosted on Crocweb Cloud Website Hosting.