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,966
  • Latest: safir45
Stats
  • Total Posts: 195,992
  • Total Topics: 21,323
  • Online today: 380
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 336
  • Total: 336

Custom positioning a post in front page

Started by tp_ler, November 27, 2012, 07:09:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tp_ler

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

IchBin

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.

tp_ler

Could you please point me out on how to do that?

Thanks for your response.

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.