Jump to content


Forum News on Portal Homepage (ssi)


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 06 September 2004 - 12:37 PM

How to use ssi.php to display news from your forum on your portal homepage

Note: this code is specifically for use with the "ssiplus" IPB mod but you can use the same basic idea for the default IPB ssi.php. I'm using this block on my portal homepage.

1) Create a new block.

2) Use this code for your block. Of course you need to change the URL and the ssi features that you want to use in my code.
<?php 

$content=implode("", file("http://www.yoursite.com/mkportal/forums/ssi.php?m=posts&a=forumtopics&forum=4&order=date&start=0&show=5"));

?>
3) Activate and position your block

That should work.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users