Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: PokémonS - kesäkuu 02, 2014, 01:50:38 AP

Otsikko: Multiple Recent Posts
Kirjoitti: PokémonS - kesäkuu 02, 2014, 01:50:38 AP
SMF 2.0.6

Hi,
I want add one more recent posts bar, but those recent posts are from one/two board only.





^ Screenshot shows that I made the second recent posts bar, but it's still from all board.
What code should I change? And I don't mind the server performance.

Thanks!
Otsikko: Re: Multiple Recent Posts
Kirjoitti: margarett - kesäkuu 03, 2014, 05:27:14 IP
It's not clear what you want...
How did you get 2 "Recent Posts"? SMF creates one for you, with a configurable number to be shown.

You want to separate the recent posts per board, is that it?
Otsikko: Re: Multiple Recent Posts
Kirjoitti: xKroniK13x - kesäkuu 03, 2014, 05:37:48 IP
I believe you can do that via the SSI...
http://www.simplemachines.org/community/ssi_examples.php
Otsikko: Re: Multiple Recent Posts
Kirjoitti: PokémonS - kesäkuu 06, 2014, 03:50:34 IP
Lainaus käyttäjältä: margarett - kesäkuu 03, 2014, 05:27:14 IP
It's not clear what you want...
How did you get 2 "Recent Posts"? SMF creates one for you, with a configurable number to be shown.

You want to separate the recent posts per board, is that it?

Yes, that is, I want separate the recent posts only for a board.


Lainaus käyttäjältä: xKroniK13x - kesäkuu 03, 2014, 05:37:48 IP
I believe you can do that via the SSI...
http://www.simplemachines.org/community/ssi_examples.php

Oh, now I'm learn something new. :3
Then I use ssi_recentPosts(); and edit some style, and it works perfectly! Thanks!