Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: CND Bacon on November 27, 2008, 11:28:10 AM

Title: How do I display 1 thread
Post by: CND Bacon on November 27, 2008, 11:28:10 AM
Hi Folks,

I've been building an external app & integrating it with SMF & Tiny Portal.

Thus far - i've had a lot of success with the coding - SSI.php & Tiny Portal.

My biggest issue is that i would like to display 1 Thread from 1 board in my app.

How would I do that?

Here is my template

Quote
<?php
require_once("/PATH/TO/SSI.php");

// ID of the theme
$ssi_theme = 1;

TPortal_init();

template_main_above();

tp_hidebars('right');


if ($context['user']['is_guest'])
{
   ssi_login();
}
else
{
echo '
   
   <table width="100%">
      <tr>
         <td valign="top">';
      <!----------THREAD Displayed HERE------------->
      </td>
         
      </tr>
   </table>
   
   ';

}
ssi_shutdown();
?>
</body>
</html>


Title: Re: How do I display 1 thread
Post by: ThorstenE on November 27, 2008, 01:20:03 PM
SSI Topic and Replies (http://custom.simplemachines.org/mods/index.php?mod=751) is perfect for this :)
Title: Re: How do I display 1 thread
Post by: CND Bacon on November 27, 2008, 02:15:20 PM
Thank you
I googled for a week - but i guess it all comes down to googling the right words

this works very nicely
thank you again!