Advertisement:

Author Topic: Box to show last posts out of the forum  (Read 18276 times)

Offline gibilisco69

  • Semi-Newbie
  • *
  • Posts: 16
Box to show last posts out of the forum
« on: April 07, 2013, 04:50:31 PM »
On my home page I would advertise the last posts of the forum.
Is there a way to build such box/table that contains links to the posts?

Offline Chalky

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,360
  • Gender: Female
  • If in doubt, give me beer...
    • ChalkCat
Re: Box to show last posts out of the forum
« Reply #1 on: April 07, 2013, 04:52:30 PM »
You might want to try a portal.  Have a look on the mod site  :)

Offline gibilisco69

  • Semi-Newbie
  • *
  • Posts: 16
Re: Box to show last posts out of the forum
« Reply #2 on: April 07, 2013, 04:59:08 PM »
You mean the name of function I am searching for is known as "portal"?

Offline mashby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,394
  • Gender: Male
  • badass beer hound
    • Choppix
Re: Box to show last posts out of the forum
« Reply #3 on: April 07, 2013, 05:05:48 PM »
Yep, there's even a category to choose one from:
http://custom.simplemachines.org/mods/index.php?action=search;type=17
Always be a little kinder than necessary.
- James M. Barrie

Offline Vector’s Shadow

  • Jr. Member
  • **
  • Posts: 218
  • Gender: Male
Re: Box to show last posts out of the forum
« Reply #4 on: April 07, 2013, 05:10:28 PM »
You mean the name of function I am searching for is known as "portal"?

No, it's not the name of a function. It's a modification to the board that turns it into a web portal of sorts.

Offline Chalky

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,360
  • Gender: Female
  • If in doubt, give me beer...
    • ChalkCat
Re: Box to show last posts out of the forum
« Reply #5 on: April 07, 2013, 05:14:16 PM »
It's a very versatile bit of kit that lets you put blocks where you want on your forum with either preprogrammed or custom content.  Adding a recent posts block with a portal is usually as easy as clicking Add Block and selecting its type as "recent posts"  :)

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,121
  • Gender: Male
    • Kindred-999 on GitHub
Re: Box to show last posts out of the forum
« Reply #6 on: April 07, 2013, 05:22:24 PM »
Alternatively, if you understand a little bit about html and php and have your own homepage already, you can include the forum content using SSI.php

(see ssi_examples.php on your own forum/site)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline gibilisco69

  • Semi-Newbie
  • *
  • Posts: 16
Re: Box to show last posts out of the forum
« Reply #7 on: April 07, 2013, 05:25:57 PM »
No, it's not the name of a function. It's a modification to the board that turns it into a web portal of sorts.
Thanks for the info, but I do not want to modify my board. I only want to add a little box on my personal template.php

Offline gibilisco69

  • Semi-Newbie
  • *
  • Posts: 16
Re: Box to show last posts out of the forum
« Reply #8 on: April 07, 2013, 05:28:12 PM »
It's a very versatile bit of kit that lets you put blocks where you want on your forum with either preprogrammed or custom content.  Adding a recent posts block with a portal is usually as easy as clicking Add Block and selecting its type as "recent posts"  :)
Thank you for the info, but I do not want to add anything to my forum. I have my forum under /forum while my home page is /index.php

I need to add a box-links on /index.php that point to the forum's posts

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,061
    • Arantor on GitHub
Re: Box to show last posts out of the forum
« Reply #9 on: April 07, 2013, 05:30:47 PM »
In which case you need to look at SSI.php as Kindred suggested to manually include SSI.php and call ssi_recentPosts() with the options you require.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline gibilisco69

  • Semi-Newbie
  • *
  • Posts: 16
Re: Box to show last posts out of the forum
« Reply #10 on: April 07, 2013, 05:31:21 PM »
Alternatively, if you understand a little bit about html and php and have your own homepage already, you can include the forum content using SSI.php

(see ssi_examples.php on your own forum/site)
BINGO  ;D

Thank you Kindred

Offline gibilisco69

  • Semi-Newbie
  • *
  • Posts: 16
Re: Box to show last posts out of the forum
« Reply #11 on: April 07, 2013, 05:32:59 PM »
In which case you need to look at SSI.php as Kindred suggested to manually include SSI.php and call ssi_recentPosts() with the options you require.
Thanks Arantor. I believed to copy some text from ssi_examples.php, but it seems a little more hard. Anyway now I know where to search for.

Offline Colin

  • Lead Developer
  • SMF Hero
  • *
  • Posts: 7,767
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: Box to show last posts out of the forum
« Reply #12 on: April 07, 2013, 06:48:50 PM »
If you are just using the example code it really should work nearly out of the box. Do let us know if you run into trouble though.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin