• Welcome to Simple Machines Community Forum. Please login or sign up.
September 22, 2021, 01:57:24 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Box to show last posts out of the forum

Started by gibilisco69, April 07, 2013, 04:50:31 PM

Previous topic - Next topic

gibilisco69

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?

Chalky

You might want to try a portal.  Have a look on the mod site  :)

gibilisco69

You mean the name of function I am searching for is known as "portal"?

mashby

Always be a little kinder than necessary.
- James M. Barrie

Vector’s Shadow

Quote from: gibilisco69 on April 07, 2013, 04:59:08 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.

Chalky

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"  :)

Kindred

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.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

gibilisco69

Quote from: Vector's Shadow on April 07, 2013, 05:10:28 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

gibilisco69

Quote from: ChalkCat 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"  :)
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

Arantor

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.
No good deed goes unpunished
All helpful urges should be circumvented

gibilisco69

Quote from: Kindred 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)
BINGO  ;D

Thank you Kindred

gibilisco69

Quote from: Arantor 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.
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.

Colin

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

Advertisement: