TinyPortal

Development => Support => Topic started by: tp_ler on November 27, 2012, 07:09:04 PM

Title: Custom positioning a post in front page
Post by: tp_ler on November 27, 2012, 07:09:04 PM
Hello,

In TinyPortal selected posts are being displayed according to date --newset first, I'm wondering if I can place a post in a custom position so being the first on frontpage.

I know that this can be done with articles but I haven't figured out how can I do the same but with posts.

This post (tinyportal.net/index.php?topic=35037.msg279959) doesn't solve my issue.

Thank you for any help.

Congratulations on your awesome project :: TinyPortal
Title: Re: Custom positioning a post in front page
Post by: IchBin on November 27, 2012, 10:11:32 PM
Sorry, but there's no option built into TP that does this right now. You can only work around the issue by placing some custom code into an article or block to position it at the top.
Title: Re: Custom positioning a post in front page
Post by: tp_ler on November 28, 2012, 12:14:41 AM
Could you please point me out on how to do that?

Thanks for your response.
Title: Re: Custom positioning a post in front page
Post by: IchBin on November 28, 2012, 04:05:50 PM
You didn't provide any information asked for when creating a new topic. Assuming you are using SMF2?

SMF2 has a function in SSI.php to call a single topic. You can just put that code into a PHP block or article to call a specific topic. So either put it in a block that sits at the top of your articles. Or put it in a php article and set the article to be featured/sticky at the top.