News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Homepage Recent Posts

Started by lollercausteroo, August 22, 2005, 06:01:32 PM

Previous topic - Next topic

lollercausteroo

I've been looking high and low for the script and html to get recent posts to appear on my homepage, but since I'm not the admin of the SMF forum, I'm having a lot of trouble. Can anybody help a poor noob out? Ive got no experience with php, as just recently I have gotten php supported hosting.

thanks!

codenaught

Use SSI.

http://www.simplemachines.org/community/ssi_examples.php

Where you would include this on your homepage: <?php ssi_recentPosts(); ?> with requiring the SSI.php file at the beggining of the page: <?php require("path_to_SSI.php); ?>

Dev Consultant
Former SMF Doc Coordinator

forsakenlad

Your homepage has to be either PHP or SHTML to display the recentposts from your forum. If not rename your homepage to index.php and enter this code at the top of your page:

<?php
require("/yourpath/SSI.php"); 
?>


(You can learn the path from the "Edit Server Settings" under the SMF Admin Panel under the naame of "SMF Directory")

Then enter this code in the place where you want the recent posts to appear:

For the topics:

<?php ssi_recentTopics(); ?>

For the posts:

<?php ssi_recentPosts(); ?>

Hope this helps ;)

Edit: It seems that akabugeyes was faster than me :)
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

lollercausteroo

ok, so now things make some bit of more sense, but its not working exactly, and my noobishness points me in no directions...  :(

hxxp:www.lollercaust-lan.net [nonactive]

[Unknown]

Use a full path.  You want:

/home/lollnnet/domains/lollercaust-lan.net/public_html/forum/SSI.php

Not:

/forum/SSI.php

-[Unknown]

forsakenlad

Btw saw your survey there you can also use SSI to get the surveys from the forum ;)
Eren "forsakenlad" Yaşarkurt
SMF Friend & Former Team Member

Advertisement: