Virtualei Posted August 10, 2012 Report Share Posted August 10, 2012 Hi all, I am using SMF forum and I am trying to show the latest forum posts on my homepage. I searched the forum and have tried a few things but it wont work. My ssi is <?php require("/home/mysite/public_html/core/modules/forum/SSI.php"); ?> When it put this at the yop of my frontpage.tpl and then goto my website it redirects to my forum. Am i putting it in the wrong place?? Any help would be much appreciated Alan Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted August 10, 2012 Moderators Report Share Posted August 10, 2012 Im not all that familiar with smf but put that require in your header not in the frontpage main. There should be some other code to display you put in your frontpage Quote Link to comment Share on other sites More sharing options...
Virtualei Posted August 10, 2012 Author Report Share Posted August 10, 2012 Hi Mark thanks for the quick reply. Do you mean my core_HTMLhead.tpl I tried this and i got an error Quote Link to comment Share on other sites More sharing options...
Strider Posted August 10, 2012 Report Share Posted August 10, 2012 If you have an rss feed from your forum, all you have to do is get an RSS emulator to show the contents of the rss. Much easier than trying to get the ssi.php to work. Quote Link to comment Share on other sites More sharing options...
Virtualei Posted August 11, 2012 Author Report Share Posted August 11, 2012 Thanks for the reply. Sorry Daniel wouldnt even know where to start with that one . Where do i find the rss Quote Link to comment Share on other sites More sharing options...
Virtualei Posted August 11, 2012 Author Report Share Posted August 11, 2012 Im not all that familiar with smf but put that require in your header not in the frontpage main. There should be some other code to display you put in your frontpage Where can I find the header. I dont have a header.tpl Quote Link to comment Share on other sites More sharing options...
Virtualei Posted August 12, 2012 Author Report Share Posted August 12, 2012 Hi there, I have solved this at last. What you need to make a seperate page with your ssi code. Put it in the same directory as your SSI.php and the call it to where ever you want to show it on your site. Quote Link to comment Share on other sites More sharing options...
Strider Posted August 12, 2012 Report Share Posted August 12, 2012 You can find out how to do that online, quite easily. Google RSS emulators and you will find a lot. Quote Link to comment Share on other sites More sharing options...
Virtualei Posted August 13, 2012 Author Report Share Posted August 13, 2012 Sorted it out with the ssi.php. My forum folder was buried to far into my site. I moved the folder to the root directory added the ssi to the top of the page and called the latest post in and it all worked. I am a happy CEO lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.